[This bug is targeted to the upcoming trixie release] The package build-depends or depends on python3-pkg-resources, which is deprecated upstream. Details can be found at https://setuptools.pypa.io/en/latest/pkg_resources.html Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions. Python 3.12 in unstable provides both importlib_resources and importlib_metadata, so no additional dependencies on those packages are needed.
The trac package still uses the pkg_resources module. Raising the severity of this issue. At the end of the year 2025, raising the severity again to serious. If the package is a namespace package, then please lower the severity again to normal.
We believe that the bug you reported is fixed in the latest version of trac, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1083806@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Alexandre Detiste <tchet@debian.org> (supplier of updated trac package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Sun, 20 Sep 2026 00:57:29 +0200 Source: trac Architecture: source Version: 1.6-5 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Alexandre Detiste <tchet@debian.org> Closes: 1083806 Changes: trac (1.6-5) unstable; urgency=medium . * Team upload. * Vendor pkg_resources.py (Closes: #1083806) * Add debian/salsa-ci.yml * Rewrite d/watch in v5 format Checksums-Sha1: 76d34dd2ea7364c65d0a99f92a8029bd8f9b376e 2203 trac_1.6-5.dsc 80c1cf3268e4561fdb809f0e7c3cb757dd5ea85b 49948 trac_1.6-5.debian.tar.xz 6dc127f799e89f29278e96d2487c4c3cc035516e 5939 trac_1.6-5_source.buildinfo Checksums-Sha256: 937fb85cdd31063e6246a51e69da87cdc2c9690fd5ccaba19b97e4798b6f59d7 2203 trac_1.6-5.dsc 5aa53c8b4e58cbd7c09546c2c6a599c4cb57cd524c738e0f125f25ec9348b4bd 49948 trac_1.6-5.debian.tar.xz 73932328e1918eef904a52a4cb5dbeb0c4cb1858262b3855c57402849b02b133 5939 trac_1.6-5_source.buildinfo Files: e06e7eb21fdc35e869803d5e7fbfd890 2203 web optional trac_1.6-5.dsc 726f5ca0bfeae3e64078fdbc9522223b 49948 web optional trac_1.6-5.debian.tar.xz 1702c2597dedf39c85350b2f57336e55 5939 web optional trac_1.6-5_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmqvE8YRHHRjaGV0QGRl Ymlhbi5vcmcACgkQMfMURUShdBqZbhAAmcIe8l2iqxyf42Y5DlD1SF0PE0Ps1v6K J13ifU22F3O5Ibyv4qhwX8SgT60BDijKbWTl9abcjjhnnvV4VD9q3I+PrJY0TM8h CzrM5wyAJ+YRCA0FqvRLLXHHuezXgPN5gu9fAwTJqaZyJiiDJPB1casp+4oAMtiE XEobMMhsLrULBBVNrTFACS8S9hdZRGEVlGYZDwSaq2O7MQZrY/WYpchiCXqAWWT/ MvCCQGUjhpvdpvLaPZHazL9G6erZgolv6xAMY5dhrLn9oSgyTdO+F+fn40w/RAFl qNRTUbpRPZ5/HpnZgCFZhjs27u5UerRhgqjyjQGsSeojCWAV3dC64yAnGQg737v5 I1vA/dvBBaYQFBHbZf/S7rF8BjNdDiZOsp4o9bmBmshd1MkoE6yF6pRcUuwgYRSj NXotnazo6UEepRVMD+a5MwSebYGBAkgJGroHI8obl9UZmWAwK16gRYkvOfWRyTRU NbsRJjSqnlMn1Lg5DoYRbcm/AYLYF9qvM32G0qDrbabcqjFFCMH/s8E5BPdgoaOI uaY7LSec4v5BNjVnZz20JtoETWVG+gZog+Uy4C3xoZZuIasdQsogXCAztPGDy6IS Xyo6ORddapPj7EHqwjQdvQjqUjlCu7vJwKi1Z2UzAdpB0eH6w375m4Hjag0KjoJY 0KsZ7nFMB/c= =OruV -----END PGP SIGNATURE-----
Dear Maintainer,
I use Trac as a fastcgi service with lighttpd and I still run into an
import of pkg_resources when starting it. Log extract from my webserver
logs:
ModuleNotFoundError: No module named 'pkg_resources'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/trac/web/fcgi_frontend.py", line 23, in <module>
from trac.web.main import dispatch_request
File "/usr/lib/python3/dist-packages/trac/web/main.py", line 39, in <module>
from trac.env import open_environment
File "/usr/lib/python3/dist-packages/trac/env.py", line 43, in <module>
from trac.loader import load_components
File "/usr/lib/python3/dist-packages/trac/loader.py", line 21, in <module>
from pkg_resources import working_set, DistributionNotFound, \
VersionConflict, UnknownExtra
This can be fixed by changing the line in loader.py, and using
"from trac.pkg_resources ..." instead of "from pkg_resources ..."