Problems using PyCharm whith buildout

I'm using buildout for GAE project, that created own scripts in /home/vadim/work/comp/projects/my-server/bin.
I created project interpretator in settings project PyCharm locate path /home/vadim/work/comp/projects/my-server/bin/python.
PyCharm scanned and showed path search python packages:

/home/vadim/work/comp/projects/my-server/etc/eggs/appfy.recipe.gae-0.7.2-py2.5.egg
/home/vadim/work/comp/projects/my-server/etc/parts/google_appengine
/home/vadim/work/comp/projects/my-server/bin
/usr/lib/python2.5
/usr/lib/python2.5/plat-linux2
/usr/lib/python2.5/lib-dynload
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/PIL

Debugger are running, but appear problems:

1) For some objects (not all) I'm not showing attributes in window variables debugger, when trying unfold objects. Console showing message:


WARNING  2012-08-01 09:34:24,651 py_zipimport.py:139] Can't open zipfile /home/vadim/work/comp/projects/my-server/etc/eggs/distribute-0.6.28-py2.5.egg: IOError: [Errno 13] file not accessible: '/home/vadim/work/comp/projects/my-server/etc/eggs/distribute-0.6.28-py2.5.egg'
ERROR    2012-08-01 09:35:12,709 traceback.py:13] Traceback (most recent call last):

ERROR    2012-08-01 09:35:12,709 traceback.py:13]   File "/home/vadim/bin/pycharm/helpers/pydev/pydevd_vars.py", line 373, in resolveCompoundVariable

ERROR    2012-08-01 09:35:12,710 traceback.py:13]   File "/home/vadim/bin/pycharm/helpers/pydev/pydevd_resolver.py", line 100, in getDictionary

ERROR    2012-08-01 09:35:12,711 traceback.py:13]   File "/home/vadim/bin/pycharm/helpers/pydev/pydevd_resolver.py", line 197, in _getPyDictionary

ERROR    2012-08-01 09:35:12,711 traceback.py:13] AttributeError: class StringIO has no attribute 'StringIO'

DEBUG    2012-08-01 09:35:18,422 dev_appserver_import_hook.py:1474] Could not import "_ctypes": Disallowed C-extension or built-in module
INFO     2012-08-01 09:35:18,879 recording.py:372] Saved; key: __appstats__:067500, part: 46 bytes, full: 10425 bytes, overhead: 0.002 + 0.046; link: http://localhost:8080/_ah/stats/details?time=1343813667535

2) Inspectors editor aren't detecting built-in functions and variables - len, True etc.
Just as not found standard libraries, example - "import datetime" inspector are underlined grey line.

Auto-completion for this object aren't worked.

1 comment
Comment actions Permalink

I forgot to mention that in addition to the interpreter prescribe a package search path

/home/vadim/bin/pycharm/helpers/pydev/

Without this, the debugger will not start. Message:

Traceback (most recent call last):
  File "/home/vadim/work/comp/projects/my-server/bin/python", line 36, in <module>
    execfile(__file__)
  File "/home/vadim/bin/pycharm/helpers/pydev/pydevd.py", line 2, in <module>
    from django_debug import DjangoLineBreakpoint
ImportError: No module named django_debug

Process finished with exit code 1

0

Please sign in to leave a comment.