2014-09-27 48 views
0

我一直在使用Enthought Canopy 1.4.1一段時間,我從來沒有遇到過問題。今天,我公司推出的方案,並不管我做什麼,控制檯給我回存在或是類似的東西:樹冠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。請幫助,我需要它的工作!

感謝, 盧卡

+0

您是否嘗試過將其關閉並重新打開重新安裝? – Veedrac 2014-09-27 10:34:56

+0

嗨,我試圖從[鏈接](https://support.enthought.com/entries/23580651-Uninstalling-and-resetting-Canopy)重新安裝以下步驟3和4,但現在當我做「a = 1」時什麼也沒做。 – 2014-09-27 11:19:57

+0

我也嘗試重新安裝一切(按照所有步驟),但它不起作用 – 2014-09-27 11:40:08

回答

0

當你說你做的完全卸載,步驟3和4,你的意思是這個鏈接?:https://support.enthought.com/entries/23580651-Uninstalling-and-resetting-Canopy

如果是這樣,你仍然得到錯誤,那麼你可能已經創建了一個與系統庫模塊名稱相同的python文件,因此會干擾python的啓動。查看小時主目錄,或者查看PYTHONPATH上的每個目錄(如果有的話)。

另請參見:在您的環境中(在終端中輸入env)以查看可能會干擾的任何與python相關的環境變量,因爲您昨天的「最後一件事」安裝可能會破壞您的系統。