【问题标题】:Errno 10053 with Python IDLE带有 Python IDLE 的 Errno 10053
【发布时间】:2014-05-16 02:43:15
【问题描述】:

今天我出乎意料地开始遇到这个问题.. 尝试从我的 .py 文件运行 Python Shell。 shell 窗口打开时光标闪烁。如果我输入任何内容并点击输入以下错误命中。 Python IDLE 根本不起作用,我只收到此错误。

IDLE internal error in runcode()
Traceback (most recent call last):
  File "C:\Python27\lib\idlelib\rpc.py", line 235, in asyncqueue
    self.putmessage((seq, request))
  File "C:\Python27\lib\idlelib\rpc.py", line 332, in putmessage
    n = self.sock.send(s[:BUFSIZE])
error: [Errno 10053] An established connection was aborted by the software in your host machine

Python(命令行)工作正常,但 IDLE 不行。我试过重新启动 Windows 和系统还原,但没有成功。我一直在搜索答案,但收效甚微。我的防火墙一直被禁用。尝试从命令行启动 IDLE 会返回以下错误。

C:\Python27>python.exe -m idlelib.idle
Failed to load extension 'CallTips'
Traceback (most recent call last):
  File "C:\Python27\lib\idlelib\EditorWindow.py", line 1061, in load_standard_ex
tensions
    self.load_extension(name)
  File "C:\Python27\lib\idlelib\EditorWindow.py", line 1076, in load_extension
    cls = getattr(mod, name)
AttributeError: 'module' object has no attribute 'CallTips'

----------------------------------------
Unhandled server exception!
Thread: SockThread
Client Address:  ('127.0.0.1', 49552)
Request:  <socket._socketobject object at 0x0176BCA8>
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\idlelib\rpc.py", line 503, in __init__
    SocketServer.BaseRequestHandler.__init__(self, sock, addr, svr)
  File "C:\Python27\lib\SocketServer.py", line 649, in __init__
    self.handle()
  File "C:\Python27\lib\idlelib\run.py", line 276, in handle
    executive = Executive(self)
  File "C:\Python27\lib\idlelib\run.py", line 315, in __init__
    self.calltip = CallTips.CallTips()
AttributeError: 'module' object has no attribute 'CallTips'

Windows -32 位操作系统。提前感谢您的帮助。

【问题讨论】:

    标签: python-2.7 windows-7


    【解决方案1】:

    好吧,我的不耐烦占了上风。我将我的站点包文件复制到桌面并卸载/重新安装了 Python。将站点包重新粘贴到我的 Python 目录中,世界就一切正常了。

    【讨论】:

      【解决方案2】:

      这真的很奇怪。但是你发布的一个很好的问题!很高兴阅读。

      这里可能是一个解决方案:https://stackoverflow.com/a/3277996/1320237

      为什么不能从标准库中导入 Calltips 模块?也许你有一个 Python 3 空闲打开?然后他们干涉?

      【讨论】:

      • 感谢您的评论。没有其他空闲打开。我正在考虑卸载/重新安装 python27,但是我担心我会丢失我下载的所有安装后模块(即 numpy、matplotlib 等)。但是话又说回来,我已经浪费了半天的时间来解决这个问题,我再也负担不起了。我得回去工作了!
      猜你喜欢
      • 2013-07-25
      • 2011-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多