ImportError: The 'jaraco' package is required when using setuptools 60.7
See original GitHub issueRunning the binary executable results in the import error.
It works using setuptools
60.6.0. I get the error when using setuptools
60.7.0.
Offending line:
from pkg_resources import parse_version
Relevant part of the backtrace:
File "/app/my-app/pkg_resources/__init__.py", line 74, in <module>
File "/app/my-app/pkg_resources/extern/__init__.py", line 52, in create_module
File "/app/my-app/pkg_resources/extern/__init__.py", line 44, in load_module
ImportError: The 'jaraco' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
Related: https://github.com/pyinstaller/pyinstaller/issues/6564
Environment
- Nuitka
--version
0.6.19.3 Commercial: None Python: 3.9.9 (main, Jan 28 2022, 01:01:20) Flavor: Unknown Executable: /opt/venv/bin/python OS: Linux Arch: x86_64
- Debian 10 buster
Built Python from source. Installed Nuitka with pip. Used virtualenv.
Nuitka Options: --standalone --python-flag=no_site --enable-plugin=anti-bloat --noinclude-pytest-mode=nofollow --lto=yes
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
History - setuptools 65.6.3.post20221216 documentation
This interface is reserved for the use of setuptools Extensions and third part packages are explicitly disallowed to calling it. However, any implementation ......
Read more >setuptools 3.6 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >PyInstaller Documentation - Read the Docs
PyInstaller is available as a regular Python package. ... Add support for setuptools 60.7.1 and its vendoring of jaraco.text in pkg_resources. Exit with...
Read more >Python 3: ImportError "No Module named Setuptools"
Your setup.py file needs setuptools . Some Python packages used to use distutils for distribution, but most now use setuptools , a more...
Read more >Pip without setuptools, could the experience be improved?
In Fedora, our pip package Recommends setuptools. ... Python-Dev - python.org, and after the recent discussion with @jaraco in Declare ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is part of 0.6.19.6 hotfix release.
I am preparing a hotfix for later today, it’s solved on factory: https://nuitka.net/doc/factory.html
The crazy guys added code like this:
No program should ever have to run without that kind of 1335 bytes of content, right? I am really shocked of the quality of this update of
pkg_resources
. Anyway, Nuitka supports it, and removes the need for that file at the same time.