mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.37k stars 229 forks source link

streamlit_authenticator import error #155

Closed adonventure closed 2 months ago

adonventure commented 2 months ago

2024-04-21 00:06:05.545 Uncaught app exception Traceback (most recent call last): File "/home/talat/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script exec(code, module.dict) File "/home/talat/seoart/streamlit_authenticator_test.py", line 4, in import streamlit_authenticator as stauth File "/home/talat/.local/lib/python3.10/site-packages/streamlit_authenticator/init.py", line 15, in from .authenticate import Authenticate File "/home/talat/.local/lib/python3.10/site-packages/streamlit_authenticator/authenticate/init.py", line 19, in from .cookie import CookieHandler File "/home/talat/.local/lib/python3.10/site-packages/streamlit_authenticator/authenticate/cookie/init.py", line 13, in from jwt import DecodeError, InvalidSignatureError ImportError: cannot import name 'DecodeError' from 'jwt' (/home/talat/.local/lib/python3.10/site-packages/jwt/init.py)

mkhorasani commented 2 months ago

Dear @adonventure, I believe you may have downloaded an incorrect distribution of PyJWT. I recommend you create a new clean environment and reinstall streamlit-authenticator and please make sure that you have PyJWT >=2.3.0 installed.

adonventure commented 2 months ago

Assalamu Alaikum and JAZAKALLAH KHAIR