This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: zipfile broken with --without-threads
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.6, Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: Arfrever, alanmcintyre, python-dev, serhiy.storchaka, twouters
Priority: normal Keywords: 3.5regression

Created on 2015-10-10 15:45 by Arfrever, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg252720 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2015-10-10 15:45
zipfile module unconditionally requires threading module since revision 4973ccd46e32 (in Python >=3.5), which causes errors in over 50 Lib/test/test_*.py files.

[  1/399] test_cmd_line
test test_cmd_line crashed -- Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/libregrtest/", line 149, in runtest_inner
    the_module = importlib.import_module(abstest)
  File "/tmp/cpython/Lib/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 654, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/tmp/cpython/Lib/test/", line 11, in <module>
    from import script_helper
  File "/tmp/cpython/Lib/test/support/", line 14, in <module>
    import zipfile
  File "/tmp/cpython/Lib/", line 16, in <module>
    import threading
  File "/tmp/cpython/Lib/", line 4, in <module>
    import _thread
ImportError: No module named '_thread'
msg252727 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-10-10 16:45
New changeset 15740b3ad148 by Serhiy Storchaka in branch '3.5':
Issue #25364: zipfile now works in threads disabled builds.

New changeset 44b37c3ee76c by Serhiy Storchaka in branch 'default':
Issue #25364: zipfile now works in threads disabled builds.
msg252728 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-10-10 16:46
Thank you for your report Arfrever.
Date User Action Args
2022-04-11 14:58:22adminsetgithub: 69551
2015-10-10 16:46:23serhiy.storchakasetstatus: open -> closed
type: behavior
messages: + msg252728

resolution: fixed
stage: resolved
2015-10-10 16:45:04python-devsetnosy: + python-dev
messages: + msg252727
2015-10-10 16:12:55serhiy.storchakasetassignee: serhiy.storchaka
2015-10-10 15:45:02Arfrevercreate