Invalid database type record_* methods expect City databaseĮxception Location: /home/kgp/kgp-0.9.1.1-806-g1842eac/eggs/pygeoip-0.2.3-py2.6.egg/pygeoip/ init.py in record_by_addr, line 543
![maxmind geoip api maxmind geoip api](https://hackernoon.com/hn-images/1*OmEgimbldP2bb3QUsHnZww.png)
Have done nothing but upgraded from 0.2.2 to 0.2.3 and got this Django crash. Is this expected behaviour/an unsupporteddataset,or.? so it wants IPv4 except when you provide one. Pygeoip.GeoIPError: Invalid database type expected IPv6 address Raise GeoIPError('Invalid database type expected IPv6 address') Pygeoip.GeoIPError: Invalid database type expected IPv4 addressįile "/home/ironholds/.local/lib/python2.7/site-packages/pygeoip-0.3.1-py2.7.egg/pygeoip/ init.py", line 413, in id_by_addr Raise GeoIPError('Invalid database type expected IPv4 address') Return const.NETSPEED_NAMESįile "/home/ironholds/.local/lib/python2.7/site-packages/pygeoip-0.3.1-py2.7.egg/pygeoip/ init.py", line 415, in id_by_addr Using the netspeeds database (specifically "Binary format for APIs with Cellular") we get: