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
And then when I just run python -c "import requests_toolbelt" I get this error
ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/Users/charlesprat/RepoGit/poetry-demo/.venv/lib/python3.10/site-packages/urllib3/contrib/init.py)
Quick Fix
If I put a constraint on urllib3 version (poetry add [email protected]), the error disappears.
Your Environment
Operating System: Mac OS 14.1.1 (23B81)
Python Version: 3.10
Package Version: 1.2.8
The text was updated successfully, but these errors were encountered:
For me, it was types-requests floating up which prompted this issue:
poetry show urllib3
name : urllib3
version : 2.1.0
description : HTTP library with thread-safe connection pooling, file post, and more.
required by
- requests >=1.21.1,<3
- responses >=1.25.10
- types-requests >=2
How to reproduce the behaviour
I use poetry in my project. I just added doccano-client ("poetry add doccano-client"). My pyproject.toml looks like
And then when I just run
python -c "import requests_toolbelt"
I get this errorImportError: cannot import name 'appengine' from 'urllib3.contrib' (/Users/charlesprat/RepoGit/poetry-demo/.venv/lib/python3.10/site-packages/urllib3/contrib/init.py)
Quick Fix
If I put a constraint on urllib3 version (poetry add [email protected]), the error disappears.
Your Environment
The text was updated successfully, but these errors were encountered: