keithjjones / hostintel

A modular Python application to collect intelligence for malicious hosts.
Other
262 stars 52 forks source link

ImportError: No module named geoip2.database #13

Closed Skyrant closed 5 years ago

Skyrant commented 5 years ago

python hostintel.py sampleconfig.conf sampledata/smalllist.txt -a >test.csv Traceback (most recent call last): File "hostintel.py", line 21, in import libs.geoip File "/root/hostintel/libs/geoip.py", line 6, in import geoip2.database ImportError: No module named geoip2.database`

requirements and geoip2 installed with pip. using Python 2.7.12

Skyrant commented 5 years ago

if i use python 3.5.2 i get this error:

Traceback (most recent call last): File "hostintel.py", line 12, in import ConfigParser ImportError: No module named 'ConfigParser'

keithjjones commented 5 years ago

That's odd, as I haven't changed the library for geoip since 2016:

https://github.com/keithjjones/hostintel/blob/master/autorequirements.txt

What version do you have installed?

This code isn't Python3 ready. My later repositories started using Py3 from the get go.