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

pulp-glue version '0.27.0' is not in '>=0.20.0,<0.27' #170

Open
UnixxSH opened this issue Jul 25, 2024 · 3 comments
Open

pulp-glue version '0.27.0' is not in '>=0.20.0,<0.27' #170

UnixxSH opened this issue Jul 25, 2024 · 3 comments

Comments

@UnixxSH
Copy link

UnixxSH commented Jul 25, 2024

Creating a container repository returns the following error:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: Installed 'pulp-glue' version '0.27.0' is not in '>=0.20.0,<0.27'. fatal: [repo]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (pulp-glue) on repo's Python /usr/bin/python3.12. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

Versions:
pulp.squeezerr 0.0.16
ansible core 2.17.2
python 3.12.4

@mdellweg
Copy link
Member

Yes, dependency handling on python packages is poor in ansible. But the error message actually tells you what to do: Install pulp-glue in a version >=0.20.0,<0.27 into the python environment ansible executes your plugins in. Probably the latest available 0.26.z is the best to use.

@UnixxSH
Copy link
Author

UnixxSH commented Jul 26, 2024

Yes, dependency handling on python packages is poor in ansible. But the error message actually tells you what to do: Install pulp-glue in a version >=0.20.0,<0.27 into the python environment ansible executes your plugins in. Probably the latest available 0.26.z is the best to use.

pulp-glue 0.27 is a dependency of pulp-cli 0.27. Should I also downgrade pulp-cli ? Or just ignore the dependency warning ?

@mdellweg
Copy link
Member

If you can, I would suggest using different virtual environments. If you cannot, then yes, the version of pulp-cli and pulp-glue are locked together (only glue installs without cli if needed).

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

2 participants