473,657 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to extract Python source code using Windows

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.
If this is not the case does anybody know how I can actually get source
code on Windows platform. I don't have access to a UNIX box so that's
not an option for me
thanks in advance for any help you can provide
Jeff

May 16 '06 #1
10 3028
El*****@rogers. com wrote:
I'm currently trying to get access to the Python source code, however
whenever I try to extract the files
from what ?
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.
I don't know if winzip handles tarballs...
If this is not the case does anybody know how I can actually get source
code on Windows platform.


You can get Python sources from python.org

HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
May 16 '06 #2
El*****@rogers. com 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(BLO CK_SIZE)
if data:
accumulator.upd ate(data)
else:
break
finally:
source.close()
print 'md5 checksum =', accumulator.hex digest()

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

--Scott David Daniels
sc***********@a cm.org
May 16 '06 #3
>You can get Python sources from python.org

I'm unable to locate a source file brings that will work with WinZip.
Can anybody please point me to the exact URL that will get me to the
source code? but it it is tar ball format or a gzip format, than that
will work for me as WinZip is not open.

May 16 '06 #4
Scott ,
I tried downloading for different archives, (different versions of
Python) I can't believe they are all garbled. But they all don't work
with WinZip.

May 16 '06 #5
El*****@rogers. com wrote:
You can get Python sources from python.org


I'm unable to locate a source file brings that will work with WinZip.
Can anybody please point me to the exact URL that will get me to the
source code? but it it is tar ball format or a gzip format, than that
will work for me as WinZip is not open.

http://www.python.org/ftp/python/2.4...-2.4.3.tar.bz2

May 16 '06 #6
El*****@rogers. com wrote:
Scott ,
I tried downloading for different archives, (different versions of
Python) I can't believe they are all garbled. But they all don't work
with WinZip.


And what checksum did you get?
--Scott David Daniels
sc***********@a cm.org
May 16 '06 #7
El*****@rogers. com wrote:
Scott ,
I tried downloading for different archives, (different versions of
Python) I can't believe they are all garbled. But they all don't work
with WinZip.

OK, against my better judgment (you haven't shown your work so far):

I get an md5 for python-2.4.3.tar.bz2 of:
141c683447d5e76 be1d2bd4829574f 02

Next read about the tarfile module, where you may discover:

import tarfile
archive = tarfile.TarFile .open('python-2.4.3.tar.bz2', 'r:bz2')

might give you something interesting.
--
-Scott David Daniels
sc***********@a cm.org
May 16 '06 #8
> http://www.python.org/ftp/python/2.4...-2.4.3.tar.bz2

And the reason for posting that would be what? WinZip doesn't support
bzip2 compression.

http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz (a gzipped tar
file) is what the OP would be better pointed at.

FWIW, I have just downloaded the above tgz file and successfully
unpacked it with WinZip versions 9 and 10, and with 7-Zip.

FWIW2, 7-Zip is *free* and handles bz2 files.

I would suggest that the OP's copy of WinZip v10 is stuffed, or his
whole download mechanism is stuffed. If he were to investigate properly
(as suggested by ScottDD) instead of thrashing about, ....

May 16 '06 #9
Elric02 wrote:
"""
I tried downloading for different archives, (different versions of
Python) I can't believe they are all garbled. But they all don't work
with WinZip.
"""

I can't believe that they're all garbled either. The likelihood of that
is small. Further, the probablility that all-pervasive garbling of tgz
files would go unnoticed is about three-tenths of five-eighths of an
extremely small number.

Reminds me of the story of the proud mother watching her son's regiment
on parade: "Look, everybody, my Tommy's the only one marching in
step!".

Let's rewrite your last sentence as "My copy of WinZip v10 doesn't work
with any of them", and go with the most plausible explanation.

HTH,
John

May 16 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3442
by: Zhang Le | last post by:
Hello, I'm writing a little Tkinter application to retrieve news from various news websites such as http://news.bbc.co.uk/, and display them in a TK listbox. All I want are news title and url information. Since each news site has a different layout, I think I need some template-based techniques to build news extractors for each site, ignoring information such as table, image, advertise, flash that I'm not interested in. So far I have...
3
2655
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my application i keep getting this. Server Error in '/WebApplication1' Application....
1
3402
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my application i keep getting this. Server Error in '/WebApplication1' Application...
2
355
by: Elric02 | last post by:
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 however after processing 0 entries
32
2834
by: siggi | last post by:
@Ben Sizer Hi Ben, in January I received your message re Pygame and Python 2.5: As a Python (and programming ) newbie allow me a - certainly naive - question:
2
5446
by: Kevin Ar18 | last post by:
I posted this on the forum, but nobody seems to know the solution: http://python-forum.org/py/viewtopic.php?t=5230 I have a zip file that is several GB in size, and one of the files inside of it is several GB in size. When it comes time to read the 5+GB file from inside the zip file, it fails with the following error: File "...\zipfile.py", line 491, in read bytes = self.fp.read(zinfo.compress_size) OverflowError: long it too large to...
1
2716
by: Edwin.Madari | last post by:
from each line separate out url and request parts. split the request into key-value pairs, use urllib to unquote key-value pairs......as show below... import urllib line = "GET...
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.