Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1808664 - python-social-auth-core fails to build with Python 3.9: base64.encodestring() was removed
Summary: python-social-auth-core fails to build with Python 3.9: base64.encodestring()...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-social-auth-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: cqi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1841782 (view as bug list)
Depends On:
Blocks: F33FTBFS F33FailsToInstall PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-02-29 09:57 UTC by Miro Hrončok
Modified: 2020-07-30 17:50 UTC (History)
7 users (show)

Fixed In Version: python-social-auth-core-3.3.3-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-28 15:09:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-02-29 09:57:20 UTC
python-social-auth-core fails to build with Python 3.9.0a4.

Traceback (most recent call last):
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/tests/backends/test_livejournal.py", line 89, in test_login
    self.do_login()
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/tests/backends/base.py", line 62, in do_login
    user = self.do_start()
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/tests/backends/open_id.py", line 89, in do_start
    start = self.backend.start()
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/backends/base.py", line 34, in start
    if self.uses_redirect():
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/backends/open_id.py", line 242, in uses_redirect
    return self.openid_request().shouldSendRedirect()
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/backends/open_id.py", line 247, in openid_request
    return self.consumer().begin(url_add_parameters(self.openid_url(),
  File "/usr/lib/python3.9/site-packages/openid/consumer/consumer.py", line 359, in begin
    return self.beginWithoutDiscovery(service, anonymous)
  File "/usr/lib/python3.9/site-packages/openid/consumer/consumer.py", line 382, in beginWithoutDiscovery
    auth_req = self.consumer.begin(service)
  File "/usr/lib/python3.9/site-packages/openid/consumer/consumer.py", line 610, in begin
    assoc = self._getAssociation(service_endpoint)
  File "/usr/lib/python3.9/site-packages/openid/consumer/consumer.py", line 1183, in _getAssociation
    self.store.storeAssociation(endpoint.server_url, assoc)
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/store.py", line 25, in storeAssociation
    self.assoc.store(server_url, association)
  File "/builddir/build/BUILD/social-core-1.7.0/social_core/tests/models.py", line 169, in store
    assoc.secret = base64.encodestring(association.secret)
AttributeError: module 'base64' has no attribute 'encodestring'

See https://docs.python.org/3.9/whatsnew/3.9.html#removed

"base64.encodestring() and base64.decodestring(), aliases deprecated since Python 3.1, have been removed: use base64.encodebytes() and base64.decodebytes() instead."


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01257238-python-social-auth-core/

For all our attempts to build python-social-auth-core with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-social-auth-core/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Karthikeyan Singaravelan 2020-02-29 12:04:58 UTC
This project has problem with collections.abc import addressed in https://github.com/python-social-auth/social-core/pull/424

Comment 2 Karthikeyan Singaravelan 2020-02-29 12:06:09 UTC
Sorry, just realized the collections problem was deferred in https://bugzilla.redhat.com/show_bug.cgi?id=1793948

Comment 3 Fedora Admin XMLRPC Client 2020-04-23 04:33:21 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 4 Fedora Admin user for bugzilla script actions 2020-05-17 14:52:22 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 5 Miro Hrončok 2020-05-25 13:01:53 UTC
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask.


The Python 3.9 rebuild is in progress in a Koji side tag.

If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with:

    $ fedpkg build --target=f33-python

The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you.

You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together.

If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Comment 6 Miro Hrončok 2020-05-29 07:11:47 UTC
Python 3.9 update: The f33-python side tag is currently being merged.

New builds in f33-python are no longer possible, but python3 is not yet updated to Python 3.9 in rawhide. You can check when Python is Python 3.9 with:

    $ koji wait-repo f33-build --build python3.9-3.9.0~b1-3.fc3

And build the packages normally after that.

Comment 7 Tomáš Hrnčiar 2020-06-11 10:47:23 UTC
*** Bug 1841782 has been marked as a duplicate of this bug. ***

Comment 8 Igor Raits 2020-06-18 12:52:40 UTC
Hello,

This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).

If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

Comment 9 cqi 2020-07-06 09:47:30 UTC
Current version 1.7.0 is too old. I'm going to upgrade this package to newer version. Now, I'm waiting for a required package python-jose to finish the package review (bug 1853829). Hopefully, the upgrade will fix the issue.

Comment 10 Fedora Update System 2020-07-18 03:55:39 UTC
FEDORA-2020-5efe22d5f8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5efe22d5f8

Comment 11 Fedora Update System 2020-07-19 01:27:27 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-5efe22d5f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5efe22d5f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2020-07-28 15:09:50 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2020-07-29 14:38:10 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2020-07-29 21:16:37 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2020-07-30 13:07:40 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2020-07-30 17:50:37 UTC
FEDORA-2020-5efe22d5f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.