python - Eclipse 和 PyDev 调试器出现错误,但该程序在 win 7 上运行良好

标签 python eclipse python-3.x windows-7 pydev

我在 Win 7 上使用 PyDev 在 Eclipse (4.3.2v20140221-1852) 中进行调试。 我的 python 是 3.2.5。

Eclipse Standard/SDK,版本:Kepler Service Release 2

PyDev 是来自 Aptana 的 3.5.0.201405201709。

我得到错误:

   Unexpected error setting up the debugger
   Socket operation on nonsocket: configureBlocking

这不同于

    http://stackoverflow.com/questions/11388503/after-upgrading-eclipse-aptana-pydev-debugger-not-working

错误与我的错误不同:

   pydev debugger: starting (pid: 16428)
  Could not connect to IP_address: port_num

追溯(最近的调用最后):

   File "F:\my_path\eclipse432\eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydevd.py", line 1837, in <module>
    debugger.connect(setup['client'], setup['port'])

   File "F:\my_path\eclipse432\eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydevd.py", line 387, in connect
   s = StartClient(host, port)

   File "F:\my_path\eclipse432\eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydevd_comm.py", line 416, in StartClient

   s = socket(AF_INET, SOCK_STREAM);
   File "F:\my_path\python\python325\lib\socket.py", line 94, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)

socket.error: [Errno 10022] 提供了无效参数

如有任何帮助,我们将不胜感激。

最佳答案

当我切换计算机并认为我可以简单地复制我安装 python 的文件夹时出现该错误,就像我在安装 eclipse 时所做的那样。使用 python 安装程序下载并重新安装解决了我的问题。显然,安装程序覆盖了 c:\windows\system32 中的 python dll,并可能做了其他事情。

关于python - Eclipse 和 PyDev 调试器出现错误,但该程序在 win 7 上运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24290334/

相关文章:

python-3.x - 使用 tkinter.filedialog 时为 "libpng warning: iCCP: known incorrect sRGB profile"

python - 从 Google Cloud Storage Bucket 提供静态文件(适用于 GCE 上托管的 Django 应用程序)

python - 如何让基于类的装饰器为实例方法工作?

python - 在Python中将300个CSV文件转换为一个二维数组

java - Eclipse 正在运行错误的类

python - 重载列表理解行为?

eclipse - Eclipse:如何关闭多个窗口

java - 使用 Tomcat webapp 访问存储在服务器上的文件

python - 封闭式导入在 Python 中的工作原理

python - 如何在Python中的for循环中创建多个迭代器和条件?