2017-08-25 70 views
0

我在Windows 7和WinPython 3.6.0.1上使用作爲Eclipse擴展安裝的PyDev(通過更新站點)。我可以運行代碼,即使語法檢查器壞了就好了,即,標記爲錯誤「未定義的變量:打印」行作爲Eclipse中的PyDev 5.9.2運行時錯誤Oxygen 4.7.0

print("hello") 

一樣簡單,我認爲這個問題與此錯誤連接,我得到的錯誤當我啓動Eclipse日誌:

Error creating python process - exited before creating sockets - exitValue = (1). 

這是異常堆棧跟蹤

java.lang.RuntimeException: Error creating python process - exited before creating sockets - exitValue = (1). 
ProcessInfo: 

- Executed: C:\tools\winpython\3.6.0.1\python-3.6.0.amd64\python.exe -u C:\Portables\Eclipse\plugins\org.python.pydev_5.9.2.201708151115\pysrc\pycompletionserver.py 55270 

- Environment: 
ALLUSERSPROFILE=C:\ProgramData 
[... list of all the environment variables ...] 

- Working Dir: 
C:\Portables\Eclipse\plugins\org.python.pydev_5.9.2.201708151115\pysrc 

- OS: 
Windows 7 

- Std output: 


- Err output: 
Traceback (most recent call last): 

    File "C:\Portables\Eclipse\plugins\org.python.pydev_5.9.2.201708151115\pysrc\pycompletionserver.py", line 13, in <module> 

    from _pydevd_bundle.pydevd_constants import IS_JYTHON 

ModuleNotFoundError: No module named '_pydevd_bundle' 



    at org.python.pydev.core.log.Log.log(Log.java:54) 

    at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:290) 

    at org.python.pydev.editor.codecompletion.shell.ShellsContainer.getServerShell(ShellsContainer.java:232) 

    at org.python.pydev.editor.codecompletion.shell.ShellsContainer.getServerShell(ShellsContainer.java:165) 

    at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:222) 

    at org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.createTokensFromServer(CompiledModule.java:372) 

    at org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.<init>(CompiledModule.java:176) 

    at org.python.pydev.editor.codecompletion.revisited.SystemModulesManager.getBuiltinModule(SystemModulesManager.java:332) 

    at org.python.pydev.editor.codecompletion.revisited.SystemModulesManager.getBuiltinModule(SystemModulesManager.java:1) 

    at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getBuiltinMod(AbstractInterpreterManager.java:146) 

    at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getBuiltinCompletions(AbstractInterpreterManager.java:118) 

    at org.python.pydev.plugin.nature.PythonNature.getBuiltinCompletions(PythonNature.java:1126) 

    at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getBuiltinComps(AbstractASTManager.java:1801) 

    at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getBuiltinCompletions(AbstractASTManager.java:1787) 

    at com.python.pydev.analysis.scopeanalysis.AbstractScopeAnalyzerVisitor.<init>(AbstractScopeAnalyzerVisitor.java:151) 

    at com.python.pydev.analysis.visitors.OccurrencesVisitor.<init>(OccurrencesVisitor.java:105) 

    at com.python.pydev.analysis.OccurrencesAnalyzer.analyzeDocument(OccurrencesAnalyzer.java:50) 

    at com.python.pydev.analysis.builder.AnalysisBuilderRunnable.doAnalysis(AnalysisBuilderRunnable.java:271) 

    at com.python.pydev.analysis.builder.AbstractAnalysisBuilderRunnable.run(AbstractAnalysisBuilderRunnable.java:162) 

    at org.python.pydev.core.concurrency.RunnableAsJobsPoolThread$1.run(RunnableAsJobsPoolThread.java:140) 

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) 

所以,顯然錯誤是這樣

ModuleNotFoundError: No module named '_pydevd_bundle' 

我試過重新安裝PyDev(它看起來像安裝可能會壞掉),但無濟於事。想法?

回答

0

我可能真的發現了這個問題。我發現我安裝的WinPython發行版是「WinPython Zero」,它沒有附加的軟件包。我卸載它並安裝了「默認」WinPython;現在調試器按預期工作。我想那裏有一些庫需要啓用調試。也許更多的信息錯誤信息會對我有所幫助,因爲我收到的這個信息真的不多。

有意思的是,這正是PyCharm中的情況:https://youtrack.jetbrains.com/issue/PY-24198