I am suddenly getting the following error in PyCharm whenever I try to debug my code. This seems to be happening only when I try to debug a specific project and the error doesn't seem to occur in other projects.

```
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 14, in <module>
    from pydevd_breakpoints import * #@UnusedWildImport
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd_breakpoints.py", line 15, in <module>
    from pydevd_comm import GetGlobalDebugger
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd_comm.py", line 74, in <module>
    import pydevconsole
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 8, in <module>
    from code import compile_command
ImportError: cannot import name compile_command

```

I searched around and found [this answer](https://stackoverflow.com/questions/20157925/pycharm3-0-1win7-when-i-debug-my-webpy-project-it-output-importerror-cannot-im), but it didn't work for me since I have no additional `code.py` in my project.

UPDATE:

I created a new project in PyCharm and moved the files the files to the new project and was able to debug..