CumulusCI
CumulusCI copied to clipboard
pkg_resources deprecation warning when running CCI commands
Describe the bug
I just freshly reinstalled my laptop and whenever I run a CCI command (Powershell through VSCodium), I get this warning:
C:\Users\USERNAME\pipx\venvs\cumulusci\Lib\site-packages\cumulusci\__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__("pkg_resources").declare_namespace("cumulusci")
I have already tried uninstalling and reinstalling setuptools, but everything seems as up to date as it gets:
I have looked around and found some reference to this error with pip itself, but that was supposedly fixed a good while ago:
Upgrade to setuptools 67.6.1 causes DeprecationWarning about pkg_resources · Issue #11975 · pypa/pip
There's also this very recent similar issue with azure-cli: UserWarning: pkg_resources is deprecated as an API · Issue #31591 · Azure/azure-cli
Reproduction steps
- Install Python (3.13.5) through Winget
- Verify environment variables and that pip is working
- Install pipx
- Install cci through pipx
- Run any cci command
Your CumulusCI and Python versions
- Python (installed through winget): 3.13.5
- pip: 25.1.1
- setuptools: 80.9.0
- pipx: 1.7.1
- CCI: 4.4.0
Operating System
Windows 10 Business, version 10.0.19045 Build 19045
Windows environment
PowerShell
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response