Pycharm 5.0.4 using debugger mode can't find module
Steps to reproduce:
Install Jython 2.7 and Pycharm 5.0.4
Configure the Jython interpeter in Pycharm
Using the pycharm interface, install the dnspython module
Create a test.py file in a new pycharm project. Enter the following lines:
import dns.name
import dns.reversename
print dns.reversename.to_address(dns.name.from_text('1.2.3.4.in-addr.arpa.'))
Create a Configuration to run test.py
Execute the script using the new configuration (Shift+F10)
Output will be:
C:\jython2.7.0\bin\jython.exe -Dpython.path=C:\git\jython\untitled C:/git/jython/untitled/test.py
4.3.2.1
Process finished with exit code 0
However, if you use the debugger (Shift+F9) the following error message is returned:
C:\jython2.7.0\bin\jython.exe "-Dpython.path=C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pycharm;C:\git\jython\untitled;C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev" "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 51067 --file C:/git/jython/untitled/test.py
pydev debugger: process 13444 is connecting
Connected to pydev debugger (build 143.1919)
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\pydevd.py", line 2411, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\pydevd.py", line 1802, in run
launch(file, globals, locals) # execute the script
File "C:/git/psg-script/Consultants/swedekind/python/untitled/test.py", line 1, in <module>
import dns.name
ImportError: No module named dns
Process finished with exit code -1
Please sign in to leave a comment.
Anyone have a workaround for this? I'm assuming it's a bug in Pycharm.