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 file in a new pycharm project.  Enter the following lines:

import dns.reversename

print dns.reversename.to_address(''))

Create a Configuration to run

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/

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\" --multiproc --qt-support --client --port 51067 --file C:/git/jython/untitled/
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\", line 2411, in <module>
    globals =['file'], None, None, is_module)
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\helpers\pydev\", line 1802, in run
    launch(file, globals, locals)  # execute the script
  File "C:/git/psg-script/Consultants/swedekind/python/untitled/", line 1, in <module>
ImportError: No module named dns

Process finished with exit code -1

1 comment

Anyone have a workaround for this?  I'm assuming it's a bug in Pycharm.


Please sign in to leave a comment.