19.04.13 20:59, b_erickson1 написав(ла):
I have python 2.6.2 and I trying to get it to unzip a file made with winzip
pro. The file extension is zipx. This is on a windows machine where I have to
send them all that files necessary to run. I am packaging this with py2exe. I
can open the file
On 04/19/2013 08:24 PM, Steven D'Aprano wrote:
You are missing that zipx is not the same as zip, and Python very likely
does not support the zipx compression algorithm.
http://kb.winzip.com/kb/entry/7/
My guess is that the zipx header is similar enough to zip that Python can
retrieve
On Fri, 19 Apr 2013 17:59:26 +, b_erickson1 wrote:
> I have python 2.6.2 and I trying to get it to unzip a file made with
> winzip pro. The file extension is zipx. This is on a windows machine
> where I have to send them all that files necessary to run. I am
> packaging this with py2exe. I
On 2013-04-19 16:29, Dave Angel wrote:
> > zFile = zipfile.ZipFile(fullPathName,'r')
>
> The second parameter to ZipFile() probably should be 'rb' not 'r'
Just for the record, the zipfile.ZipFile.__init__ maps "r" to open the
file with "rb", so that's not the issue.
Your suggestion about opening
On 04/19/2013 01:59 PM, b_erickson1 wrote:
I have python 2.6.2 and I trying to get it to unzip a file made with winzip
pro. The file extension is zipx. This is on a windows machine where I have to
send them all that files necessary to run. I am packaging this with py2exe. I
can open the fi
In John Gordon writes:
> In "b_erickson1"
> writes:
> > ozFile = open(filename,'w')
> > ozFile.write(zFile.read(filename))
> > ozFile.close()
> Perhaps you want to use zFile.extract() instead of zFile.read()?
No, that's not it. Your code should work.
Y
In "b_erickson1"
writes:
> ozFile = open(filename,'w')
> ozFile.write(zFile.read(filename))
> ozFile.close()
Perhaps you want to use zFile.extract() instead of zFile.read()?
--
John Gordon A is for Amy, who fell down the stairs
gor...@pan
I have python 2.6.2 and I trying to get it to unzip a file made with winzip
pro. The file extension is zipx. This is on a windows machine where I have to
send them all that files necessary to run. I am packaging this with py2exe. I
can open the file with
zFile = zipfile.ZipFile(fullPathName