Canopy 1.4.1 Shell突然卡住了

时间:2014-09-27 10:19:01

标签: python console interpreter canopy ioerror

我已经使用了Enthought Canopy 1.4.1一段时间,而且我从来没有遇到过问题。今天我启动了程序,无论我做什么,控制台都没有给我任何东西或类似的东西:

IOError                                   Traceback (most recent call last)
/home/luca/Software/Canopy32/appdata/canopy-1.4.1.1975.rh5-x86/lib/python2.7/site-packages/IPython/kernel/zmq/eventloops.pyc in process_stream_events()
     46         while stream.getsockopt(zmq.EVENTS) & zmq.POLLIN:
     47             with context():
---> 48                 kernel.do_one_iteration()
        global kernel.do_one_iteration = undefined
     49 
     50     fd = stream.getsockopt(zmq.FD)

/home/luca/Software/Canopy32/appdata/canopy-1.4.1.1975.rh5-x86/lib/python2.7/site-packages/IPython/kernel/zmq/ipkernel.pyc in do_one_iteration(self=<IPython.kernel.zmq.ipkernel.Kernel object>)
    292         for stream in self.shell_streams:
    293             # handle at most one request per iteration
--> 294             stream.flush(zmq.POLLIN, 1)
         stream.flush = <bound method ZMQStream.flush of <zmq.eventloop.zmqstream.ZMQStream object at 0x8e439ac>>
         global zmq.POLLIN = 1
    295             stream.flush(zmq.POLLOUT)
    296 

/home/luca/Software/Canopy32/appdata/canopy-1.4.1.1975.rh5-x86/lib/python2.7/site-packages/zmq/eventloop/zmqstream.pyc in flush(self=<zmq.eventloop.zmqstream.ZMQStream object>, flag=1, limit=1)
        323         int : count of events handled (both send and recv)
        324         """
    --> 325         self._check_closed()
            self._check_closed = <bound method ZMQStream._check_closed of <zmq.eventloop.zmqstream.ZMQStream object at 0x8e439ac>>
        326         # unset self._flushed, so callbacks will execute, in case flush has
        327         # already been called this iteration

/home/luca/Software/Canopy32/appdata/canopy-1.4.1.1975.rh5-x86/lib/python2.7/site-packages/zmq/eventloop/zmqstream.pyc in _check_closed(self=<zmq.eventloop.zmqstream.ZMQStream object>)
    490     def _check_closed(self):
    491         if not self.socket:
--> 492             raise IOError("Stream is closed")
        global IOError = undefined
    493     
    494     def _rebuild_io_state(self):

IOError: Stream is closed

即使我做的事情很简单:

a = 1

它卡住了,它给了我以前的IOError。请帮忙,我需要它工作!

感谢, 卢卡

1 个答案:

答案 0 :(得分:0)

当您说您执行完全卸载时,步骤3和4,您的意思是这个链接吗?:https://support.enthought.com/entries/23580651-Uninstalling-and-resetting-Canopy

如果是这样,你仍然得到错误,那么你可能已经创建了一个与系统库模块同名的python文件,因此干扰了python的启动。查看小时主目录,或PYTHONPATH中的每个目录(如果有)。

另外:查看您的环境(在终端中键入env)以查找可能干扰的任何与python相关的环境变量,因为您的“昨天最后一件事”安装可能会破坏您的系统。