frictionlessdata / datapackage-py

A Python library for working with Data Packages.
https://frictionlessdata.io
MIT License
189 stars 44 forks source link

import error when using datapackage installed by pip #208

Closed reikkaps closed 6 years ago

reikkaps commented 6 years ago

Hi, currently i am testing the datapackage module (for use in our research data management enviroment). First i tried your examples https://github.com/frictionlessdata/datapackage-py/blob/master/README.md. But i got an ImportError like this one:

Traceback (most recent call last): File "create-datapackage.py", line 3, in from datapackage import Package File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/datapackage/init.py", line 10, in from .package import Package File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/datapackage/package.py", line 19, in from tableschema import Storage File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/tableschema/init.py", line 10, in from .schema import Schema File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/tableschema/schema.py", line 12, in from .field import Field File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/tableschema/field.py", line 13, in from . import types File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/tableschema/types/init.py", line 21, in from .string import cast_string File "/home/RRZN/kaps/Dokumente/Projekte/dataset-examples/venv/lib/python3.5/site-packages/tableschema/types/string.py", line 12, in import rfc3986.validators ImportError: No module named 'rfc3986.validators'

Is it a problem of my installation or a problem of the pip-package / python module? And how can i fix it?

Many thanks for your work, Reiko

roll commented 6 years ago

@reikkaps Hi, probably it's a problem with your installation because I can't reproduce it on a fresh one.

reikkaps commented 6 years ago

@roll many thanks. i will investigate it further. And btw a fresh source installation from the github repo was sucessful.

roll commented 6 years ago

@reikkaps Great! Related to the pip installation - the following should work:

mkdir test
cd test
virtualenv .python -p python3
source .python/bin/activate
pip install datapackage

Closing for now. Please re-open if needed.