Errno 10053与Python IDLE

时间:2014-04-04 01:04:11

标签: python-2.7 windows-7

今天我突然出现了这个问题..试图从我的.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 -32bit操作系统。提前感谢您的帮助。

2 个答案:

答案 0 :(得分:0)

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

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

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

答案 1 :(得分:0)

我的不耐烦使我受益匪浅。我将我的站点包文件复制到桌面并卸载/重新安装了Python。将站点包粘贴回我的Python目录,所有这些都与世界再次相符。