#1098359 trac: Trac error: upgrade of trac.db.api.DatabaseManager: Unsupported database type "postgres"

Package:
trac
Source:
trac
Submitter:
Joost Kraaijeveld
Date:
2025-02-22 11:45:04 UTC
Severity:
normal
#1098359#5
Date:
2025-02-19 13:27:36 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

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

This caused by: https://trac.edgewall.org/ticket/13803
This ticket is solved in Trac 1.6.1. The version of Trac in Debian Trixie is
1.6.3 but somehow the patch is not incorporated in this version of Trac.


*** End of the template - remove these template lines ***

#1098359#10
Date:
2025-02-22 10:57:05 UTC
From:
To:
I'm sorry but the solution I mentioned in previous report does not
solve the problem.