MadNit
MadNit

Reputation: 13

Why am I getting AttributeError: module 'geoip2' has no attribute 'databse'

This is the code that I was executing and this is even the example that was given in the documentation of the geoip2 made by maxmind can anyone tell me what was the problem

import geoip2.database

with geoip2.databse.Reader('/path/to/GeoLite-ASN.mmdb') as reader:

response = reader.asn('203.0.113.0')

response.autonomous_system_organization

Upvotes: 0

Views: 365

Answers (0)

Related Questions