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

AttributeError - urllib3 issue #42

Open
cyberlive-GREM opened this issue Sep 25, 2017 · 1 comment
Open

AttributeError - urllib3 issue #42

cyberlive-GREM opened this issue Sep 25, 2017 · 1 comment

Comments

@cyberlive-GREM
Copy link

Hello -

Trying to work through the same issue that was reported and closed back in November 24, 2015. Original post from user is below :

python Automater.py 4.4.4.4
Traceback (most recent call last):
File "Automater.py", line 40, in
from siteinfo import SiteFacade, Site
File "/home/yo/other/TekDefense-Automater/siteinfo.py", line 40, in
requests.packages.urllib3.disable_warnings()
AttributeError: 'module' object has no attribute 'packages'

This user updated urllib3 and requests. I have this exact same issue on fresh installs of Ubuntu 14.0.4 and 16.0.4. I did troubleshooting through python, etc...

The install method i followed was from this site.

Thanks for any help...

@groda
Copy link
Contributor

groda commented Nov 29, 2017

Hi I was able to reproduce your error by downgrading the requests library to Version 1.2.0:
$ pip install --upgrade requests==1.2.0
and I get the error when running Automater:

requests.packages.urllib3.disable_warnings()
AttributeError: 'module' object has no attribute 'disable_warnings'

Solution: install the latest version of requests (2.18.4) like this:
$ pip install --upgrade requests

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

No branches or pull requests

2 participants