Top-level of external library sources is detected incorrectly
Hi!
I have WSGI project in PyCharm. It uses virtualenv. I installed repoze.what library, but, in contrast to other libraries, its top-level package detected incorrectly.
As you can see, only adapters package is root, but repoze and what also must be. As in SQLAlchemy, for example:
Do you have any ideas how to solve it?
Thanks,
Boris.
I have WSGI project in PyCharm. It uses virtualenv. I installed repoze.what library, but, in contrast to other libraries, its top-level package detected incorrectly.
As you can see, only adapters package is root, but repoze and what also must be. As in SQLAlchemy, for example:
Do you have any ideas how to solve it?
Thanks,
Boris.
Please sign in to leave a comment.


http://blog.jetbrains.com/pycharm/2012/08/flask-in-pycharm-26-eap/
I tried it on PyCharm 2.6.1. Autoimport by Cmd+Enter works, import are added, but they are still incorrect.
Please provide more details on 1) what are your root folders (static paths: Settings -> Python Interpreters -> (Your interpreter) -> Path, dynamic paths: import sys; print(sys.path) in the command line inside PyCharm), 2) how did you create your virtualenv and install packages into it.
Thanks for quick reply.
Here is sys.path output:
the problem with repoze.what is that it has no __init__.py files in packages repoze and what. That's why PyCharm doesn't treat them as packages.
You're right, it seems to be incorrect. I'll write to repoze devs to solve it.
Thank you.
http://bugs.python.org/setuptools/issue113
It doesn't occur if package installed with easy_install.