mteodoro / mmutils

Tools for working with MaxMind GeoIP csv and dat files
MIT License
95 stars 47 forks source link

AttributeError: 'module' object has no attribute 'ASNUM_EDITION_V6' #14

Open jeffsani opened 6 years ago

jeffsani commented 6 years ago

Quick question - Is this error related to my environment, the import file, or something else? This file does not contain any IPv6 addresses...

root# ./csv2dat.py -w Citrix_mynewdb.dat mmcity myoldcsv.csv Traceback (most recent call last): File "./csv2dat.py", line 270, in class ASNv6RadixTree(ASNRadixTree): File "./csv2dat.py", line 274, in ASNv6RadixTree edition = pygeoip.const.ASNUM_EDITION_V6 AttributeError: 'module' object has no attribute 'ASNUM_EDITION_V6' [root]#

joelw commented 4 years ago

This constant was added in version 0.3.0 of pygeoip. Make sure you have at least this version installed.