Issue 8442: Broken zipfile with python 3.2 on osx (original) (raw)

Created on 2010-04-18 15:15 by ronaldoussoren, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg103495 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-04-18 15:15
In the output of test_distutils with python 3.2 (current version checkout): ====================================================================== ERROR: test_prune_file_list (distutils.tests.test_sdist.SDistTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/ronald/Projects/python/python-3.x/Lib/distutils/tests/test_sdist.py", line 131, in test_prune_file_list zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip')) File "/Users/ronald/Projects/python/python-3.x/Lib/zipfile.py", line 684, in __init__ self._GetContents() File "/Users/ronald/Projects/python/python-3.x/Lib/zipfile.py", line 710, in _GetContents self._RealGetContents() File "/Users/ronald/Projects/python/python-3.x/Lib/zipfile.py", line 758, in _RealGetContents filename = filename.decode('cp437') LookupError: unknown encoding: cp437
msg104510 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2010-04-29 14:09
I cannot reproduce this behavior on my MacBook running OSX 10.6.2. $ ./python.exe Lib/test/test_distutils.py ... ---------------------------------------------------------------------- Ran 168 tests in 3.850s OK (skipped=4) Also, cp437 appears to be a valid encoding: Python 3.2a0 (py3k:80615M, Apr 29 2010, 10:00:45) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> b"".decode('cp437') '' >>> b"abcde".decode('cp437') 'abcde'
msg104512 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-04-29 14:14
There were some other build problems at the time, I haven't verified yet if the fixes for those problems also fixed this issue. I will do so over the weekend.
msg107875 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-06-15 15:42
This is no longer a problem, I cannot reproduce the issue with the current trunk.
History
Date User Action Args
2022-04-11 14:57:00 admin set nosy: + georg.brandlgithub: 52689
2010-06-15 15:42:17 ronaldoussoren set status: open -> closedresolution: not a bugmessages: +
2010-04-29 14:14:01 ronaldoussoren set messages: +
2010-04-29 14:09:37 Alexander.Belopolsky set nosy: + Alexander.Belopolskymessages: +
2010-04-18 15:22:16 loewis link issue8443 superseder
2010-04-18 15:15:36 ronaldoussoren create