-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket has no inet_pton
method in Python 2.7 on Windows
#4
Comments
Luckily, it seems to be easily monkey-patched: Just import [https://gist.github.com/nnemkin/4966028](this windows implementation) and monkey-patch |
FYI, I've packaged up a solution to this problem based on that above gist: https://pypi.python.org/pypi/win_inet_pton |
Thank you! |
Thank you!!!, just my 2 cents for newbies like me, after downloading the package, you need to import win_inet_pton in \Lib\site-packages\geoip.py and works like a charm. |
This is what worked for a newbie (like me):
|
Hi,
This library does not work with Python 2.7 on Windows at the moment since the socket module does not have a inet_pton there. Is windows support on your radar?
Stacktrace when running a simple lookup.ip():
The text was updated successfully, but these errors were encountered: