🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
1 messages
1 total messages Started by PulkoMandy Wed, 21 Oct 2026 15:20
Bug#1083806: trac: Trac is still trying to import pkg_resources
#1278
Author: PulkoMandy
Date: Wed, 21 Oct 2026 15:20
79 lines
5755 bytes
Package: trac
Version: 1.6-5
Followup-For: Bug #1083806

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 ..."


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.7+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages trac depends on:
ii  libjs-excanvas                   0.r4~git20200903.44ac99f-1
ii  libjs-jquery                     3.7.1+dfsg+~3.5.33-1
ii  libjs-jquery-timepicker          1.6.3-6
ii  libjs-jquery-ui                  1.13.2+dfsg-1
ii  python3 [python3-supported-max]  3.14.7-3
ii  python3-jinja2                   3.1.6-1
ii  python3-multipart                1.3.0-3
ii  python3-setuptools               84.2.0-1

Versions of packages trac recommends:
ii  lighttpd [httpd]    1.4.85-1
ii  python3-babel       2.17.0-1
ii  python3-docutils    0.22.3+dfsg-1
ii  python3-pygments    2.18.0+dfsg-2
ii  python3-pytz        2025.2-4
pn  python3-subversion  <none>

Versions of packages trac suggests:
pn  libapache2-mod-wsgi    <none>
pn  python3-psycopg2       <none>
pn  python3-textile        <none>
ii  trac-accountmanager    0.6.1+svn18669-1
pn  trac-authopenid        <none>
pn  trac-bitten            <none>
pn  trac-bzr               <none>
pn  trac-customfieldadmin  <none>
pn  trac-email2trac        <none>
pn  trac-graphviz          <none>
pn  trac-ja-resource       <none>
pn  trac-mastertickets     <none>
pn  trac-mercurial         <none>
pn  trac-spamfilter        <none>
pn  trac-wikiprint         <none>
pn  trac-wikirename        <none>
pn  trac-wysiwyg           <none>
pn  trac-xmlrpc            <none>

-- no debconf information
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads