1aN0rmus / TekDefense-Automater

Automater - IP URL and MD5 OSINT Analysis
www.tekdefense.com
MIT License
534 stars 121 forks source link

Error in packages #28

Open seifreed opened 8 years ago

seifreed commented 8 years ago

Running Ubuntu 14.10

Trace

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

p4r4n0y1ng commented 8 years ago

seifreed, Can you please tell me what version of the requests module you have loaded. If I am insulting you here, I apologize, but for brevity I will put it here. Open a python interactive session, then import requests, then utilize the version attribute:

python Python 2.7.10 (blah blah blah) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import requests requests.version '2.9.1'

Tell me what that bottom line says please.

seifreed commented 8 years ago

Hi,

How are you buddy?

Thanks for the reply!

Look at this..

sudo pip install requests -U Downloading/unpacking requests from https://pypi.python.org/packages/2.7/r/requests/requests-2.9.1-py2.py3-none-any.whl#md5=58a444aaa02780ad01983f5f540e67b2 Downloading requests-2.9.1-py2.py3-none-any.whl (501kB): 501kB downloaded Installing collected packages: requests Found existing installation: requests 2.2.1 Not uninstalling requests at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed requests Cleaning up...

seifreed@linux-analyzer:~$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import requests requests.version Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'version'

WTF!

Marc Rivero López | @seifreed | www.ecrime.info

2016-01-27 23:04 GMT+01:00 p4r4n0y1ng notifications@github.com:

seifreed, Can you please tell me what version of the requests module you have loaded. If I am insulting you here, I apologize, but for brevity I will put it here. Open a python interactive session, then import requests, then utilize the version attribute:

python Python 2.7.10 (blah blah blah) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import requests requests.version '2.9.1'

Tell me what that bottom line says please.

— Reply to this email directly or view it on GitHub https://github.com/1aN0rmus/TekDefense-Automater/issues/28#issuecomment-175884376 .

p4r4n0y1ng commented 8 years ago

Oh man!!!! my bust. First of all that stinking install process is WEIRD. I especially love the "Installing collected packages: requests Found existing installation: requests 2.2.1 Not uninstalling requests at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed requests"

UMMM......WHAT?

Anyway, here's where I steered you wrong. Please use version (double underscores each side). Not "version".

should look like:

requests.version

Thanks for the patience and apologies again

p4r4n0y1ng commented 8 years ago

It is screwing it up here because of the markdown support in the editor. Please use:

requests."underscore""underscore"version"underscore""underscore"

and obviously replace "underscore""underscore" with 2 underscores on each side.

after we're done fixing this - I'll go learn markdown nastiness too ;)

mixedup4x4 commented 8 years ago

I've created a pull request that is a requirements.txt file

p4r4n0y1ng commented 8 years ago

Great idea - Marc, did the update to your requests module help as I think it did? I want to make sure before we close this issue out.

einarf commented 8 years ago

Just a side note here that might be useful. Messing with the default python packages in the OS is normally not what you want.

Better options :

Then you don't have to deal with "Not uninstalling blah at /usr/lib/python2.7/dist-packages, owned by OS" and you can even upgrade pip version (pip on ubuntu 14.10 is ancient).