python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

ImportError: cannot import name 'KeycloakOpenID' from 'keycloak'

Open fedorenko-dmitriy opened this issue 7 months ago • 2 comments

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?

fedorenko-dmitriy avatar Jul 02 '24 16:07 fedorenko-dmitriy