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.

Author pconnell
Recipients Arfrever, barry, eric.smith, eric.snow, gregory.p.smith, isoschiz, jerub, jpaugh, ncoghlan, pconnell, pje, ronaldoussoren, serhiy.storchaka, superluser
Date 2020-08-13.13:47:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597326423.81.0.915819380157.issue14905@roundup.psfhosted.org>
In-reply-to
Content
One version of the bug described here (and fixed in the old implementation under issue17633) exists in the Python implementation of zipimport:

$ unzip -l namespace1.zip
Archive:  namespace1.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  08-13-2020 06:30   one/
        0  08-13-2020 06:30   one/two/
        0  08-13-2020 06:30   one/two/three.py
---------                     -------
        0                     3 files
$ unzip -l namespace2.zip
Archive:  namespace2.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  08-13-2020 06:37   alpha/beta/gamma.py
---------                     -------
        0                     1 file
$ PYTHONPATH=namespace1.zip:namespace2.zip ./python
Python 3.10.0a0 (heads/master:c51db0ea40, Aug 13 2020, 06:41:20)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import one
>>> import alpha
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'alpha'
>>>

In short, imports where there's no separate entry for directories in the zip file don't work.

Any opinions on whether this *is* the problem this issue is trying to track?
History
Date User Action Args
2020-08-13 13:47:03pconnellsetrecipients: + pconnell, barry, gregory.p.smith, pje, ronaldoussoren, ncoghlan, jerub, eric.smith, Arfrever, eric.snow, serhiy.storchaka, jpaugh, isoschiz, superluser
2020-08-13 13:47:03pconnellsetmessageid: <1597326423.81.0.915819380157.issue14905@roundup.psfhosted.org>
2020-08-13 13:47:03pconnelllinkissue14905 messages
2020-08-13 13:47:03pconnellcreate