How to Resolve a Qshell End-of-File (EOF) Condition Error

Overview

Occasionally, python produces errors and qshell needs to be restarted to resolve the errors. This topic provides an example of the following error:

 

***ERROR*** <type 'exceptions.EOFError'>

 


Description

exception EOFError - Raised when one of the built-in functions (input() or raw_input()) hits an end-of-file condition (EOF) without reading any data. (N.B.: the file.read() and file.readline() methods return an empty string when they hit EOF.)
 


Example

***ERRORTRACEBACK***
                    Traceback (most recent call last):
                    ~   File "/opt/qbase3/lib/python2.6/site-packages/IPython/iplib.py", line 2257, in runcode
                        exec code_obj in self.user_global_ns, self.user_ns
                    ~   File "<ipython console>", line 2, in <module>
                    ~   File "/opt/qbase3/lib/pymonkey/extensions/cluster/Cluster.py", line 167, in executeQshell
                        returncode,stdout=node.executeQshell(command,dieOnError,silent)
                    ~   File "/opt/qbase3/lib/pymonkey/extensions/cluster/ClusterNode.py", line 49, in executeQshell
                        self.sendfile(tmpfilepath,tmpfilepath,silent)
                    ~   File "/opt/qbase3/lib/pymonkey/extensions/cluster/ClusterNode.py", line 68, in sendfile 
                       
ftp.put(source,dest)
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp_client.py", line
                    561, in put
                        fr = self.file(remotepath, 'wb')
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp_client.py", line
                    245, in open
                        t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp_client.py", line
                    627, in _request
                        num = self._async_request(type(None), t, *arg)
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp_client.py", line
                    649, in _async_request
                        self._send_packet(t, str(msg))
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp.py", line 172, in
                    _send_packet
                        self._write_all(out)
                    ~   File "/opt/qbase3/lib/python/site-packages/paramiko-1.7.6.1.egg/paramiko/sftp.py", line 138, in
                    _write_all
                        raise EOFError()
                   ~ EOFError
 
                    ********************
 
                    ***ERROR*** <type 'exceptions.EOFError'>
                    <type 'exceptions.EOFError'>  <traceback object at 0x243dbd8>

 

 


Workaround

Exit qshell and then reenter qshell.

 


 

 

 



This page was generated by the BrainKeeper Enterprise Wiki, © 2018