Open isuftin opened 2 years ago
I just ran into this issue as well. Based on your pip packages, it looks like you're specifically installing Ansible 2.10 as well as ansible-lint. Ansible-lint just released v6.0.0
which introduced a new dependency on ansible-core 2.12+
. You cannot have a difference in version between ansible-core
and ansible-base
. This is what's causing the issue.
So to fix your issue you'll either need to upgrade to Ansible 2.12+ or lock ansible-lint to v5.4.x
.
Hope that helps. Good luck.
What fixed it for me, using venv
, was reinstalling Ansible after I have installed it via the requirements. I don't know why, but this seems to fix it.
pip3 install -r requirements.txt
# ansible-galaxy fails
pip3 install --force 'ansible==5.2.0'
# ansible-galaxy succeeds
Bug Report
SUMMARY
When running the ansible-galaxy command, I get the following:
This is happening against installation of Ansible 2 and 3.
4 and 5 seem to work ok.
Alpine Linux Docker image:
python --version Python 3.9.11
STEPS TO REPRODUCE
requirements.txt:
The above is created from pip-compile against:
Dockerfile:
EXPECTED RESULTS
No errors
ACTUAL RESULTS