I wrote a script to call the API and successfully completed it last week. This week it will not work. I am returning the following error message:
Traceback (most recent call last): File "user_audit.py", line 2, in <module> import requests File "c:\Python27\lib\site-packages\requests\__init__.py", line 60, in <module> from .packages.urllib3.exceptions import DependencyWarning File "c:\Python27\lib\site-packages\requests\packages\__init__.py", line 29, in <module> import urllib3 ImportError: No module named urllib3
I confirmed that the packages were updated, tried to uninstall and reinstall it, but so far nothing has worked. Can anyone help?
ADDITION
I installed urllib3 as suggested by @MSHossain, but then received another error message. The new post referred to another file that I wrote that created the compiled Python file. Another file used smptlib to try and send an email. I do not understand how this will happen, but I deleted another file and my script worked without problems. I accepted the answer below as I was able to install install urllib3, but it had to be included in the request module.
source share