You should Google for SO_REUSEPORT, it sometimes throws an error that
should be interpreted as if it doesn't exist.

On Sunday, February 9, 2014, Thomas Goirand <[email protected]> wrote:

> Hi,
>
> I'm trying to upload python-trollius in Debian Sid, but there's some
> unit test errors as per the log below.
>
> Do you know what's going on? Can this be fixed in a new upstream
> release, so that I can upload the package in Debian?
>
> Cheers,
>
> Thomas Goirand (zigo)
>
> ======================================================================
> ERROR: test_create_connection_local_addr (test_events.EPollEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 556, in test_create_connection_local_addr
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: EpollSelector
> --------------------- >> end captured logging << ---------------------
>
> ======================================================================
> ERROR: test_create_server_dual_stack (test_events.EPollEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 826, in test_create_server_dual_stack
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: EpollSelector
> --------------------- >> end captured logging << ---------------------
>
> ======================================================================
> ERROR: test_create_connection_local_addr (test_events.PollEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 556, in test_create_connection_local_addr
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: PollSelector
> --------------------- >> end captured logging << ---------------------
>
> ======================================================================
> ERROR: test_create_server_dual_stack (test_events.PollEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 826, in test_create_server_dual_stack
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: PollSelector
> --------------------- >> end captured logging << ---------------------
>
> ======================================================================
> ERROR: test_create_connection_local_addr (test_events.SelectEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 556, in test_create_connection_local_addr
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: SelectSelector
> --------------------- >> end captured logging << ---------------------
>
> ======================================================================
> ERROR: test_create_server_dual_stack (test_events.SelectEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/tests/test_events.py",
> line 826, in test_create_server_dual_stack
>     port = support.find_unused_port()
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 131, in find_unused_port
>     port = bind_port(tempsock)
>   File
>
> "/home/zigo/sources/openstack/icehouse/python-trollius/build-area/python-trollius-0.1.4/asyncio/test_support.py",
> line 58, in bind_port
>     if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 92] Protocol not available
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: SelectSelector
> --------------------- >> end captured logging << ---------------------
>
> ----------------------------------------------------------------------
> Ran 685 tests in 14.808s
>
> FAILED (SKIP=12, errors=6)
>


-- 
--Guido van Rossum (on iPad)

Reply via email to