I keep getting this error whenever I run a bunch of code: ImportError: cannot import name ‘JSONDecodeError’ from ‘requests.compat’ (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests/compat.py)
What could be causing this and how do i solve it since I cannot run code for a lot of projects and have been having issues constantly. i might have accidentally deleted something but i dont know how to restore it and what exactly.
I tried to install simplejson because i thought that is where the import happens but it doesnt really work.
Aarushi Alreja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.