我在 Mac 上的 Eclipse 中安装了 PyDev。每当我写代码时,它只有一些建议,而且似乎不完整。例如,每当我输入“r”时,它只会提示“raise()”和“return()”。但是,我希望它建议的所有其他功能仍然在运行时执行。
这是错误:
连接到 python 进程时出错。- NOT ALIVE 中的进程(输出 = 0) - ProcessInfo:
执行:/usr/bin/python -u /Users//Downloads/eclipse 2/plugins/org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py 52958 52957
环境:APP_ICON_2099=../Resources/Eclipse.icns Apple_PubSub_Socket_Render=/tmp/launch-4HHiSZ/Render COMMAND_MODE=unix2003 DISPLAY=/tmp/launch-hu6CLm/org.x:0 HOME=/Users/JAVA_STARTED_ON_FIRST_THREAD_2099=1 LOGNAME= PATH =/usr/bin:/bin:/usr/sbin:/sbin PYTHONPATH=/Users//Downloads/ecli pse 2/plugins/org.python.pydev_2.6.0.2012062818 /pysrc/pydev_sitecustomize:/System/Library/Frameworks /Python。框架/版本/2.6/lib/python26.zip:/System/Library/Frameworks/Python。框架/版本/2.6/lib/python2.6:/System/Library/Frameworks/Python。框架/版本/2.6/lib/python2.6/plat-darwin:/System/Library/Frameworks/Python。框架/版本/2.6/lib/python2.6/plat-mac:/System/Library/Frameworks/Python。framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python。框架/版本/2.6/Extras/lib/python:/系统/库/框架/Python。框架/版本/2.6/lib/python2.6/lib-tk:/System/Library/Frameworks/Python。框架/版本/2.6/lib/python2.6/lib-old:/System/Library/Frameworks/Python。框架/版本/2.6/lib/python2.6/lib-dynload:/System/Library/Frameworks/Python。框架/版本/2.6/Extras/lib/python/PyObjC:/System/Library/Frameworks/Python. framework/Versions/2.6/Extras/lib/python/wx-2.8- mac-unicode SHELL=/bin/bash SSH_AUTH_SOCK=/tmp/launch-phfnZP/Listeners TMPDIR=/var/folders/Kr/Krv2afoAFMa79AvxnI73IE++ +TI/-Tmp -/ 用户= __CF_USER_TEXT_ENCODING=0x1F5:0:0 com.apple.java.jvmTask=JNI /系统/库/框架/Python。框架/版本/2.6/Extras/lib/python/PyObjC:/System/Library/Frameworks/Python. framework/Versions/2.6/Extras/lib/python/wx-2.8- mac-unicode SHELL=/bin/bash SSH_AUTH_SOCK=/tmp/launch-phfnZP/Listeners TMPDIR=/var/folders/Kr/Krv2afoAFMa79AvxnI73IE++ +TI/-Tmp -/ 用户= __CF_USER_TEXT_ENCODING=0x1F5:0:0 com.apple.java.jvmTask=JNI /系统/库/框架/Python。框架/版本/2.6/Extras/lib/python/PyObjC:/System/Library/Frameworks/Python. framework/Versions/2.6/Extras/lib/python/wx-2.8- mac-unicode SHELL=/bin/bash SSH_AUTH_SOCK=/tmp/launch-phfnZP/Listeners TMPDIR=/var/folders/Kr/Krv2afoAFMa79AvxnI73IE++ +TI/-Tmp -/ 用户= __CF_USER_TEXT_ENCODING=0x1F5:0:0 com.apple.java.jvmTask=JNI
工作目录:/Users//Downloads/eclipse 2/plugins/org.python.pydev_2.6.0.2012062818/pysrc
操作系统:Mac OS X
标准输出:pycompletionserver 将启动 pycompletionserver 创建套接字 pycompletionserver 收到错误:Traceback(最近一次调用最后):文件“/Users//Downloads/eclipse 2/plugins/org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py” ,第 261 行,在运行 s.bind((HOST, self.thisPort)) 文件“”,第 1 行,在 bind gaierror: [Errno 8] nodename nor servname provided, or not known
错误输出:使用参数连接时出错:主机:本地主机端口:52957 线程 Thread-1 中的异常:回溯(最近一次调用):文件“/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2. 6/threading.py”,第 522 行,在 __bootstrap_inner self.run() 文件中“/Users//Downloads/eclipse 2/plugins/org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py”,第 261 行,在运行 s.bind((HOST, self.thisPort)) 文件“”中,第 1 行,在 bind gaierror: [Errno 8] nodename nor servname provided, or not known