-
Notifications
You must be signed in to change notification settings - Fork 178
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.IPPROTO_IPV6 undefined in Python 2.7.12 for Windows #138
Comments
Lovely: https://bugs.python.org/issue6926 I'd accept a patch that tried to use the value from Not a big fan, but alas we are stuck with it. |
BTW, it looks like it won't ever be fixed for Python 2.7 on Windows. So waiting is not an option. I'd recommend Python 3.5 anyway. IPv6 support should work just fine on Windows, although the testing that is currently done is done on AppVeyor on Python 3.5 only. |
I get the same message with Python 3.5.2 when trying to run devpi-server:
What are the workarounds to be able to use it ? I don't care of IPv6 in my case. |
@kedare Make sure to set your listen and or host/port combo to something that is explicitly IPv4 (127.0.0.1:8080 for example). This won't activate any of the IPv6 code paths. |
Also, what version of Windows? Looking at the bug report linked, it should be activated on Windows Vista and above... and thus should be available. Are you using the 32 bit version of Python or the 64 bit version of Python? |
Could someone pull down #140 and test that patch on Windows? |
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
…1.0.1 1.0.1 (2016-10-22) ------------------ Bugfixes ~~~~~~~~ - IPv6 support on Windows was broken due to missing constants in the socket module. This has been resolved by setting the constants on Windows if they are missing. See Pylons/waitress#138 - A ValueError was raised on Windows when passing a string for the port, on Windows in Python 2 using service names instead of port numbers doesn't work with `getaddrinfo`. This has been resolved by attempting to convert the port number to an integer, if that fails a ValueError will be raised. See Pylons/waitress#139
Hi all,
In the current commit (7e807c9), the line 172 of the file waitress/server.py contains:
Thing is, IPPROTO_IPV6 is not defined in socket...
Should it be replaced by its value (41) defined in Ws2def.h, while we gently wait for Python to fix this ?
Or should IPV6 be avoided under Windows with Python 2.7 ?
Thanks for the support,
Best,
Nicolas
The text was updated successfully, but these errors were encountered: