我将 PyCharm 2.6.3 和 Python 2.7.5 用于我的 Google Application Engine 项目。今天尝试调试 GAE 项目时发生了奇怪的错误:
ImportError: No module named pydevd_vm_type
模块存在但不想在调试工具的某个地方导入。当我尝试输入“import pydevd_vm_type”时,自动完成工具为我提供了通往该模块的正确路径。我该如何解决这个问题?
我将 PyCharm 2.6.3 和 Python 2.7.5 用于我的 Google Application Engine 项目。今天尝试调试 GAE 项目时发生了奇怪的错误:
ImportError: No module named pydevd_vm_type
模块存在但不想在调试工具的某个地方导入。当我尝试输入“import pydevd_vm_type”时,自动完成工具为我提供了通往该模块的正确路径。我该如何解决这个问题?
问题解决了!文件路径_on_disk\PyCharm 2.6.3\helpers\pydev\pydevd.py
课堂上发生错误
class PyDBCommandThread(PyDBDaemonThread)
在方法中
def OnRun(self)
...
import pydevd_vm_type
if pydevd_vm_type.GetVmType() == pydevd_vm_type.PydevdVmType.JYTHON and sys.hexversion <= 0x020201f0:
# a lot of comments about Jython bug
run_traced = False
接下来进入
import pydevd_tracing
if run_traced:
pydevd_tracing.SetTrace(None) # no debugging on this thread
我已经删除了这两个导入。利润!!!