Debugging: Error while finding spec for pydevd.py

Hi,

I created a debug conguration. When I launch I get this error:

Error while finding spec for 'C:\\Program Files (x86)\\JetBrains\\PyCharm 5.0.2\\helpers\\pydev\\pydevd.py' (<class 'ImportError'>: No module named 'C:\\Program Files (x86)\\JetBrains\\PyCharm 5')

This is what I get in the Console:

C:\Users\fcamisa\py-venvs\homeassistant\Scripts\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 5.0.2\helpers\pydev\pydevd.py" –multiproc –qt-support –client 127.0.0.1 –port 62855 –file C:/Users/fcamisa/Documents/development/gitlab/homeassistant-local/hass –open-ui
pydev debugger: process 2856 is connecting

Connected to pydev debugger (build 143.1184)
Config directory: C:\Users\fcamisa\AppData\Roaming\.homeassistant
....
a few lines removed for clarity
....
C:\Users\fcamisa\py-venvs\homeassistant\Scripts\python.exe: Error while finding spec for 'C:\\Program Files (x86)\\JetBrains\\PyCharm 5.0.2\\helpers\\pydev\\pydevd.py' (<class 'ImportError'>: No module named 'C:\\Program Files (x86)\\JetBrains\\PyCharm 5')

Thanks in advance for any help.

Francesco
1
2 comments

This critical bug still happens in 2022.

0

Hello, 

 

Could you please provide the whole output of the error?  

 

Also, please make sure that in

Run/Debug Configuration https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html the script path leads to .py file and not for a directory. 

0

Please sign in to leave a comment.