-
Notifications
You must be signed in to change notification settings - Fork 180
Known bugs
Tek edited this page Jun 4, 2018
·
2 revisions
As described here, Cloudfare sometimes consider an IP address as suspicious and block any automated download of MaxMind databases. There is no easy way to fix that in the code directly but you can download thee files manually with your browser and store them where Harpoon would have :
-
http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
, untar it and store it in~/.config/harpoon/GeoLite2-City.mmdb
-
http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz
, untar it and stores it in~/.config/harpoon/GeoLite2-ASN.mmdb
If you get a crash like :
File "/usr/local/lib/python3.6/dist-packages/harpoon-0.1.1-py3.6.egg/harpoon/commands/domain.py", line 8, in <module>
import geoip2.database
File "/usr/local/lib/python3.6/dist-packages/geoip2/database.py", line 11, in <module>
from maxminddb import (MODE_AUTO, MODE_MMAP, MODE_MMAP_EXT, MODE_FILE, MODE_MEMORY, MODE_FD)
ImportError: cannot import name 'MODE_FD'
It means that you are using a version of maxminddb that's too old for geoip, you should update to maxminddb at least 1.4.0, which you can do with pip install maxminddb -U