ImportError: cannot import name compile_command

Hello there,


We have PyCharm 1.5.3, and since we upgraded from 1.1 the debugger stopped working with:

------------------------------------------

/usr/bin/python2.5  /opt/pycharm-1.5.3/helpers/pydev/pydevd.py --client 127.0.0.1 --port  48640 --file /opt/pycharm-1.5.3/helpers/pycharm/django_test_manage.py  test acapub.ExtApiUtilsTest.test_get_response_by_format_XML
Testing started at 3:49 PM ...
Traceback (most recent call last):
   File "/opt/pycharm-1.5.3/helpers/pydev/pydevd.py", line 2, in <module>
     from django_debug import DjangoLineBreakpoint
   File "/opt/pycharm-1.5.3/helpers/pydev/django_debug.py", line 3, in <module>
     from pydevd_comm import CMD_SET_BREAK
   File "/opt/pycharm-1.5.3/helpers/pydev/pydevd_comm.py", line 72, in <module>
     import pydevd_vars
   File "/opt/pycharm-1.5.3/helpers/pydev/pydevd_vars.py", line 8, in <module>
     from code import compile_command
ImportError: cannot import name compile_command


Process finished with exit code 1

------------------------------------------


Googling the error yields no results.

Any idea what's wrong?

It is really franstrating not to be able to use it.


thank you,


Rami

1 comment

Hi Rami!

Do you have a module named 'code' in your project?

0

Please sign in to leave a comment.