mjschultz / py-radix

Python radix tree implementation for IPv4 and IPv6 prefix matching.
Other
119 stars 37 forks source link

ValueError: Either the application has not called WSAStartup, or WSAStartup failed #47

Open vgiotsas opened 4 years ago

vgiotsas commented 4 years ago

I just installed py-radix on Windows 10 (Version 10.0.17763 Build 17763) but when I try to add prefixes in a radix tree instance I'm getting the following ValueError error:

Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
>>> import radix
>>> r = radix.Radix()
>>> r.add('8.8.8.0/24')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Either the application has not called WSAStartup, or WSAStartup failed.
>>> radix.__version__
'0.10.0'

I don't have the same error when running the same code through the Windows Linux Subsystem (WLS).

DrBob5188 commented 1 year ago

I'm having the same problem (Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32) , py-radix 0.10.0, Windows 10 Pro 21H2 OS Build 19044.2364.

DrBob5188 commented 1 year ago

Found an open pull request that resolves the issue. Thanks bgianpetro