Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Using a PyDev console in Eclipse, which initially worked fine. Python code would work inside the console. When I started writing a file within a PyDev module, I tried executing runfile() but the console that had already initialized with python returns this error:

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')

After which, I closed the console and restarted Eclipse. Now, when I try to even initialize the pyDev console it 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

Command Line used:

C:UsersaxelrodAppDataLocalContinuumAnacondapython.exe -u C:UsersaxelrodApplicationseclipsepluginsorg.python.pydev_4.2.0.201507041133pysrcpydevconsole.py 50824 50825 50824 50825

Environment:

PATH=C:/Program Files/Java/jre1.8.0_51/bin/server;C:/Program Files/Java/jre1.8.0_51/bin;C:/Program Files/Java/jre1.8.0_51/lib/amd64;C:ProgramDataOracleJavajavapath;C:Program FilesDellDW WLAN Card;;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)QuickTimeQTSystem;C:Program FilesCREDANTShield v7.3;C:UsersaxelrodAppDataLocalContinuumAnaconda;C:UsersaxelrodAppDataLocalContinuumAnacondaScripts;C:UsersaxelrodApplicationseclipse;

LOCALAPPDATA=C:UsersaxelrodAppDataLocal

PROCESSOR_LEVEL=6

SYSTEMDRIVE=C:

FP_NO_HOST_CHECK=NO

COMMONPROGRAMFILES(X86)=C:Program Files (x86)Common Files

USERDOMAIN=CHAPMANEDU

LOGONSERVER=ORDC01

LDMS_LOCAL_DIR=C:Program Files (x86)LANDeskLDClientData

PROMPT=$P$G

SESSIONNAME=Console

ALLUSERSPROFILE=C:ProgramData

PROGRAMFILES(X86)=C:Program Files (x86)

PROCESSOR_ARCHITECTURE=AMD64

ASL.LOG=Destination=file

DEFLOGDIR=C:ProgramDataMcAfeeDesktopProtection

WINDOWS_TRACING_FLAGS=3

PROGRAMFILES=C:Program Files

APPDATA=C:UsersaxelrodAppDataRoaming

PSMODULEPATH=C:Windowssystem32WindowsPowerShellv1.0Modules

PROGRAMW6432=C:Program Files

PROGRAMDATA=C:ProgramData

SYSTEMROOT=C:Windows

USERNAME=axelrod

VSEDEFLOGDIR=C:ProgramDataMcAfeeDesktopProtection

USERDNSDOMAIN=CHAPMAN.EDU

PYTHONPATH=C:UsersaxelrodApplicationseclipsepluginsorg.python.pydev_4.2.0.201507041133pysrcpydev_sitecustomize;C:UsersaxelrodAppDataLocalContinuumAnacondaDLLs;C:UsersaxelrodAppDataLocalContinuumAnacondalib;C:UsersaxelrodAppDataLocalContinuumAnacondaliblib-tk;C:UsersaxelrodAppDataLocalContinuumAnaconda;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packages;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packagesSphinx-1.3.1-py2.7.egg;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packagescryptography-0.9.1-py2.7-win-amd64.egg;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packageswin32;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packageswin32lib;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packagesPythonwin;C:UsersaxelrodAppDataLocalContinuumAnacondalibsite-packagessetuptools-17.1.1-py2.7.egg;C:UsersaxelrodDesktopECLIPSE WORKSPACEIntroPythonDataAnalysissrc

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

OS=Windows_NT

COMPUTERNAME=ENG-AXELROD5520

COMMONPROGRAMW6432=C:Program FilesCommon Files

COMMONPROGRAMFILES=C:Program FilesCommon Files

COMSPEC=C:Windowssystem32cmd.exe

PROCESSOR_REVISION=2a07

CLASSPATH=.;C:Program Files (x86)QuickTimeQTSystemQTJava.zip

WINDIR=C:Windows

HOMEPATH=Usersaxelrod

TEMP=C:UsersaxelrodAppDataLocalTemp

HOMEDRIVE=C:

PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

USERPROFILE=C:Usersaxelrod

WINDOWS_TRACING_LOGFILE=C:BVTBinTestsinstallpackagecsilogfile.log

TMP=C:UsersaxelrodAppDataLocalTemp

PUBLIC=C:UsersPublic

NUMBER_OF_PROCESSORS=4

QTJAVA=C:Program Files (x86)QuickTimeQTSystemQTJava.zip

PYTHONIOENCODING=UTF-8

PYDEV_UMD_ENABLED=true

PYDEV_UMD_NAMELIST=guidata,guiqwt

PYDEV_UMD_VERBOSE=true

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
148 views
Welcome To Ask or Share your Answers For Others

1 Answer

One solution is to use Liclipse, which comes with python integration, all you have to do is to configure the interpreter. Or check weather your interpreter is configured correctly. The configuration is found at Window->Preferences->Pydev->Intrepreters. Or another thing that might be wrong is that the pydev module might be for a certain type of eclipse. I personally use LiClipse which is great.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...