Bugs item #1714773, was opened at 2007-05-08 17:23 Message generated for change (Comment added) made by runnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1714773&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: runnig (runnig) Assigned to: Nobody/Anonymous (nobody) Summary: python throws an error when unpacking bz2 file Initial Comment: C:\work\python>c:\work\python\25\py.exe Python 2.5 (r25:51908, Feb 13 2007, 14:33:20) [MSC v.1400 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. C:\work\python>ez_setup.py wxpython Searching for wxpython Reading http://cheeseshop.python.org/pypi/wxpython/ Couldn't find index page for 'wxpython' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://cheeseshop.python.org/pypi/ Reading http://cheeseshop.python.org/pypi/wxPython/2.6.3.2 Reading http://wxPython.org/ Reading http://wxPython.org/download.php Best match: wxPython src-2.8.3.0 Downloading http://prdownloads.sourceforge.net/wxpython/wxPython-src-2.8.3.0.tar.bz2 Processing wxPython-src-2.8.3.0.tar.bz2 I think, when unpacking bz2, an error occurs and windows shows an error about "python.exe has encountered a problem and needs to close" ---------------------------------------------------------------------- >Comment By: runnig (runnig) Date: 2007-05-16 13:54 Message: Logged In: YES user_id=1729909 Originator: YES i've downloaded file wxPython-src-2.8.4.0.tar.bz2 manually and wrote a test script: ---------- import bz2 arch = bz2.BZ2File( 'wxPython-src-2.8.4.0.tar.bz2','r' ) lines = arch.readlines() ---------- as i can understand, python crashes right after start of reading this bz2 file ---------------------------------------------------------------------- Comment By: Alan McIntyre (alanmcintyre) Date: 2007-05-16 11:34 Message: Logged In: YES user_id=1115903 Originator: NO Well, this problem doesn't seem to occur on my Windows XP Pro (SP2) machine for 2.5.1 (both the "official" build and one I built locally). It's going to be a week or two before I'll be able to get back to the one machine on which it crashes. If the original poster can provide any additional information (crash logs, etc) before then I'll try to have a look. ---------------------------------------------------------------------- Comment By: Alan McIntyre (alanmcintyre) Date: 2007-05-15 01:53 Message: Logged In: YES user_id=1115903 Originator: NO I downloaded the file from the URL given above, and when I tried to decompress it in a single shot (with bz2.decompress), python crashes. Reading the raw bz2 data from file into a string in memory works ok, but attempting to use bz2.decompress on that data causes the crash. I could only get this to happen under 2.5.1 on a Windows XP machine (media center edition); it seems to work ok on OSX (Python 2.5) and Linux (both 2.4.4 and the current trunk). I will be able to take a closer look at this tomorrow when I have access to a Windows machine with a compiler on it. ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2007-05-13 16:54 Message: Logged In: YES user_id=849994 Originator: NO Can you try to take the .tar.bz2 file and unpack it yourself using Python's bz2 module? We can then find out where exactly the segfault occurs. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1714773&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com