-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi, thanks for maintaining this project --- I encountered an issue with Python 3.12.
Summary
git-ai-commit fails to run on Python 3.12 with ModuleNotFoundError: No module named 'pkg_resources'.
Steps to Reproduce
- Install Python 3.12 (clean venv)
pip install git-ai-commit- Run
git-ai-commit --help
Actual Result
...
ModuleNotFoundError: No module named 'pkg_resources'
Root Cause
ai_commit_msg/utils/utils.py imports pkg_resources, which is part of setuptools,
but setuptools is not listed in install_requires in setup.cfg.
Expected Behavior
Installation should include all required dependencies.
Suggested Fix
Short-term (to fix runtime error):
Add setuptools>=65.0 to install_requires in setup.cfg, e.g.:
[options]
install_requires =
setuptools>=65.0
click>=8.0
...Long-term (to address deprecation):
Replace pkg_resources with the standard library alternative importlib.metadata,
since pkg_resources is deprecated and scheduled for removal after 2025-11-30.
cf.
https://setuptools.pypa.io/en/latest/pkg_resources.html
Environment
python -V
Python 3.12.10
pip show git-ai-commit
Name: git_ai_commit
Version: 1.0.13
Ref
Line 18 in 8750a21
| install_requires = |
https://github.com/search?q=repo%3Athe-cafe%2Fgit-ai-commit%20pkg_resources%20&type=code