BPO | [45576](https://bugs.python.org/issue45576) --- | :--- Nosy | @luisffranca *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['type-bug', 'library', '3.9'] title = 'Cannot import modules from Zip64 files' updated_at = user = 'https://github.com/luisffranca' ``` bugs.python.org fields: ```python activity = actor = 'lfamorim' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'lfamorim' dependencies = [] files = [] hgrepos = [] issue_num = 45576 keywords = [] message_count = 1.0 messages = ['404792'] nosy_count = 1.0 nosy_names = ['lfamorim'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue45576' versions = ['Python 3.9'] ``` ### Linked PRs * gh-94146
Activity
luisffranca commentedon Oct 22, 2021
I've tried to import a module from a fat jar file and got a ModuleNotFoundError: No module named ... error.
I checked that the jar file had more than 65k files and was created using Zip64. When I unzip the file, Python is capable of importing the modules.
I was able to reproduce the error on a simple project, such as:
simplePackage/
__init__.py
a/
__init__.py
moduleA.py
where
I ran the following tests:
On linux: zip -fzr simple64Package.zip .
Is this an expected behavior? Am I missing something?
Thanks!
Support zip64 in zipimport
gh-89739: gh-77140: Support zip64 in zipimport (GH-94146)
Squashed commit of the following:
Squashed commit of the following:
pythongh-89739: pythongh-77140: Support zip64 in zipimport (pythonGH-âĶ