datopian / metastore-lib

🗄️ Library for storing dataset metadata, with versioning support and pluggable backends including GitHub.
https://tech.datopian.com/versioning/
MIT License
10 stars 1 forks source link

ImportError: cannot import name isoparse #2

Closed pdelboca closed 4 years ago

pdelboca commented 4 years ago

I'm installing this extension in my docker-ckan environment with the command: pip install -e git+https://github.com/datopian/metastore-lib.git#egg=metastore-lib

But when I tried to import the module it throws:

  File "/srv/app/src_extensions/ckanext-versioning/ckanext/versioning/logic/action.py", line 17, in <module>
    from metastore.backend.filesystem import FilesystemStorage
  File "/srv/app/src/metastore-lib/metastore/backend/filesystem.py", line 16, in <module>
    from dateutil.parser import isoparse
ImportError: cannot import name isoparse

According to the docs isoparser was added in version 2.7.0 so I fixed locally by installing it manually with pip install python-dateutil==2.8.1 as the requirements.txt file says.

Edditing the setup.py will probably fix this issue.