You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the zippapp for 1.7.0 using Python 3.10 I obtain a ModuleNotFoundError: No module named 'tomli'.
From this earlier issue which was addressed in this pull request, I understand that the tomli library must be included in the zipapp to support Python < 3.11. Further I understand that if the zipapp is built using Python 3.11 or later, then tomli will not be included.
The zipapp artifact uploaded by this CI job is not affected. Is it possible that the zippapp uploaded to the 1.7.0 release was built using Python 3.11 or later?
Is it possible to release a new zipapp that includes the tomli library please?
How to reproduce
Checking zipapp contents
The easiest way to check the contents is to download the zipapp and extract it:
Commands to reproduce trace back:
curl --silent --location --remote-name https://github.com/pypa/pipx/releases/download/1.7.0/pipx.pyz \
&& python3.10 pipx.pyz
Output:
Traceback (most recent call last):
File "/home/maxwell-k/Downloads/pipx.pyz/_bootstrap/__init__.py", line 76, in import_string
File "/home/maxwell-k/.shiv/pipx.pyz_470623b0abb5f46e0cef98e1443fd9cf54f230ecdd5399e59dfd8163372499e1/site-packages/pipx/main.py", line 22, in <module>
from pipx import commands, constants, paths
File "/home/maxwell-k/.shiv/pipx.pyz_470623b0abb5f46e0cef98e1443fd9cf54f230ecdd5399e59dfd8163372499e1/site-packages/pipx/commands/__init__.py", line 9, in <module>
from pipx.commands.run import run
File "/home/maxwell-k/.shiv/pipx.pyz_470623b0abb5f46e0cef98e1443fd9cf54f230ecdd5399e59dfd8163372499e1/site-packages/pipx/commands/run.py", line 30, in <module>
import tomli as tomllib
ModuleNotFoundError: No module named 'tomli'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/maxwell-k/Downloads/pipx.pyz/_bootstrap/__init__.py", line 84, in import_string
AttributeError: module 'pipx' has no attribute 'main'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/maxwell-k/Downloads/pipx.pyz/__main__.py", line 3, in <module>
File "/home/maxwell-k/Downloads/pipx.pyz/_bootstrap/__init__.py", line 253, in bootstrap
File "/home/maxwell-k/Downloads/pipx.pyz/_bootstrap/__init__.py", line 81, in import_string
File "/home/maxwell-k/Downloads/pipx.pyz/_bootstrap/__init__.py", line 87, in import_string
ImportError: module 'pipx' has no attribute 'main'
Expected behavior
I expect the zipapp to include tomli so that it is functional with Python 3.10.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I run the zippapp for 1.7.0 using Python 3.10 I obtain a
ModuleNotFoundError: No module named 'tomli'
.From this earlier issue which was addressed in this pull request, I understand that the tomli library must be included in the zipapp to support Python < 3.11. Further I understand that if the zipapp is built using Python 3.11 or later, then tomli will not be included.
The zipapp artifact uploaded by this CI job is not affected. Is it possible that the zippapp uploaded to the 1.7.0 release was built using Python 3.11 or later?
Is it possible to release a new zipapp that includes the tomli library please?
How to reproduce
Checking zipapp contents
The easiest way to check the contents is to download the zipapp and extract it:
Then note the absence of
site_packages/tomli
.For example compare to the previous release:
Reproducing the traceback
Expected behavior
I expect the zipapp to include tomli so that it is functional with Python 3.10.
The text was updated successfully, but these errors were encountered: