reuse-tool
reuse-tool copied to clipboard
Problems with python 3.12 [SOLVED]
Since upgrading to Fedora 39 (and consequently Python 3.12) our pre-commit hook stopped working.
The problem was caused by Python 3.12 not installing setuptools in venv anymore.
This has been solved in reuse-tool already, but it obviously hasn't been backported to older versions. In our case, we had to update the pre-commit config to use a newer version (v2.1.0), fixing the issue.
I've opened this issue, because I imagine a lot of people who pinned the versions of the pre-commit hook to v1.x will have this problem in the coming months as python 3.12 is being rolled out .
Maybe it would make sense to add a disclaimer/alert to the main page?
For reference the error we got:
File "/home/cz/.cache/pre-commit/repowm4zhjuf/py_env-python3/bin/reuse", line 5, in <module>
from reuse._main import main
File "/home/cz/.cache/pre-commit/repowm4zhjuf/py_env-python3/lib/python3.12/site-packages/reuse/__init__.py", line 15, in <module>
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'