pulp / squeezer

Ansible modules to control a pulp3 server
GNU General Public License v3.0
24 stars 35 forks source link

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

Open UnixxSH opened 1 month ago

UnixxSH commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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).