tell me why

C:\Python27\python.exe "D:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd.py" –multiproc –save-signatures –client 127.0.0.1 –port 59859 –file E:/python_s/nagios_script/test.py
Traceback (most recent call last):
  File "D:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd.py", line 2, in <module>
    from django_debug import DjangoLineBreakpoint
  File "D:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\django_debug.py", line 3, in <module>
    from pydevd_comm import CMD_SET_BREAK
  File "D:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd_comm.py", line 96, in <module>
    import pydevd_vars
  File "D:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd_vars.py", line 8, in <module>
    from code import compile_command
ImportError: cannot import name compile_command
['the letter is a', 'the letter is b', 'the letter is c', 'the letter is d', 'the letter is e', 'the letter is f', 'the letter is g']

Process finished with exit code 1


debug
2 comments
The problem happens because you have a module named 'code' in your project, which conflicts with the 'code' module in the standard library. To fix the problem, please upgrade to PyCharm 2.7.3 and turn off the "Add content roots to PYTHONPATH" and "Add source roots to PYTHONPATH" options in the run configuration settings.
0
thank you Dmitry jemerov
turn off the "Add content roots to PYTHONPATH" and "Add source roots to PYTHONPATH"
0

Please sign in to leave a comment.