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

Open
DeadNews opened this issue Mar 17, 2024 · 0 comments
Open

No module named pkg_resources #122

DeadNews opened this issue Mar 17, 2024 · 0 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant