[Trac] Deprecated dependency in sqlite_backend

Jean Vittor <[email protected]> Sun, 7 Jun 2026 21:38:49 -0700 (PDT)
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
------=_Part_486842_1388354521.1780893529281
Content-Type: multipart/alternative; 
	boundary="----=_Part_486843_1912395788.1780893529281"

------=_Part_486843_1912395788.1780893529281
Content-Type: text/plain; charset="UTF-8"

Hi,
I just upgraded to Fedora 44, and my Trac server no longer starts, with the 
following message:

/usr/lib/python3.14/site-packages/trac/__init__.py:14: UserWarning: 
pkg_resources is deprecated as an API. See https
://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources 
package is slated for removal as early as 2025
-11-30. Refrain from using this package or pin to Setuptools<81. 
 from pkg_resources import DistributionNotFound, get_distribution 
Traceback (most recent call last): 
 File "/usr/bin/tracd", line 3, in <module> 
   from trac.web.standalone import main 
 File "/usr/lib/python3.14/site-packages/trac/web/standalone.py", line 36, 
in <module> 
   from trac.web.main import dispatch_request 
 File "/usr/lib/python3.14/site-packages/trac/web/main.py", line 39, in 
<module> 
   from trac.env import open_environment 
 File "/usr/lib/python3.14/site-packages/trac/env.py", line 42, in <module> 
   from trac.db.convert import copy_tables 
 File "/usr/lib/python3.14/site-packages/trac/db/convert.py", line 18, in 
<module> 
   from trac.db import sqlite_backend 
 File "/usr/lib/python3.14/site-packages/trac/db/sqlite_backend.py", line 43, 
in <module> 
   pysqlite_version = sqlite.version_info 
                      ^^^^^^^^^^^^^^^^^^^ 
AttributeError: module 'sqlite3' has no attribute 'version_info'


Do I need any special upgrade?

Thanks,
Jean

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/a226ce56-0cd3-4954-bc5e-ad2020509559n%40googlegroups.com.

------=_Part_486843_1912395788.1780893529281
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,<div>I just upgraded to Fedora 44, and my Trac server no longer starts, =
with the following message:</div><div><br /></div><div><span style=3D"font-=
family: monospace;"><span style=3D"color: rgb(0, 0, 0);">/usr/lib/python3.1=
4/site-packages/trac/__init__.py:14: UserWarning: pkg_resources is deprecat=
ed as an API. See https</span><br /><span style=3D"color: rgb(0, 0, 0);">:/=
/setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package=
 is slated for removal as early as 2025</span><br /><span style=3D"color: r=
gb(0, 0, 0);">-11-30. Refrain from using this package or pin to Setuptools&=
lt;81.</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0from pkg_resources=
 import DistributionNotFound, get_distribution</span><span style=3D"color: =
rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);">Traceback (most recent ca=
ll last):</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/bin/tracd"</span><span style=3D"c=
olor: rgb(0, 0, 0);">, line </span><span style=3D"color: rgb(178, 24, 178);=
">3</span><span style=3D"color: rgb(0, 0, 0);">, in </span><span style=3D"c=
olor: rgb(178, 24, 178);">&lt;module&gt;</span><span style=3D"color: rgb(0,=
 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0from t=
rac.web.standalone import main</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/lib/python3.14/site-packages/trac=
/web/standalone.py"</span><span style=3D"color: rgb(0, 0, 0);">, line </spa=
n><span style=3D"color: rgb(178, 24, 178);">36</span><span style=3D"color: =
rgb(0, 0, 0);">, in </span><span style=3D"color: rgb(178, 24, 178);">&lt;mo=
dule&gt;</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0from t=
rac.web.main import dispatch_request</span><span style=3D"color: rgb(0, 0, =
0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/lib/python3.14/site-packages/trac=
/web/main.py"</span><span style=3D"color: rgb(0, 0, 0);">, line </span><spa=
n style=3D"color: rgb(178, 24, 178);">39</span><span style=3D"color: rgb(0,=
 0, 0);">, in </span><span style=3D"color: rgb(178, 24, 178);">&lt;module&g=
t;</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0from t=
rac.env import open_environment</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/lib/python3.14/site-packages/trac=
/env.py"</span><span style=3D"color: rgb(0, 0, 0);">, line </span><span sty=
le=3D"color: rgb(178, 24, 178);">42</span><span style=3D"color: rgb(0, 0, 0=
);">, in </span><span style=3D"color: rgb(178, 24, 178);">&lt;module&gt;</s=
pan><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0from t=
rac.db.convert import copy_tables</span><span style=3D"color: rgb(0, 0, 0);=
">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/lib/python3.14/site-packages/trac=
/db/convert.py"</span><span style=3D"color: rgb(0, 0, 0);">, line </span><s=
pan style=3D"color: rgb(178, 24, 178);">18</span><span style=3D"color: rgb(=
0, 0, 0);">, in </span><span style=3D"color: rgb(178, 24, 178);">&lt;module=
&gt;</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0from t=
rac.db import sqlite_backend</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0File </span><span =
style=3D"color: rgb(178, 24, 178);">"/usr/lib/python3.14/site-packages/trac=
/db/sqlite_backend.py"</span><span style=3D"color: rgb(0, 0, 0);">, line </=
span><span style=3D"color: rgb(178, 24, 178);">43</span><span style=3D"colo=
r: rgb(0, 0, 0);">, in </span><span style=3D"color: rgb(178, 24, 178);">&lt=
;module&gt;</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0pysqli=
te_version =3D </span><span style=3D"font-weight: bold; color: rgb(255, 84,=
 84);">sqlite.version_info</span><span style=3D"color: rgb(0, 0, 0);">
</span><br /><span style=3D"color: rgb(0, 0, 0);"> =C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</span><span style=3D"font-weight: bold; c=
olor: rgb(255, 84, 84);">^^^^^^^^^^^^^^^^^^^</span><span style=3D"color: rg=
b(0, 0, 0);">
</span><br /><span style=3D"font-weight: bold; color: rgb(255, 84, 255);">A=
ttributeError</span><span style=3D"color: rgb(0, 0, 0);">: </span><span sty=
le=3D"color: rgb(178, 24, 178);">module 'sqlite3' has no attribute 'version=
_info'</span><br /><span style=3D"color: rgb(0, 0, 0);">
</span><br /></span></div><div><br /></div><div>Do I need any special upgra=
de?</div><div><br /></div><div>Thanks,</div><div>Jean</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Trac Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use=
rs+unsubscribe-/[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
trac-users/a226ce56-0cd3-4954-bc5e-ad2020509559n%40googlegroups.com?utm_med=
ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use=
rs/a226ce56-0cd3-4954-bc5e-ad2020509559n%40googlegroups.com</a>.<br />

------=_Part_486843_1912395788.1780893529281--

------=_Part_486842_1388354521.1780893529281--