#1127737 /usr/lib/cgi-bin/doc-central/docutils.py: Missing dependency on python3-legacy-cgi

#1127737#5
Date:
2026-02-12 11:39:19 UTC
From:
To:
Hi,

docutils.py includes cgi which has been deprecated and removed from Python
3.13, and is now provided by the python3-legacy-cgi package. This means all
the doc-central cgi scripts fail.
https://docs.python.org/3/library/cgi.html

Thanks,

Roger

#1127737#10
Date:
2026-02-12 15:58:14 UTC
From:
To:
2026/02/12 09:28:50 [error] 116112#116112: *19844 FastCGI sent in stderr:
"/usr/lib/cgi-bin/doc-central/docutils.py:104: SyntaxWarning: invalid escape
sequence '\.'
  m = re.match("/usr(/share)?/info/(.+)\.info", doc.docs[format])
Traceback (most recent call last):
  File "/usr/lib/cgi-bin/doc-central/contents.cgi", line 6, in <module>
    import docutils
  File "/usr/lib/cgi-bin/doc-central/docutils.py", line 8, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'" while reading response header from
upstream, client: 192.168.10.54, server: , request: "GET
/cgi-bin/doc-central/contents.cgi HTTP/1.1", upstream:
"fastcgi://unix:/var/run/fcgiwrap.socket:", host: "my.server.local", referrer:
"https://my.server.local/dc/"