Hi,
On 2025/02/19 16:53, 'Joost Kraaijeveld' via Trac Users wrote:
> Hi,
>
> Suddenly I get this message from Trac:
>
> "Trac Error
>
> TracError: Unable to check for upgrade of trac.db.api.DatabaseManager:
> TracError: Unsupported database type "postgres"
>
> The trac.log-file says:
>
> 2025-02-17 09:04:58,282 Trac[env] INFO: -------------------------------
> - environment startup [Trac 1.6] --------------------------------
> 2025-02-17 09:04:58,589 Trac[postgres_backend] WARNING: Exception
> caught while retrieving libpq's version
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/trac/db/postgres_backend.py",
> line 299, in _client_version
> lib = ctypes.CDLL(_libpq_pathname)
> File "/usr/lib/python3.13/ctypes/__init__.py", line 353, in __init__
> if name.endswith(".fwork"):
> ~~~~~~~~~~~~~^^^^^^^^^^
> TypeError: endswith first arg must be bytes or a tuple of bytes, not
> str
>
> Anyone an idea about a solution?
>
> TIA,
>
> Gr
>
> Joost
The issue has been filed at https://trac.edgewall.org/ticket/13803.
I think that that is an issue of Python 3.13, but I've fixed it.
Please apply the changes of https://trac.edgewall.org/changeset/17863
to your Trac.
--
Jun Omae <[email protected]> (大前 潤)
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/trac-users/fb64daa1-5d47-407b-84fc-7c77e233ef7e%40gmail.com.