ansible/awx

awxkit - requires deprecated pkg_resources

已關閉

#16,378 建立於 2026年3月30日

 (2 則留言) (0 個反應) (0 位負責人)Python (3,333 個分叉)batch import
communitydependencieshelp wantedtype:bug

倉庫指標

星標
 (13,071 顆星)
PR 合併指標
 (平均合併 24天 6小時) (30 天內合併 30 個 PR)

描述

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

Trying to use awxkit with python 3.12. It installs but then fails on startup: Traceback (most recent call last): File "/home/gitlab-runner/.local/bin/awx", line 3, in <module> from awxkit.cli import run File "/home/gitlab-runner/.local/share/pipx/venvs/awxkit/lib/python3.12/site-packages/awxkit/cli/__init__.py", line 9, in <module> from .client import CLI File "/home/gitlab-runner/.local/share/pipx/venvs/awxkit/lib/python3.12/site-packages/awxkit/cli/client.py", line 5, in <module> import pkg_resources ModuleNotFoundError: No module named 'pkg_resources'

Looks like pkg_resources has been deprecated: https://setuptools.pypa.io/en/latest/deprecated/pkg_resources.html

Injecting a version of setuptools < v82.0.0 seems to work.

AWX version

24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

ubuntu24.04

Web browser

No response

Steps to reproduce

pip3 install awxkit awx

Expected results

awx is not crashing on start.

Actual results

awx cli is crashing. Traceback (most recent call last): File "/home/gitlab-runner/.local/bin/awx", line 3, in <module> from awxkit.cli import run File "/home/gitlab-runner/.local/share/pipx/venvs/awxkit/lib/python3.12/site-packages/awxkit/cli/__init__.py", line 9, in <module> from .client import CLI File "/home/gitlab-runner/.local/share/pipx/venvs/awxkit/lib/python3.12/site-packages/awxkit/cli/client.py", line 5, in <module> import pkg_resources ModuleNotFoundError: No module named 'pkg_resources'

Additional information

No response

貢獻者指南