-
Notifications
You must be signed in to change notification settings - Fork 38
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
Cannot get working on Windows 7, v2.7.14 #33
Comments
I cloned the repo and set it up without C extensions. Using the same setup as above I get this:
The fix for this is to pip install win_inet_pton (inet_pton isn't available in the stdlib socket on Windows for 2.x):
Once I do this, I can get it to work:
I thought this might be fixed in Python 3.4+ as described in issue 7171. If I check in Python 3.6, I can see that inet_pton is now included in the stdlib socket:
However, I still get the same error in 3.6.3 on Windows 7:
But, if I clone the repo and build this without C extensions it does work correctly in 3.6 on Windows. So, there must be some difference in the way inet_pton works on Windows vs. POSIX systems. Note - as with Python 2.7, installing the package win_inet_pton and importing it before py-radix fixes the issue (if using C extensions). --Jim |
Thanks for the information. I don't have a windows platform to test this on so I can't be much help on that front. I'd certainly prefer to not have an external dependency on If you feel compelled to make a PR to fix support for Windows I would gladly accept it. (If it has a regression test runner system like |
Also, if that is only needed for Windows? requirements in |
@mjschultz I'm not a C programmer, so I can't help with a solution to make the C extension Windows compatible without using win_inet_pton. However, if you would be willing to accept a PR to setup.py (per @wagner-certat's suggestion) and the README.rst I might be willing to take a stab at that. Please let me know. |
Am I doing something wrong? Please let me know if you need additional details or would like me to try something.
The text was updated successfully, but these errors were encountered: