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

ImportError: cannot import name __version__ #57

Open
KrzysztofMadejski opened this issue Mar 26, 2017 · 2 comments
Open

ImportError: cannot import name __version__ #57

KrzysztofMadejski opened this issue Mar 26, 2017 · 2 comments

Comments

@KrzysztofMadejski
Copy link
Contributor

Got this on another server while installing QA. No idea why this happens or how to debug it :/.

There is an __init__.py file with version specified.

(ckan) ckan@host:~/src/ckanext-qa$ python setup.py develop
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from ckanext.qa import __version__
ImportError: cannot import name __version__
@MrkGrgsn
Copy link

MrkGrgsn commented Apr 7, 2017

I've found the same thing on Amazon linux. It appears to be related to namespace packages. If I do a pip uninstall ckanext-qa and then remove virtualenv/lib/python2.7/site-packages/ckanext-qa-nspkg.pth I can then run python setup.py develop again.

More importantly I am working from an older version of ckanext-qa and I note that in 37f0290 ckanext.qa is no longer a namespace package and this should resolve the issue.

@KrzysztofMadejski
Copy link
Contributor Author

KrzysztofMadejski commented Apr 11, 2017

Maybe that causes the issue - I have that commit merged.

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

2 participants