Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named pkg_resources #122

Closed
DeadNews opened this issue Mar 17, 2024 · 1 comment
Closed

No module named pkg_resources #122

DeadNews opened this issue Mar 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@DeadNews
Copy link

Description

When running poetry run ade install -r requirements.yml, the command fails with a ModuleNotFoundError: No module named 'pkg_resources'.

$ poetry run ade install -r requirements.yml
Failed to discover requirements: Command 'ansible-builder introspect /home/runner/.cache/pypoetry/virtualenvs/deadnews-template-ansible-kPNM4ADQ-py3.12/lib/python3.12/site-packages --write-pip /home/runner/.cache/pypoetry/virtualenvs/deadnews-template-ansible-kPNM4ADQ-py3.12/.ansible-dev-environment/discovered_requirements.txt --write-bindep /home/runner/.cache/pypoetry/virtualenvs/deadnews-template-ansible-kPNM4ADQ-py3.12/.ansible-dev-environment/discovered_bindep.txt --sanitize' returned non-zero exit status 1. ModuleNotFoundError: No module named 'pkg_resources'

Possible solution

The pkg_resources module is part of setuptools.

According to the Poetry documentation:

If your project relies on setuptools, you should declare it as a dependency.

Context

GitHub workflow log.

$ ade --version
24.1.0
@ssbarnea ssbarnea added the bug Something isn't working label Dec 23, 2024
@ssbarnea
Copy link
Member

This is not a bug within ade tool. While we do try to import pkg_resources, we nicely ignore an import failure. Poetry use is also not supported, so please identify the tool that generates the exception and try to propose a fix for it.

@ssbarnea ssbarnea closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants