mitsuhiko / python-geoip

GeoIP database access for Python under a BSD license.
Other
250 stars 52 forks source link

[AttributeError] - urllib has not attribute urlopen. #12

Open jcs090218 opened 5 years ago

jcs090218 commented 5 years ago

I got the following error when AttributeError: module 'urllib' has no attribute urlopen. What am I doing it wrong? Here is the code I am testing with.

ip_info = geoip.geolite2.lookup_mine()
print(ip_info)