python-keycloak
python-keycloak copied to clipboard
ImportError: cannot import name 'KeycloakOpenID' from 'keycloak'
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
- run: 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?