<#2247 The Pex CLI should warn when it creates a P...
# github-notifications
c
#2247 The Pex CLI should warn when it creates a PEX zip that requires zip64. Issue created by jsirois The python zipimporter used to execute a zipapp
__main__.py
in the zip cannot handle zips that require zip64 extensions (see: https://bugs.python.org/issue32959). As such, if the Pex CLI can detect when it creates such a zip, it should warn if the detection is approximate or probably error if it is definite; otherwise the error later at runtime is a mysterious:
Copy code
/path/to/python: can't find '__main__' module in '/path/of/PEX'
At some point this will be fixed (presumably) for some CPython versions, in which case the logic gets trickier. The absolute worst thing to do here would be to warn or error for a PEX that works with a version of Python where this is no longer a limitation! This does raise the question of whether or not this is an issue for PyPy - no clue. pantsbuild/pex