2014-04-04 55 views
0

今天,我开始有这个问题..试图从我的.py文件运行Python Shell。 shell窗口打开并显示一个闪烁的光标。如果我输入任何内容并点击输入以下错误命中。 Python IDLE根本不起作用,我只能得到这个错误。Errno 10053与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和系统恢复没有运气。我一直在用Google搜索一些成功的答案。我的防火墙一直被禁用。尝试从命令行启动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操作系统。在此先感谢您的帮助。

回答

0

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

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

为什么它是不可能的进口从非标准库Calltips模块?也许你有一个Python 3闲置打开?那他们干涉?

+0

感谢您的评论。没有其他IDLE打开。我正在考虑卸载/重新安装python27,但是我担心我会失去所有我已经下载的安装后模块(例如numpy,matplotlib等)。但是,再次,我已经失去了半天的时间解决这个问题,我再也无法承受。我需要回去工作! – Laaaars

0

我的急躁得到了我最好的。我将我的站点包文件复制到桌面并卸载/重新安装Python。将网站包粘贴回我的Python目录,并且再次与世界一切正常。