Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'urlparse' #30

Open
turicas opened this issue Mar 11, 2021 · 0 comments
Open

ModuleNotFoundError: No module named 'urlparse' #30

turicas opened this issue Mar 11, 2021 · 0 comments

Comments

@turicas
Copy link

turicas commented Mar 11, 2021

After installing it using pip install ckan-api-client I've the following exception when executing from ckan_api_client.high_level import CkanHighlevelClient:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-c95dae115e31> in <module>
----> 1 from ckan_api_client.high_level import CkanHighlevelClient

~/software/pyenv/versions/3.9.2/envs/covid19-br/lib/python3.9/site-packages/ckan_api_client/high_level.py in <module>
      3 
      4 from .objects import CkanDataset, CkanOrganization, CkanGroup
----> 5 from .low_level import CkanLowlevelClient
      6 from .exceptions import OperationFailure, HTTPError
      7 

~/software/pyenv/versions/3.9.2/envs/covid19-br/lib/python3.9/site-packages/ckan_api_client/low_level.py in <module>
      1 import json
----> 2 import urlparse
      3 
      4 import requests
      5 

ModuleNotFoundError: No module named 'urlparse'

The correct import inside low_level.py is probably:

from urllib.parse import urlparse

Installed version from PyPI:

$ pip freeze | grep ckan
ckan-api-client==0.1b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant