I am using streamlit
package and I want to use streamlit_authenticator
. However, I am facing the following issue:
<code>>>> import streamlit_authenticator as stauth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesstreamlit_authenticator__init__.py", line 1, in <module>
import jwt
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwt__init__.py", line 17, in <module>
from .jwa import std_hash_by_alg
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwtjwa.py", line 26, in <module>
from cryptography.hazmat.primitives.asymmetric import padding
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitivesasymmetricpadding.py", line 10, in <module>
from cryptography.hazmat.primitives import hashes
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitiveshashes.py", line 10, in <module>
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
ImportError: DLL load failed while importing _rust: The specified module could not be found.
</code>
<code>>>> import streamlit_authenticator as stauth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesstreamlit_authenticator__init__.py", line 1, in <module>
import jwt
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwt__init__.py", line 17, in <module>
from .jwa import std_hash_by_alg
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwtjwa.py", line 26, in <module>
from cryptography.hazmat.primitives.asymmetric import padding
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitivesasymmetricpadding.py", line 10, in <module>
from cryptography.hazmat.primitives import hashes
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitiveshashes.py", line 10, in <module>
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
ImportError: DLL load failed while importing _rust: The specified module could not be found.
</code>
>>> import streamlit_authenticator as stauth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesstreamlit_authenticator__init__.py", line 1, in <module>
import jwt
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwt__init__.py", line 17, in <module>
from .jwa import std_hash_by_alg
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagesjwtjwa.py", line 26, in <module>
from cryptography.hazmat.primitives.asymmetric import padding
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitivesasymmetricpadding.py", line 10, in <module>
from cryptography.hazmat.primitives import hashes
File "C:UsersLambdaAppDataRoamingPythonPython310site-packagescryptographyhazmatprimitiveshashes.py", line 10, in <module>
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
ImportError: DLL load failed while importing _rust: The specified module could not be found.
I searched about this kind of problem I found this discussion on github but it was not so helpful.
Specifications:
Python: 3.10.9
streamlit: 1.37.0
Windows 10
I appreciate your help and suggestions.