Closed luispedro18 closed 6 years ago
you might a directory called ckan (so import ckan
"works") that isn't actually a copy of ckan. We can catch ModuleNotFound error as well as ImportError to fix this edge case
I don't have any directory called ckan but the file where I'm importing the module is called ckan.py. Does it matter?
if your current directory is in your python path then it will matter. Try renaming your module.
I've renamed the module and it works now. Thanks a lot, you saved my day!!
Would recommend against catching ModuleNotFound, the exception is working exactly as expected and the error message is clear.
Hi!
I want to use the python module of ckanapi but I need to use it with python3. When I import ckanapi in my py file (e.g: import ckanapi) I get this error
Anyone knows why doest it happen?