Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release necessary to ship out base64 upgrade and safely support Python 3.9 #7

Open
palewire opened this issue Jun 14, 2022 · 0 comments · May be fixed by #8
Open

New release necessary to ship out base64 upgrade and safely support Python 3.9 #7

palewire opened this issue Jun 14, 2022 · 0 comments · May be fixed by #8

Comments

@palewire
Copy link

Here's what version 1.1.0 crashes with in Python 3.9. I believe it is because encodestring has been deprecated.

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2088, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/local/lib/python3.9/site-packages/flask_cors/decorator.py", line 128, in wrapped_function
    resp = make_response(f(*args, **kwargs))
  File "/usr/src/app/server/app.py", line 161, in login
    return do_auth(backend)
  File "/usr/local/lib/python3.9/site-packages/social_core/actions.py", line 29, in do_auth
    return backend.start()
  File "/usr/local/lib/python3.9/site-packages/social_core/backends/base.py", line 35, in start
    return self.strategy.redirect(self.auth_url())
  File "/usr/local/lib/python3.9/site-packages/social_core/backends/oauth.py", line 324, in auth_url
    params = self.auth_params(state)
  File "/usr/local/lib/python3.9/site-packages/social_core/backends/open_id_connect.py", line 98, in auth_params
    params['nonce'] = self.get_and_store_nonce(
  File "/usr/local/lib/python3.9/site-packages/social_core/backends/open_id_connect.py", line 108, in get_and_store_nonce
    self.strategy.storage.association.store(url, association)
  File "/usr/local/lib/python3.9/site-packages/social_sqlalchemy/storage.py", line 218, in store
    assoc.secret = base64.encodestring(association.secret).decode()
AttributeError: module 'base64' has no attribute 'encodestring'
@palewire palewire changed the title New release necessary to ship out base64 upgrade and safetly support Python 3.9 New release necessary to ship out base64 upgrade and safely support Python 3.9 Jun 14, 2022
@palewire palewire linked a pull request Jun 14, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant