You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys I got the error 'ImportError: cannot import name 'KeycloakOpenID' from 'keycloak''
Some times this error fixed by reinstalling the module pip uninstall python-keycloak / pip install python-keycloak. And some times need remove all venv. The behaviour very strange.
But when I try use pyinstaller through circleci this problem rise again
File "src\auth\auth_service.py", line 2, in <module> ImportError: cannot import name 'KeycloakOpenID' from 'keycloak'
auth_service.py from keycloak import KeycloakOpenID
can you share your requirements.txt? I expect you have another package included like keycloak or keycloak-client. These packages collide with python-keycloak, see f.e. #559
Hi guys I got the error 'ImportError: cannot import name 'KeycloakOpenID' from 'keycloak''
Some times this error fixed by reinstalling the module pip uninstall python-keycloak / pip install python-keycloak. And some times need remove all venv. The behaviour very strange.
But when I try use pyinstaller through circleci this problem rise again
File "src\auth\auth_service.py", line 2, in <module> ImportError: cannot import name 'KeycloakOpenID' from 'keycloak'
auth_service.py
from keycloak import KeycloakOpenID
circleci config
name: Install Python Dependencies
command: |
choco install python --version=3.10
pip install -r requirements.txt
pip uninstall python-keycloak
pip install setuptools
pip install -U pyinstaller
pip install python-keycloak
Any ideas?
The text was updated successfully, but these errors were encountered: