ImportError: The 'jaraco' package is required when using setuptools 60.7

See original GitHub issue

Running 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:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
kayhayencommented, Feb 3, 2022

This is part of 0.6.19.6 hotfix release.

1reaction
kayhayencommented, Feb 3, 2022

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:

lorem_ipsum: str = files(name).joinpath(‘Lorem ipsum.txt’).read_text()

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found