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

Incorrect dependency warning about chardep v5.0.0 #6181

Closed
drfunjohn opened this issue Jun 28, 2022 · 1 comment
Closed

Incorrect dependency warning about chardep v5.0.0 #6181

drfunjohn opened this issue Jun 28, 2022 · 1 comment

Comments

@drfunjohn
Copy link

Warning about chardet version does not match requirements:
/usr/local/lib/python3.8/site-packages/requests/init.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn(

If install chardet==4.0.0 this warning does not appears.

root@wret:/# pipdeptree -p requests
requests==2.28.0

  • certifi [required: >=2017.4.17, installed: 2022.6.15]
  • charset-normalizer [required: ~=2.0.0, installed: 2.0.12]
  • idna [required: >=2.5,<4, installed: 3.3]
  • urllib3 [required: >=1.21.1,<1.27, installed: 1.26.9]

Expected Result

No warning about dependency of chardep

Actual Result

/usr/local/lib/python3.8/site-packages/requests/init.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn(

According pipdeptree requirements are match

Reproduction Steps

python -m requests.help

System Information

/usr/local/lib/python3.8/site-packages/requests/init.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
warnings.warn(
{
"chardet": {
"version": "5.0.0"
},
"charset_normalizer": {
"version": "2.0.12"
},
"cryptography": {
"version": "37.0.2"
},
"idna": {
"version": "3.3"
},
"implementation": {
"name": "CPython",
"version": "3.8.13"
},
"platform": {
"release": "5.10.104-linuxkit",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "30000030",
"version": "22.0.0"
},
"requests": {
"version": "2.28.0"
},
"system_ssl": {
"version": "101010ef"
},
"urllib3": {
"version": "1.26.9"
},
"using_charset_normalizer": false,
"using_pyopenssl": true
}

Docker image:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@drfunjohn drfunjohn changed the title Oncorrect dependency warning about chardep v5.0.0 Incorrect dependency warning about chardep v5.0.0 Jun 28, 2022
@nateprewitt
Copy link
Member

nateprewitt commented Jun 28, 2022

Hi @drfunjohn, please check open and closed issues before opening new ones. Dupe #6177.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants