[Zope] external method with import tarfile
alanwilter at gmail.com
Wed Jul 19 08:38:58 EDT 2006
I managed to find the problem and the solution.
First, I've forgot to mention that in my script, oname is an uploaded file.
I just inserted a f.close() and voilá!
tar = tarfile.open(oname,"r:gz")
for itar in tar:
On 18/07/06, Alan <alanwilter at gmail.com> wrote:
> Thanks for your reply.
> Yes, my script works and my file are not broken. I am using mac osx
> tiger 10.4.7, zope 2.9.3 and python 2.4.2.
> On 18/07/06, Andreas Jung <lists at zopyx.com> wrote:
> > --On 18. Juli 2006 16:12:18 +0100 Alan <alanwilter at gmail.com> wrote:
> > >
> > > Error Type: IOError
> > > Error Value: CRC check failed
> > >
> > >
> > This is unlikely a Zope issue. Either your tar file is broken or the
> > tarfile module is broken. Check if your code runs without Zope as a
> > simple PythonScript..there is nothing about Zope involved in your issue.
> > -aj
> Alan Wilter S. da Silva, D.Sc. - Research Associate
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
Alan Wilter S. da Silva, D.Sc. - Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.
More information about the Zope