🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #1278

Bug#1083806: trac: Trac is still trying to import pkg_resources

#1278
From: 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
Technical Details
Message-ID: <NQGgF-707J-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NFcYG-DuS-19@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: PulkoMandy <pulkomandy@pulkomandy.tk>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1083806: trac: Trac is still trying to import pkg_resources
Date: Wed, 21 Oct 2026 17:20:01 +0200
Message-ID: <NQGgF-707J-7@gated-at.bofh.it>
References: <NFcYG-DuS-19@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <1083806@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Wed Oct 21 15:13:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: PulkoMandy <pulkomandy@pulkomandy.tk>, 1083806@bugs.debian.org
Original-Sender: Adrien Destugues <pulkomandy@gmail.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+python@tracker.debian.org
X-Debian-Pr-Message: followup 1083806
X-Debian-Pr-Package: src:trac
X-Debian-Pr-Keywords: ftbfs sid forky
X-Debian-Pr-Source: trac
X-Gm-Message-State: AFq9FYK2m1ZM7geQCPe824ilXTOCg6sBS7jTHk3Uj4J+d7nbxLqAKwhd
	H5DtdUp7s60M3Woc86sFwBO6iFNpAydNrkXmnMF/guseKKpXviA8FwajB3xAuQ==
X-Gm-Gg: AYBFou0zD9KnQg6XHyAXuSkLymLVfezyn3tc8G0eUsaUwJFpkgRcI97zytAbcq4l/Bt
	dsLV7DO8Hw55Tn1Ul8STcYz8g+mnINAJ/Qpju7dv/4a/IOzYwF8KyZ5rinqSws+rom2TlByKrCg
	8QcuVmJqXVEHZ8uBPYOl6GookHy8M74DZkOf+LCrYYZQPplMKh+NqnOjHla2w1h1rY9yEfpFZDG
	b0dAy42KhtetkIxlxqjlgxuQtNZORhDwwvQ3qvwMn204sG202M7AUdU+yTE9RTQu/zSzCJtTwK0
	re4YKm02bKONwsbkWTH9XrPK2QmjhYXk7d05pvy1YZm+hfxJEd/fCazOugxz2vbrQCT1w4jbMjA
	qwU+SMOnYswrNxAlhyhQLBXdH0rVeXTFL7WfPCFDLRtBrKM2IGJX8yGQ9OtHNt15dbsbuVtDoI0
	ZwRHMuUcL1gsnBE+q2Bf4+5aQOncmEOZG0LD9GKZKNZrugD8jUF5igp0KlMTWcsqoVV9Id+mgI7
	IlRPyt4ZsJvxKKLKevfCDku7fYGi/U10qbgfpGgLq/Zdx4TKkdDdJuyCfLk41LYnmrx0mr8UN5I
	g49QqmK1XscwPXFgPVIw2i8V7/uGmlpCp4g1nuwAiUQBn9J5VDgoh+KQD2JSVw==
X-Received: by 2002:a05:6000:1184:b0:488:8384:c382 with SMTP id ffacd0b85a97d-48e264de064mr3864641f8f.49.1792595431128;
        Wed, 21 Oct 2026 08:10:31 -0700 (PDT)
Sender: robomod@news.nic.it
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/835420
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 79
Organization: linux.* mail to news gateway
X-Original-Date: Wed, 21 Oct 2026 17:10:29 +0200
X-Original-Message-ID: <179259542918.1873899.5868231944576959648.reportbug@Akina.pulkomandy.tk>
X-Original-References: <E1swew6-00DhgC-35@paradis.debian.org>
X-Original-Sender: Adrien Destugues <pulkomandy@gmail.com>