首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >执行环境pip错误ResolutionTooDeep: 2000000

执行环境pip错误ResolutionTooDeep: 2000000
EN

Server Fault用户
提问于 2022-10-07 11:39:58
回答 1查看 315关注 0票数 0

我已经为我的awx构建了一段时间的执行环境,从来没有遇到过任何问题,但是现在我正在尝试重新创建我一个月前创建的那个EE,它已经不再工作了。过去,构建容器只需15分钟,但现在错误失败只需10小时:

代码语言:javascript
运行
复制
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 339, in run
    requirement_set = resolver.resolve(
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
    result = self._result = resolver.resolve(
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 392, in resolve
    raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
WARNING: You are using pip version 22.0.3; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
[3/3] STEP 1/13: FROM quay.io/ansible/ansible-runner:stable-2.11-devel
Error: error building at STEP "RUN assemble": error while running runtime: exit status 2

pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000

这是我的requirements.yml

代码语言:javascript
运行
复制
---
collections:
  - name: amazon.aws
    version: 3.3.0
  - name: ansible.netcommon
    version: 2.5.0
  - name: ansible.posix
    version: 1.3.0
  - name: ansible.windows
    version: 1.9.0
  - name: awx.awx
    version: 21.4.0
  - name: check_point.mgmt
    version: 2.3.0
  - name: community.docker
    version: 2.7.1
  - name: community.hashi_vault
    version: 3.2.0
  - name: community.aws
    version: 3.3.0
  - name: community.general
    version: 5.5.0
  - name: community.vmware
    version: 1.18.0
  - name: community.windows
    version: 1.10.0
  - name: community.zabbix
    version: 1.8.0
  - name: google.cloud
    version: 1.0.2
  - name: kubernetes.core
    version: 2.3.2
  - name: netbox.netbox
    version: 3.8.0
  - name: openstack.cloud
    version: 1.6.0
  - name: ovirt.ovirt
    version: 1.6.6
  - name: redhatinsights.insights
    version: 1.0.5
  - name: theforeman.foreman
    version: 3.1.0
  - name: paloaltonetworks.panos
    version: 2.9.0
  - name: cyberark.pas
    version: 1.0.13
  - name: f5networks.f5_bigip
    version: 1.8.1
  - name: fortinet.fortios
    version: 2.1.7
  - name: community.mysql
    version: 3.5.1
  - name: community.postgresql
    version: 2.2.0

这是我的requirements.txt

代码语言:javascript
运行
复制
urllib3
netaddr
rocketchat_API
cryptography==36.0.2
git+https://github.com/ansible/ansible-builder.git@1.1.0
psycopg2-binary
PyMySQL

我一直认为使用这些版本可以让我在任何时候重新构建容器,但事实并非如此。

你知道是什么打破了它吗?

EN

回答 1

Server Fault用户

发布于 2022-10-14 10:02:02

我和ansible也有同样的问题,并且发现密码学是导致这个问题的原因。

能够在从requirements.txt中删除密码之后构建容器。

从requirements.txt中删除ansible-builder的git声明也是值得的。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1112486

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档