Adding an interpreter path removed by reload

Setting up an interpreter and adding additional paths results in no auto-completion and the paths being removed after pressing reload. Is this the only way of adding libraries that are not in the default site-packages directory?

6 comments

Hello Jean-Paul,

Yes, this is the standard way. You don't need to press the "Reload" button

if you've modified the list of paths.

Setting up an interpreter and adding additional paths results in no

auto-completion and the paths being removed after pressing reload. Is

this the only way of adding libraries that are not in the default

site-packages directory?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

OK. I pressed reload because it does not seem like it did any indexing of my libraries. Even if I do not press reload I do not get any auto completion of PyQt in a non standard location.

0

I also have this problem. My Django folder isn't in the default sys.path. When I run the Django console I get an ImportError: No module named django.core and I can't use the Run Server functionality of PyCharm.

When I run the Django console if I look at what's in sys.path, the custom path's I have added aren't being added in.

/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 -u /Applications/PyCharm 1.0.app/helpers/pydev/console/pydevconsole.py 61734 61735

import sys; print('Python %s on %s' % (sys.version, sys.platform))

Python 2.6.1 (r261:67515, Feb 11 2010, 15:47:53)

[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

sys.path.append('/Users/jason/Projects/q/src/q')

from django.core import management;import settings;management.setup_environ(settings)

Traceback (most recent call last):

  File "<console>", line 1, in <module>

ImportError: No module named django.core

>>> for x in sys.path:

...     print x

... 

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload

/Users/jason/.local/lib/python2.6/site-packages

/Library/Python/2.6/site-packages

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode

/Users/jason/Projects/q/src/q

/Applications/PyCharm 1.0.app/helpers/pydev/console

/Applications/Quick Search Box.app/Contents/Frameworks/Vermilion.framework/Resources

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac

>>>

There should be a /Users/jason/Projects/lib and /Users/jason/Projects/q/src

Thanks for the help.

-Jason

0

Hello Jason,

Please submit a request at: http://youtrack.jetbrains.net/issues/PY

Best regards,

Oleg

0

This issue says it was fixed in build 98.227. I downloaded 98.404 and I still have the same issue. Is there a trick to get this to work?

0

Please sign in to leave a comment.