PyCharm's interactive debug console does not work in Google App Engine

Hi. I've been enjoying evaluating PyCharm 2.0.1. Something I noticed however, is that in my GAE, the interactive debug console doesn't work. I created a dummy GAE project to confirm the issue, along with a dummy non-GEA project to confirm it's isolated to App Engine.

It does, indeed, only happen in GEA and happens with a simple "Hello World". When you set a breakpoint and attempt to use the interactive console, this is what happens. Has anyone else experienced this problem?

/usr/bin/python2.7 /home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevd.py --client 127.0.0.1 --port 45739 --file /home/kkinder/Software/google_appengine/dev_appserver.py .
PyDev console: using IPython 0.10
Connected to pydev debugger (build 111.107)
pydev debugger: starting
WARNING  2012-01-25 07:29:03,645 rdbms_mysqldb.py:90] The rdbms API is not available because the MySQLdb library could not be loaded.
INFO     2012-01-25 07:29:03,964 appengine_rpc.py:159] Server: appengine.google.com
INFO     2012-01-25 07:29:03,992 appcfg.py:561] Checking for updates to the SDK.
INFO     2012-01-25 07:29:05,021 appcfg.py:574] Update check failed: HTTP Error 404: Not Found
INFO     2012-01-25 07:29:05,540 dev_appserver_multiprocess.py:638] Running application dev~testsite on port 8080: http://localhost:8080
INFO     2012-01-25 07:29:05,540 dev_appserver_multiprocess.py:640] Admin console is available at: http://localhost:8080/_ah/admin
ERROR    2012-01-25 07:29:07,580 threading.py:565] Exception in thread pydevd.CommandThread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevd_comm.py", line 217, in run
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevd.py", line 124, in OnRun
ImportError: No module named pydevd_vm_type


>>> print 'Hello, World'
ERROR    2012-01-25 07:29:27,180 warnings.py:29] /usr/lib/python2.7/dist-packages/IPython/frontend/prefilterfrontend.py:83: RuntimeWarning: Parent module 'IPython.frontend' not found while handling absolute import
  from IPython import iplib

ERROR    2012-01-25 07:29:27,189 pydevd_comm.py:825] Traceback (most recent call last):
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevd_comm.py", line 817, in doIt
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevd_vars.py", line 470, in consoleExec
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevconsole.py", line 302, in exec_expression
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydevconsole.py", line 287, in get_interpreter
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydev_ipython_console.py", line 37, in __init__
  File "/home/kkinder/Software/pycharm-2.0.1/helpers/pydev/pydev_ipython_console_010.py", line 15, in __init__
  File "/usr/lib/python2.7/dist-packages/IPython/frontend/prefilterfrontend.py", line 83, in __init__
    from IPython import iplib
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1818, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1690, in FindAndLoadModule
    description)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1633, in LoadModuleRestricted
    description)
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 58, in <module>
    __import__(name,glob,loc,[])
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1818, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1690, in FindAndLoadModule
    description)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1633, in LoadModuleRestricted
    description)
  File "/usr/lib/python2.7/dist-packages/IPython/ipstruct.py", line 17, in <module>
    from IPython.genutils import list2dict2
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1818, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1690, in FindAndLoadModule
    description)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1633, in LoadModuleRestricted
    description)
  File "/usr/lib/python2.7/dist-packages/IPython/genutils.py", line 17, in <module>
    import __main__
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1818, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1690, in FindAndLoadModule
    description)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 662, in Decorate
    return func(self, *args, **kwargs)
  File "/home/kkinder/Software/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1633, in LoadModuleRestricted
    description)
ImportError: Cannot re-init internal module __main__

Please sign in to leave a comment.