【发布时间】:2023-02-06 20:13:31
【问题描述】:
我有以下总是失败的安装脚本
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install virtualenv
pipx install awscli
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
ansible-galaxy install -r ansible/ansible_requirements.yml
if [ ! -d "${HOME}/.aws" ]
then
echo "${HOME}/.aws does not exist"
echo "you need to make sure you awscli is correctly configured... invoking configure"
aws configure
fi
这是以下错误
ERROR! Unexpected Exception, this is probably a bug: cannot import name '_ADDITIONAL_CHECKS' from 'ansible.module_utils.common.parameters' (/home/user100/sagainfra/infrastructure/venv/lib/python3.10/site-packages/ansible/module_utils/common/parameters.py)
我的ansible_requirements.yml
collections:
- name: amazon.aws
- name: community.general
- name: kubernetes.core
这是requirements.txt。我已经尝试最小化此列表,但我仍然面临同样的问题
ansible
ansible-base
ansible-lint
awscli
boto3
botocore
bracex
cffi
click
colorama
commonmark
cryptography
enrich
Jinja2
jmespath
loguru
MarkupSafe
netaddr
packaging
paramiko
prettytable
pyasn1
pycparser
Pygments
pyparsing
python-dateutil
PyYAML
rich
ruamel.yaml
ruamel.yaml.clib
s3transfer
six
tenacity
urllib3
wcmatch
yaspin
pre-commit
怎么修?
【问题讨论】:
-
requirements.txt中安装了哪些库?
标签: ansible