Skip to content

Фикс зависимости urllib3 - #35

Open
darkydtm wants to merge 1 commit into
sidor0912:mainfrom
darkydtm:fix/pip-urllib
Open

Фикс зависимости urllib3#35
darkydtm wants to merge 1 commit into
sidor0912:mainfrom
darkydtm:fix/pip-urllib

Conversation

@darkydtm

Copy link
Copy Markdown

Очень простой фикс ошибки
ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/home/darky/temp/new/venv/lib/python3.14/site-packages/urllib3/contrib/init.py)
Из-за мажорного апдейта urllib3. В кардинале используется старая версия, а загружается новая несовместимая

@Geardung Geardung left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проблема вызвана не только urllib3, но и requests_toolbelt==0.10.1, который пытается импортировать удалённый модуль appengine.

Для долгосрочного решения рекомендуется обновить зависимости вместо пининга urllib3.

Это совместимо с urllib3 2.x и не потребует дополнительных ограничений.

Твой фикс с urllib3<2 работает, но оставляет устаревшие версии пакетов. Опять-же

Comment thread requirements.txt
Comment on lines +10 to +11
pysocks>=1.7.1
urllib3<2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pysocks>=1.7.1
urllib3<2
pysocks>=1.7.1

Comment thread requirements.txt
@@ -7,4 +7,5 @@
requests_toolbelt==0.10.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
requests_toolbelt==0.10.1
requests_toolbelt>=1.0.0

Comment thread requirements.txt
psutil>=5.9.4
beautifulsoup4>=4.11.1
colorama>=0.4.6
requests==2.28.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
requests>=2.32.0

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 this pull request may close these issues.

2 participants