pombreda / gevent

Automatically exported from code.google.com/p/gevent
0 stars 0 forks source link

inet_ntop NotImplementedError on win32/64 #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt any gevent socket connection to an address that has an IPv6 address 
(such as api.dynect.net).

What is the expected output? What do you see instead?

Instead of connecting, I get a traceback that ends with:

  File "C:\Python27\lib\site-packages\gevent\socket.py", line 637, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "C:\Python27\lib\site-packages\gevent\socket.py", line 777, in getaddrinfo
    sockaddr = (inet_ntop(AF_INET6, res), port, 0, 0)
  File "C:\Python27\lib\site-packages\gevent\socket.py", line 133, in inet_ntop
    raise NotImplementedError('inet_ntop() is not available on this platform')
NotImplementedError: inet_ntop() is not available on this platform

What version of the gevent are you using?
0.13.7, precompiled from pypi

On what operating system?
Windows 7 Ultimate 64-bit

On what Python?
Python 2.7

Please provide any additional information below.
Probably an issue on all Python 2.x windows series. The only workaround I have 
found is to uninstall gevent. :(

Original issue reported on code.google.com by jo...@cloudant.com on 1 May 2012 at 9:04

GoogleCodeExporter commented 9 years ago
Get 1.0b2 release from http://code.google.com/p/gevent/downloads/list
This should fix the issue.

Original comment by Denis.Bi...@gmail.com on 1 May 2012 at 10:38

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/SiteSupport/gevent/issues/126

Original comment by Denis.Bi...@gmail.com on 14 Sep 2012 at 10:53