escape codemeta crosswalk table not accessible
Installing package from pip does not include the table:
pip install eossr==0.4
In [3]: from eossr.metadata import codemeta
cod
In [4]:
In [4]: codemeta.codemeta_crosswalk()
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [4], in <module>
----> 1 codemeta.codemeta_crosswalk()
File ~/opt/anaconda3/envs/test/lib/python3.9/site-packages/eossr/metadata/codemeta.py:20, in codemeta_crosswalk()
18 def codemeta_crosswalk():
19 return pd.read_csv(
---> 20 pkg_resources.resource_stream(__name__, 'schema/escape_codemeta_crosswalk.csv'), comment='#', delimiter=';'
21 )
File ~/opt/anaconda3/envs/test/lib/python3.9/site-packages/pkg_resources/__init__.py:1141, in ResourceManager.resource_stream(self, package_or_requirement, resource_name)
1139 def resource_stream(self, package_or_requirement, resource_name):
1140 """Return a readable file-like object for specified resource"""
-> 1141 return get_provider(package_or_requirement).get_resource_stream(
1142 self, resource_name
1143 )
File ~/opt/anaconda3/envs/test/lib/python3.9/site-packages/pkg_resources/__init__.py:1613, in DefaultProvider.get_resource_stream(self, manager, resource_name)
1612 def get_resource_stream(self, manager, resource_name):
-> 1613 return open(self._fn(self.module_path, resource_name), 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/Users/thomasvuillaume/opt/anaconda3/envs/test/lib/python3.9/site-packages/eossr/metadata/schema/escape_codemeta_crosswalk.csv'