Re: Unable to extract Python source code using Windows



Elric02@xxxxxxxxxx wrote:
I'm currently trying to get access to the Python source code, however
whenever I try to extract the files using the latest version of WinZip
(version 10) I get the following error "error reading header after
processing 0 entries"
I was under the impression that I could (from reading the various posts
on this group) that I could simply extract the tar ball, using WinZip.


Perhaps you pulled the file as a non-binary (and so got LFs turned to
CRLFs). You should be able to use a recent Python to read the archive
as well. First, I'd do:

import md5
BLOCK_SIZE = 4096 * 8 # or whatever
accumulator = md5.new()
source = open('whatever.tar.gz', 'rb')
try:
while True:
data = source.read(BLOCK_SIZE)
if data:
accumulator.update(data)
else:
break
finally:
source.close()
print 'md5 checksum =', accumulator.hexdigest()

Compare that result to the published checksum for the archive
to make sure you don't have a garbled archive.

--Scott David Daniels
scott.daniels@xxxxxxx
.



Relevant Pages

  • Unable to extract Python source code using Windows
    ... I'm currently trying to get access to the Python source code, ... whenever I try to extract the files using the latest version of WinZip ... I get the following error "error reading header after ...
    (comp.lang.python)
  • Re: Unable to extract Python source code using Windows
    ... I get the following error "error reading header after ... processing 0 entries" ... on this group) that I could simply extract the tar ball, ... I don't know if winzip handles tarballs... ...
    (comp.lang.python)
  • Re: Winzip or something else?
    ... It does give you a warning message when a certain number of files ... You don't have to 'uninstall' Winzip to get the functionality of XP's ... Windows since Win'98 (extract only). ... unzips files. ...
    (microsoft.public.windowsxp.general)
  • Re: Help with opening and saving P.P. presentations
    ... Exit WinZip when the extract is complete. ... > My professors have sent class notes by way of Power Point. ... > view it, probably modify it a bit, and then print it. ...
    (microsoft.public.powerpoint)
  • Re: Winzip or something else?
    ... I uninstalled WinZip because all I was getting when I tried to extract files ... You don't have to 'uninstall' Winzip to get the functionality of XP's ... unzips files. ...
    (microsoft.public.windowsxp.general)