Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError in with urllib3 2.+ #440

Closed
PriOliveira opened this issue May 5, 2023 · 0 comments · Fixed by #442
Closed

ImportError in with urllib3 2.+ #440

PriOliveira opened this issue May 5, 2023 · 0 comments · Fixed by #442

Comments

@PriOliveira
Copy link

Recently urllib3 released a new major version. This is causing ImportError on KeycloakAdmin class as following:

env/lib/python3.11/site-packages/keycloak/keycloak_admin.py:35: in <module>
    from requests_toolbelt import MultipartEncoder
env/lib/python3.11/site-packages/requests_toolbelt/__init__.py:12: in <module>
    from .adapters import SSLAdapter, SourceAddressAdapter
env/lib/python3.11/site-packages/requests_toolbelt/adapters/__init__.py:12: in <module>
    from .ssl import SSLAdapter
env/lib/python3.11/site-packages/requests_toolbelt/adapters/ssl.py:16: in <module>
    from .._compat import poolmanager
env/lib/python3.11/site-packages/requests_toolbelt/_compat.py:50: in <module>
    from urllib3.contrib import appengine as gaecontrib
E   ImportError: cannot import name 'appengine' from 'urllib3.contrib'
@ryshoooo ryshoooo linked a pull request May 9, 2023 that will close this issue
ryshoooo pushed a commit that referenced this issue May 9, 2023
* Updating the version of requestrequests-toolbelt which removed the usage of google app engine and uses urllib3

Signed-off-by: isccarrasco <[email protected]>

* Updating the version of requestrequests-toolbelt which removed the usage of google app engine and uses urllib3

Signed-off-by: isccarrasco <[email protected]>

---------

Signed-off-by: isccarrasco <[email protected]>
NoDataIsAvailable pushed a commit to NoDataIsAvailable/python-keycloak-extended that referenced this issue Jan 8, 2024
…reirampj#442)

* Updating the version of requestrequests-toolbelt which removed the usage of google app engine and uses urllib3

Signed-off-by: isccarrasco <[email protected]>

* Updating the version of requestrequests-toolbelt which removed the usage of google app engine and uses urllib3

Signed-off-by: isccarrasco <[email protected]>

---------

Signed-off-by: isccarrasco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant