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

ExpiredSignature is missing from [email protected] #23

Closed
outloudvi opened this issue Jan 2, 2021 · 2 comments
Closed

ExpiredSignature is missing from [email protected] #23

outloudvi opened this issue Jan 2, 2021 · 2 comments
Assignees
Labels
blocked:dep Blocked by dependencies bug Something isn't working

Comments

@outloudvi
Copy link

大大晚安,我早前重新pull過repo,重新build,up之後會出現這個問題

cannot import name 'ExpiredSignature' from 'jwt' (/usr/local/lib/python3.7/dist-packages/jwt/__init__.py)

我在網路上已經查過各種解法,但始終行不通

Originally posted by @minexo79 in SchOJ/dmoj-site#4 (comment)

@outloudvi outloudvi added the bug Something isn't working label Jan 2, 2021
@outloudvi outloudvi self-assigned this Jan 2, 2021
@outloudvi
Copy link
Author

outloudvi commented Jan 2, 2021

这是 python-social-auth 的问题。它使用了一个已经 deprecated 的 alias,而上游依赖 PyJWT 在 2.0.0. 版本移除了已经 deprecated 的 ExpiredSignature (jpadilla/pyjwt@f690976)。

解决方案:

  1. python-social-auth 更新:Tentative PyJWT-2.0.0-related fixes python-social-auth/social-core#537
  2. 降级 PyJWT: pip3 install PyJWT==1.7.1

看起来 python-social-auth 的更新还挺顺利,SchOJ 这边就先不改了,等上游更新吧。


Issue pinned because it's breaking the build.

@outloudvi outloudvi added the blocked:dep Blocked by dependencies label Jan 2, 2021
@outloudvi outloudvi pinned this issue Jan 2, 2021
@outloudvi
Copy link
Author

Fixed by python-social-auth/social-core@39e4756.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked:dep Blocked by dependencies bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant