srudp icon indicating copy to clipboard operation
srudp copied to clipboard

Don’t work on MacOS

Open Eleveres opened this issue 3 years ago • 3 comments

sock = SecureReliableSocket()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/srudp/__init__.py", line 201, in __init__
    super().connect(self_address)
OSError: [Errno 22] Invalid argument

Eleveres avatar Mar 15 '21 22:03 Eleveres

Thank you for report! but you don’t give me enough info to detect the problem.

What’s version of srudp do you use? This travis shows no error on Python3.8. What’s version of Python do you use? and is it from original dist and what’s your OS?

namuyan avatar Mar 16 '21 10:03 namuyan

Hi, I'm running python3.8.2 on MacOS. I simply pip installed the package then tried running this code and it failed straight away.

Eleveres avatar Mar 17 '21 00:03 Eleveres

Thank you for reply! In my environment, Windows and Ubuntu, I could not find your problem. We require detailed debugging at your env, MacOS. In particular, please pay attention to the object of getsockname(). It will need a few fix but I cannot determine what is because I don’t have Mac and time. However it is not expected that there will be any differences between envs.

namuyan avatar Mar 31 '21 06:03 namuyan