Re: [Trac] Deprecated dependency in sqlite_backend

Jun Omae <[email protected]> Mon, 8 Jun 2026 13:48:49 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <CAEVLMaidsuwJhvubunt5MK3JL-ESphY5mGxQE-SxC7M+f5OaUA@mail.gmail.com>
--0000000000009b48df0653b6ba9f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Fixed in 1.6-stable. Try the stable instead of Trac 1.6.
See also
https://trac.edgewall.org/ticket/13607

Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)

On Mon, Jun 8, 2026 at 13:38 Jean Vittor <[email protected]> wrote:

> 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 =3D 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-ad20=
20509559n%40googlegroups.com
> <https://groups.google.com/d/msgid/trac-users/a226ce56-0cd3-4954-bc5e-ad2=
020509559n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>
> .
>

--=20
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 e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
CAEVLMaidsuwJhvubunt5MK3JL-ESphY5mGxQE-SxC7M%2Bf5OaUA%40mail.gmail.com.

--0000000000009b48df0653b6ba9f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Fixed in 1.6-stable. Try the stable instead of Trac 1.6.<=
/div><div dir=3D"auto"><span style=3D"font-family:-apple-system,sans-serif"=
>See also=C2=A0</span><br></div><div dir=3D"auto"><div style=3D"font-size:i=
nherit" dir=3D"auto"><a href=3D"https://trac.edgewall.org/ticket/13607">htt=
ps://trac.edgewall.org/ticket/13607</a></div></div><div><br clear=3D"all"><=
div><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sign=
ature">Jun Omae &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a>&gt; (=E5=A4=A7=E5=89=8D =E6=BD=A4)</div></div></div><=
div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Mon, Jun 8, 2026 at 13:38 Jean Vittor &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; wrote:<br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">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:r=
gb(0,0,0)">/usr/lib/python3.14/site-packages/trac/__init__.py:14: UserWarni=
ng: pkg_resources is deprecated as an API. See https</span><br><span style=
=3D"color:rgb(0,0,0)">://<a href=3D"http://setuptools.pypa.io/en/latest/pkg=
_resources.html" target=3D"_blank">setuptools.pypa.io/en/latest/pkg_resourc=
es.html</a>. The pkg_resources package is slated for removal as early as 20=
25</span><br><span style=3D"color:rgb(0,0,0)">-11-30. Refrain from using th=
is 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 impor=
t 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 call las=
t):</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)">&quot;/usr/bin/tracd&quot;</span><span style=3D"=
color:rgb(0,0,0)">, line </span><span style=3D"color:rgb(178,24,178)">3</sp=
an><span style=3D"color:rgb(0,0,0)">, in </span><span style=3D"color:rgb(17=
8,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 trac.we=
b.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)">&quot;/usr/lib/python3.14/site-packages/trac/web=
/standalone.py&quot;</span><span style=3D"color:rgb(0,0,0)">, line </span><=
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;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 trac.we=
b.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)">&quot;/usr/lib/python3.14/site-packages/trac/web=
/main.py&quot;</span><span style=3D"color:rgb(0,0,0)">, line </span><span s=
tyle=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&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 trac.en=
v 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)">&quot;/usr/lib/python3.14/site-packages/trac/env=
.py&quot;</span><span style=3D"color:rgb(0,0,0)">, line </span><span style=
=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;</span><span styl=
e=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A0=C2=A0from trac.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)">&quot;/usr/lib/python3.14/site-packages/trac/db/=
convert.py&quot;</span><span style=3D"color:rgb(0,0,0)">, line </span><span=
 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><spa=
n style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A0=C2=A0from trac.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)">&quot;/usr/lib/python3.14/site-packages/trac/db/=
sqlite_backend.py&quot;</span><span style=3D"color:rgb(0,0,0)">, line </spa=
n><span style=3D"color:rgb(178,24,178)">43</span><span style=3D"color:rgb(0=
,0,0)">, in </span><span style=3D"color:rgb(178,24,178)">&lt;module&gt;</sp=
an><span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"color:rgb(0,0,0)"> =C2=A0=C2=A0=C2=A0pysqlite_ver=
sion =3D </span><span style=3D"font-weight:bold;color:rgb(255,84,84)">sqlit=
e.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;color:rgb=
(255,84,84)">^^^^^^^^^^^^^^^^^^^</span><span style=3D"color:rgb(0,0,0)">
</span><br><span style=3D"font-weight:bold;color:rgb(255,84,255)">Attribute=
Error</span><span style=3D"color:rgb(0,0,0)">: </span><span style=3D"color:=
rgb(178,24,178)">module &#39;sqlite3&#39; has no attribute &#39;version_inf=
o&#39;</span><br><span style=3D"color:rgb(0,0,0)">
</span><br></span></div><div><br></div><div>Do I need any special upgrade?<=
/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]" target=
=3D"_blank">trac-users+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&amp;utm_source=3Dfooter" target=3D"_blank">https://groups.googl=
e.com/d/msgid/trac-users/a226ce56-0cd3-4954-bc5e-ad2020509559n%40googlegrou=
ps.com</a>.<br>
</blockquote></div></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/CAEVLMaidsuwJhvubunt5MK3JL-ESphY5mGxQE-SxC7M%2Bf5OaUA%40mail.gma=
il.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/=
msgid/trac-users/CAEVLMaidsuwJhvubunt5MK3JL-ESphY5mGxQE-SxC7M%2Bf5OaUA%40ma=
il.gmail.com</a>.<br />

--0000000000009b48df0653b6ba9f--