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/ --client --port  48640 --file /opt/pycharm-1.5.3/helpers/pycharm/  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/", line 2, in <module>
     from django_debug import DjangoLineBreakpoint
   File "/opt/pycharm-1.5.3/helpers/pydev/", line 3, in <module>
     from pydevd_comm import CMD_SET_BREAK
   File "/opt/pycharm-1.5.3/helpers/pydev/", line 72, in <module>
     import pydevd_vars
   File "/opt/pycharm-1.5.3/helpers/pydev/", 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,


1 comment
Comment actions Permalink

Hi Rami!

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


Please sign in to leave a comment.