ssdpy icon indicating copy to clipboard operation
ssdpy copied to clipboard

No attritute 'if_nametoindex' in socket since python3.8 on windows platform

Open flylzj opened this issue 3 years ago • 1 comments

Describe the bug python3.7 on windows does not support the method 'if_nametoindex'

Expected behavior

  File "G:\language\python37\lib\site-packages\ssdpy\compat.py", line 31, in <module>
    if_nametoindex = socket.if_nametoindex
AttributeError: module 'socket' has no attribute 'if_nametoindex'

Screenshots The document shows that the function was added on 3.8 on Windows

{{)XYCFQ$5E{FRA BO3OAPR Environment (please complete the following information):

  • Python version: python3.7
  • SSDPy version: 0.4.1

flylzj avatar Nov 24 '21 00:11 flylzj