使用 PyDev 在 Eclipse 中运行文件时出错/初始化控制台时出错
Error during runfile in Eclipse with PyDev/ error initializing console
在 Eclipse 中使用 PyDev 控制台,最初运行良好。 Python 代码将在控制台内运行。
当我开始在 PyDev 模块中编写文件时,我尝试执行 runfile() 但是已经使用 python returns 初始化的控制台出现此错误:
Failed to parse server's response: Expected methodResponse element, got head127.0.0.1 - - [18/Jul/2015 13:55:14] code 400, message Bad HTTP/0.9 request type ('POST')
之后,我关闭了控制台并重新启动了 Eclipse。现在,当我尝试初始化 pyDev 控制台时,它 returns this:
Error initializing console.
Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole. Last msg received: Failed to parse server's response: Expected methodResponse element, got head
使用的命令行:
C:\Users\axelrod\AppData\Local\Continuum\Anaconda\python.exe -u C:\Users\axelrod\Applications\eclipse\plugins\org.python.pydev_4.2.0.201507041133\pysrc\pydevconsole.py 50824 50825 50824 50825
环境:
PATH=C:/程序Files/Java/jre1.8.0_51/bin/server;C:/程序Files/Java/jre1.8.0_51/bin ;C:/Program Files/Java/jre1.8.0_51/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Dell\DW 无线网卡;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\程序 Files\CREDANT\Shield v7.3\;C:\Users\axelrod\AppData\Local\Continuum\Anaconda;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\Scripts;C:\Users\axelrod\Applications\eclipse;
LOCALAPPDATA=C:\Users\axelrod\AppData\Local
PROCESSOR_LEVEL=6
系统驱动=C:
FP_NO_HOST_CHECK=否
COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
USERDOMAIN=CHAPMANEDU
登录服务器=\ORDC01
LDMS_LOCAL_DIR=C:\Program Files (x86)\LANDesk\LDClient\Data
提示=$P$G
SESSIONNAME=控制台
ALLUSERSPROFILE=C:\ProgramData
PROGRAMFILES(X86)=C:\Program 文件 (x86)
PROCESSOR_ARCHITECTURE=AMD64
ASL.LOG=目的地=文件
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
WINDOWS_TRACING_FLAGS=3
PROGRAMFILES=C:\Program 文件
APPDATA=C:\Users\axelrod\AppData\Roaming
PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PROGRAMW6432=C:\Program 文件
PROGRAMDATA=C:\ProgramData
SYSTEMROOT=C:\Windows
USERNAME=axelrod
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
USERDNSDOMAIN=CHAPMAN.EDU
PYTHONPATH=C:\Users\axelrod\Applications\eclipse\plugins\org.python.pydev_4.2.0.201507041133\pysrc\pydev_sitecustomize;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\DLLs;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\lib-tk;C:\Users\axelrod\AppData\Local\Continuum\Anaconda;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib \site-packages\Sphinx-1.3.1-py2.7.egg;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\cryptography-0.9.1-py2.7-win-amd64.egg ;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\win32;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\win32\lib;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\Pythonwin;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\setuptools-17.1.1-py2.7.egg;C:\Users\axelrod\Desktop\ECLIPSE WORKSPACE\IntroPythonDataAnalysis\src
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
OS=Windows_NT
COMPUTERNAME=ENG-AXELROD5520
COMMONPROGRAMW6432=C:\Program Files\Common 文件
COMMONPROGRAMFILES=C:\Program Files\Common 文件
COMSPEC=C:\Windows\system32\cmd.exe
PROCESSOR_REVISION=2a07
CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
WINDIR=C:\Windows
HOMEPATH=\Users\axelrod
温度=C:\Users\axelrod\AppData\Local\温度
HOMEDRIVE=C:
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
USERPROFILE=C:\Users\axelrod
WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log
TMP=C:\Users\axelrod\AppData\Local\Temp
PUBLIC=C:\Users\Public
NUMBER_OF_PROCESSORS=4
QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
PythonIO 编码=UTF-8
PYDEV_UMD_ENABLED=真
PYDEV_UMD_NAMELIST=guidata,guiqwt
PYDEV_UMD_VERBOSE=真
一种解决方案是使用集成了 python 的 Liclipse,您只需配置解释器即可。或者检查您的口译员是否配置正确。配置位于 Window->Preferences->Pydev->Intrepreters。或者另一件可能出错的事情是 pydev 模块可能适用于某种类型的 eclipse。我个人使用的 LiClipse 很棒。
在 Eclipse 中使用 PyDev 控制台,最初运行良好。 Python 代码将在控制台内运行。 当我开始在 PyDev 模块中编写文件时,我尝试执行 runfile() 但是已经使用 python returns 初始化的控制台出现此错误:
Failed to parse server's response: Expected methodResponse element, got head127.0.0.1 - - [18/Jul/2015 13:55:14] code 400, message Bad HTTP/0.9 request type ('POST')
之后,我关闭了控制台并重新启动了 Eclipse。现在,当我尝试初始化 pyDev 控制台时,它 returns this:
Error initializing console.
Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole. Last msg received: Failed to parse server's response: Expected methodResponse element, got head
使用的命令行:
C:\Users\axelrod\AppData\Local\Continuum\Anaconda\python.exe -u C:\Users\axelrod\Applications\eclipse\plugins\org.python.pydev_4.2.0.201507041133\pysrc\pydevconsole.py 50824 50825 50824 50825
环境:
PATH=C:/程序Files/Java/jre1.8.0_51/bin/server;C:/程序Files/Java/jre1.8.0_51/bin ;C:/Program Files/Java/jre1.8.0_51/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Dell\DW 无线网卡;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\程序 Files\CREDANT\Shield v7.3\;C:\Users\axelrod\AppData\Local\Continuum\Anaconda;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\Scripts;C:\Users\axelrod\Applications\eclipse;
LOCALAPPDATA=C:\Users\axelrod\AppData\Local
PROCESSOR_LEVEL=6
系统驱动=C:
FP_NO_HOST_CHECK=否
COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
USERDOMAIN=CHAPMANEDU
登录服务器=\ORDC01
LDMS_LOCAL_DIR=C:\Program Files (x86)\LANDesk\LDClient\Data
提示=$P$G
SESSIONNAME=控制台
ALLUSERSPROFILE=C:\ProgramData
PROGRAMFILES(X86)=C:\Program 文件 (x86)
PROCESSOR_ARCHITECTURE=AMD64
ASL.LOG=目的地=文件
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
WINDOWS_TRACING_FLAGS=3
PROGRAMFILES=C:\Program 文件
APPDATA=C:\Users\axelrod\AppData\Roaming
PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PROGRAMW6432=C:\Program 文件
PROGRAMDATA=C:\ProgramData
SYSTEMROOT=C:\Windows
USERNAME=axelrod
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
USERDNSDOMAIN=CHAPMAN.EDU
PYTHONPATH=C:\Users\axelrod\Applications\eclipse\plugins\org.python.pydev_4.2.0.201507041133\pysrc\pydev_sitecustomize;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\DLLs;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\lib-tk;C:\Users\axelrod\AppData\Local\Continuum\Anaconda;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib \site-packages\Sphinx-1.3.1-py2.7.egg;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\cryptography-0.9.1-py2.7-win-amd64.egg ;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\win32;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\win32\lib;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\Pythonwin;C:\Users\axelrod\AppData\Local\Continuum\Anaconda\lib\site-packages\setuptools-17.1.1-py2.7.egg;C:\Users\axelrod\Desktop\ECLIPSE WORKSPACE\IntroPythonDataAnalysis\src
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
OS=Windows_NT
COMPUTERNAME=ENG-AXELROD5520
COMMONPROGRAMW6432=C:\Program Files\Common 文件
COMMONPROGRAMFILES=C:\Program Files\Common 文件
COMSPEC=C:\Windows\system32\cmd.exe
PROCESSOR_REVISION=2a07
CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
WINDIR=C:\Windows
HOMEPATH=\Users\axelrod
温度=C:\Users\axelrod\AppData\Local\温度
HOMEDRIVE=C:
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
USERPROFILE=C:\Users\axelrod
WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log
TMP=C:\Users\axelrod\AppData\Local\Temp
PUBLIC=C:\Users\Public
NUMBER_OF_PROCESSORS=4
QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
PythonIO 编码=UTF-8
PYDEV_UMD_ENABLED=真
PYDEV_UMD_NAMELIST=guidata,guiqwt
PYDEV_UMD_VERBOSE=真
一种解决方案是使用集成了 python 的 Liclipse,您只需配置解释器即可。或者检查您的口译员是否配置正确。配置位于 Window->Preferences->Pydev->Intrepreters。或者另一件可能出错的事情是 pydev 模块可能适用于某种类型的 eclipse。我个人使用的 LiClipse 很棒。