tcalmant / ipopo

iPOPO: a Service-Oriented Component Model for Python
https://ipopo.readthedocs.io/
Apache License 2.0
69 stars 28 forks source link

socket has no attribute 'IPPROTO_IPV6' on Windows #22

Closed tcalmant closed 10 years ago

tcalmant commented 10 years ago

When trying to start the Remote Shell on Windows, the following error occurs:

ERROR:InstanceManager-rshell:Component 'rshell' : error calling callback method for event VALIDATE
Traceback (most recent call last):
  File "C:\Users\Thomas Calmant\Programmation\git\ipopo\pelix\ipopo\instance.py", line 507, in __safe_callback
    return self.__callback(event, *args, **kwargs)
  File "C:\Users\Thomas Calmant\Programmation\git\ipopo\pelix\ipopo\instance.py", line 455, in __callback
    result = comp_callback(self.instance, *args, **kwargs)
  File "C:\Users\Thomas Calmant\Programmation\git\ipopo\pelix\shell\remote.py", line 359, in validate
    _create_server(self, self._address, self._port)
  File "C:\Users\Thomas Calmant\Programmation\git\ipopo\pelix\shell\remote.py", line 249, in _create_server
    server = ThreadingTCPServerFamily((server_address, port), request_handler)
  File "C:\Users\Thomas Calmant\Programmation\git\ipopo\pelix\shell\remote.py", line 228, in __init__
    self.socket.setsockopt(socket.IPPROTO_IPV6, opt_ipv6_only, 0)
AttributeError: 'module' object has no attribute 'IPPROTO_IPV6'
tcalmant commented 10 years ago

Most of network tests fails on windows due to this member. Also, it seems there is some problem in the Synchronized decorator test: AssertionError: 1406907581.365823 not greater than 1406907581.365823 : Thread 1 started too soon

tcalmant commented 10 years ago

Corrected in commit 1a7ff433909d169d60dfceaf8b77601ae3d0c74a