Importing wrong modules in PyCharm 1.1
I asked a quesiton earlier that is related to this problem and got no response so I'll try again from a different angle.
When I upgraded from Python 1.0.1 to 1.1, my Google App Engine project would no longer run. Ultimately, the problem seems to be that when I import mu own module in my own code it is first looking at the GAE path and trying to import that module - which fails and causes the error.
In this case, the module is called "common.py" and is in the root of my app directory. But rather than looking at that, it's looking at:
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/graphy/common.py
I thought maybe it was the order in which "Paths for selected interpreter" were listed in the project preferences but it just seems weird that those would be scanned before my own app. But here's the list of paths in the aforementioned setting
file:///Users/karim/Library/Python/2.5/site-packages/Sphinx-0.6.2-py2.5.egg
file:///Users/karim/Library/Python/2.5/site-packages/docutils-0.5-py2.5.egg
file:///Users/karim/Library/Python/2.5/site-packages/Pygments-1.0-py2.5.egg
file:///usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5/site-packages
file:///usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5/site-packages/wx-2.8-mac-unicode
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
file:///Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL
file:///usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5
Anything out of the ordinary?
---
Original message URL: http://devnet.jetbrains.net/message/5282613#5282613
Please sign in to leave a comment.