Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43923

unzipping a zipx file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <brian@dashley.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'filename': 0.09; 'python': 0.11; 'archive': 0.14; 'windows': 0.15; 'fine.': 0.16; 'from:addr:brian': 0.16; 'missing?': 0.16; 'skip:z 30': 0.16; 'trying': 0.19; 'machine': 0.22; 'header:User- Agent:1': 0.23; 'looks': 0.24; 'extension': 0.26; 'code:': 0.26; 'errors': 0.30; 'extract': 0.31; 'file': 0.32; 'text': 0.33; 'open': 0.33; 'packaging': 0.33; 'but': 0.35; 'thanks': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:bf1.yahoo.com': 0.60; 'received:mail.bf1.yahoo.com': 0.60; 'skip:o 30': 0.61; 'received:bullet.mail.bf1.yahoo.com': 0.74
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoogroups.com; s=echoe; t=1366394366; bh=dvLm1lwSLIzMjgRZR4BPjiRFlkq2m9R2nHWM4LZcfZc=; h=Received:Received:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-Yahoo-Post-IP:X-Yahoo-Newman-Property:Sender; b=jIYSMIXsarJULsO3Y31jKTZ2axz9XcC2ji6wYeINS9ua8MsF6bm3CbMexlKf0bp+X4qnMQxIatCaRLbHod9VXxPpGbDWG+/EW3He8V5ZQtqHxmcn1n9s+Eq/N9FaMNAdZk4v53aS2paIVc5eVvTu+SWqB/ST3CvAdtqUjTINu38=
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=echoe; d=yahoogroups.com; b=J9l5zlyQhUPwU1LWB5/lSVgGV5BMdOp2YOhESbnOGD678ijbRoShpnjY1qe0vaI/9P6ec1R1wpVs32jdwZzJ7TepHPosYHKvHsTkWUryLmX/L36WMlq2rBrc2nAgI1rPEMlLiYTwmx+KCbiyctxb3LYjD8r2amH6w29DFfcbMmo=;
Date Fri, 19 Apr 2013 17:59:26 -0000
From "b_erickson1" <brian@dashley.net>
To python-list@python.org
Subject unzipping a zipx file
User-Agent eGroups-EW/0.82
MIME-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding quoted-printable
X-Mailer Yahoo Groups Message Poster
X-Yahoo-Post-IP 68.233.149.10
X-Yahoo-Newman-Property groups-compose
Sender notify@yahoogroups.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.834.1366394500.3114.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366394500 news.xs4all.nl 2196 [2001:888:2000:d::a6]:41672
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43923

Show key headers only | View raw


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,'r')
and I can look through all the file in the archive 
for filename in zFile.namelist():
but when I write the file out with this code:
            ozFile = open(filename,'w')
            ozFile.write(zFile.read(filename))
            ozFile.close()
that file still looks encrypted.  No errors are thrown.  The file is just a text file not a jpeg or anything else.  I can open the file with 7zip and extract the text file out just fine.  


What am I missing?

Thanks 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

unzipping a zipx file "b_erickson1" <brian@dashley.net> - 2013-04-19 17:59 +0000
  Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:33 +0000
    Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:56 +0000
  Re: unzipping a zipx file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-20 00:24 +0000
    Re: unzipping a zipx file Dave Angel <davea@davea.name> - 2013-04-19 21:50 -0400

csiph-web