Created attachment 1728558 [details] Simple script to illustrate the issue Description of problem: Connecting to a sqlite database with sqlobject 3.3.0 on python3.9 does not work due to deprecated b64.encodestring method being removed. Version-Release number of selected component (if applicable): 3.3.0-13 How reproducible: Steps to Reproduce: 1. Install python3.9 2. Install python3-sqlobject 3. Run attached script Actual results: Script produces a stack trace complaining about module 'b64' not having any method 'encodestring' Expected results: Script should complete successfully. Additional info: The methods 'encodestring' and 'decodestring' in the 'b64' modules have been deprecated since python3.1 and have been removed in python3.9 (see https://bugs.python.org/issue39351). Version 3.3.0 of sqlobject uses these methods in its sqlite module, so connecting to sqlite on python3.9 will not work. sqlobject has had quite a few releases since 3.3.0. The issue looks to have been fixed in version 3.4.0 (https://github.com/sqlobject/sqlobject/commit/623a5802b03273b2ef8aa57e6d13dc312f232033#diff-3bce1ac09a6fcef84f0c0ae10137e986b3f69371b796ea40cdbdb126e3327e49R43). So this bug can be easily fixed by upgrading the version of python3-sqlobject to something newer than 3.3.0
Or maybe an alternate solution, if it's not possible to go to a newer version, is just to patch this version and replace 'encodestring'/'decodestring' with 'encodebytes'/'decodebytes'. The *string methods are just aliases for the *bytes methods anyway.
I think it's better to move up to 3.8.1. We are a bit behind anyway.
FEDORA-2021-5aab8a8a71 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5aab8a8a71
FEDORA-2021-5aab8a8a71 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-5aab8a8a71` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5aab8a8a71 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-5aab8a8a71 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.