Python Forum

Full Version: Request Dependency warning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The python script runs correctly but gives the error shown below.

Windows 11 Pycharm PyCharm 2022.3 (Community Edition)
Build #PC-223.7571.203, built on November 30, 2022
Runtime version: 17.0.5+1-b653.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2030M
Cores: 12
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true

Non-Bundled Plugins:
izhangzhihao.rainbow.brackets (2022.3.5)


The warning occurs with Python 3.10.9 and Python 3.11.

import requests

quote = requests.get(url="https://api.kanye.rest")
quote.raise_for_status()

kanye = quote.json()

print(kanye)
C:\Users\John\AppData\Local\Programs\Python\Python310\python.exe E:\Python_Projects\Kanye\scratch.py
C:\Users\John\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\__init__.py:109: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (None)/charset_normalizer (3.0.1) doesn't match a supported version!
warnings.warn(
{'quote': 'We will change the paradigm'}

Process finished with exit code 0



I attached a screen shot of Python Packages.