Closed EmilStenstrom closed 9 years ago
Luckily, it seems to be easily monkey-patched: Just import [https://gist.github.com/nnemkin/4966028](this windows implementation) and monkey-patch socket.inet_pton
and things work fine.
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
This is what worked for a newbie (like me):
win inet pton
using terminal or cmdpip install win-inet-pton
import win_inet_pton
in \Lib\site-packages\geoip.py as @anviloro suggests (above).
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():