plagued by IOError: [Errno 0]?

Richard van de Stadt stadt at cs.utwente.nl
Wed Oct 25 21:37:37 EDT 2000


Bill Janssen wrote:
> 
> I'm running a server that periodically, and unpredictably, keeps
> getting an IOError when opening a file.  But the Errno is 0!  What
> does this mean, and how can I get rid of it?
> 
> I'm running on a Solaris 2.6 SPARC system, and the files being opened
> are relatively large (3.4 MB) on NFS-mounted file systems.  Python 1.5.2.
> 
> IOError: [Errno 0] Error: '/docRepository/NewRepoDoc/1'
> I'm doing an "open(fname, 'r')".
> 
> Bill

Maybe the result is stored temporarily on the default tmp dir, while that
dir isn't big enough to hold the contents of the file. Try setting
os.environ['TMPDIR'] to a directory that is big enough to store any
intermediate copy of the file you're opening.


Richard.



More information about the Python-list mailing list