Re: Unzipping a .zip properly, and from a remote URL

2009-02-04 Thread M.-A. Lemburg
On 2009-02-03 15:32, Tino Wildenhain wrote: > Christopher Culver wrote: >> Tino Wildenhain writes: >>> so instead you would use archive = zipfile.ZipFile(remotedata) >> >> That produces the following error if I try that in the Python >> interpreter (URL edited for privacy): >> > import zipfile

Re: Unzipping a .zip properly, and from a remote URL

2009-02-03 Thread Scott David Daniels
Christopher Culver wrote: Tino Wildenhain writes: so instead you would use archive = zipfile.ZipFile(remotedata) That produces the following error if I try that in the Python interpreter (URL edited for privacy): remotedata = urllib2.urlopen("http://...file.zip";) archive = zipfile.ZipFi

Re: Unzipping a .zip properly, and from a remote URL

2009-02-03 Thread Tino Wildenhain
Christopher Culver wrote: Tino Wildenhain writes: so instead you would use archive = zipfile.ZipFile(remotedata) That produces the following error if I try that in the Python interpreter (URL edited for privacy): import zipfile import urllib2 remotedata = urllib2.urlopen("http://...file.zip

Re: Unzipping a .zip properly, and from a remote URL

2009-02-03 Thread Christopher Culver
Tino Wildenhain writes: > so instead you would use archive = zipfile.ZipFile(remotedata) That produces the following error if I try that in the Python interpreter (URL edited for privacy): >>> import zipfile >>> import urllib2 >>> remotedata = urllib2.urlopen("http://...file.zip";) >>> archive =

Re: Unzipping a .zip properly, and from a remote URL

2009-02-03 Thread Tino Wildenhain
Hi, Christopher Culver wrote: Returning to Python after several years away, I'm working on a little script that will download a ZIP archive from a website and unzip it to a mounted filesystem. The code is below, and it works so far, but I'm unsure of a couple of things. The first is, is there a

Unzipping a .zip properly, and from a remote URL

2009-02-03 Thread Christopher Culver
Returning to Python after several years away, I'm working on a little script that will download a ZIP archive from a website and unzip it to a mounted filesystem. The code is below, and it works so far, but I'm unsure of a couple of things. The first is, is there a way to read the .zip into memory