From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: First results from running build without python2 Date: Tue, 03 Aug 2021 13:31:40 +0200 Message-ID: <62e63a94-e841-ec71-c7af-6043f38264c9@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7498946234807785022==" List-Id: --===============7498946234807785022== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All, So with crda and the remaining python2 modules removed the question was if re= moving python2 from the build ran without any problem or if something was fla= gged up. ca-certificates was flagged up. There is a python2 script, certdata2pem.py, which fails if python2 is not pre= sent. Running that script with python3 flags up some invalid syntax, unsurpri= singly. I found some patches in Debian from 2015 for certdata2pem.py to provide pytho= n3 compatibility. Unfortunately looking at the patch approx half could not be= applied because the lines don't exist in the IPFire version of certdata2pem.= py (sections to do with blacklisted certs) I then ran the 2to3 converter on certdata2pem.py and tried that in the build = but it came up with the following error. TypeError: a bytes-like object is required, not 'str' I don't know how to further move forward with this as I am totally unfamiliar= with the python language. Regards, Adolf. --===============7498946234807785022==--