[issue2551350] Python changes for 3.12 with roundup 2.3.0

Andrew <[email protected]> Tue, 14 May 2024 16:08:16 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
--===============6427276740961266902==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable


New submission from Andrew:

Just updated roundup to 2.3.0 and python 3.12. Ran into a couple of crashes=
; one when running the mailer and the other when submitting an issue throug=
h the web UI.

The mailer appears to be a change in the starttls() method of smptlib.SMTP =
where the key and cert file args are no longer accepted. The attached patch=
 'mailer.py.patch' resolves this by creating a separate SSL context and pas=
sing it to starttls.

The submission crash looks like a change to pydoc.HMTL.heading() where the =
number of arguments changed. The attached cgitb.py.patch file does get it w=
orking, but as additional arguments were just dropped it is unlikely to be =
a proper fix. Still might be helpful.

----------
components: Mail interface, User Interface
files: cgitb.py.patch, mailer.py.patch
keywords: patch
messages: 8042
nosy: kragacles
severity: normal
status: new
title: Python changes for 3.12 with roundup 2.3.0
type: crash
versions: 2.3.0

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551350>
_________________________________________________
--===============6427276740961266902==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="cgitb.py.patch"

--- a/roundup/cgi/cgitb.py
+++ b/roundup/cgi/cgitb.py
@@ -129,8 +129,7 @@
     pyver = 'Python ' + sys.version.split()[0] + '<br>' + sys.executable
     head = pydoc.html.heading(
         _('<font size=+1><strong>%(exc_type)s</strong>: %(exc_value)s</font>')
-        % {'exc_type': etype, 'exc_value': evalue},
-        '#ffffff', '#777777', pyver)
+        % {'exc_type': etype, 'exc_value': evalue})

     head = head + (_('<p>A problem occurred while running a Python script. '
                      'Here is the sequence of function calls leading up to '


--===============6427276740961266902==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6427276740961266902==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Roundup-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-devel

--===============6427276740961266902==--