py-radix icon indicating copy to clipboard operation
py-radix copied to clipboard

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

Open vgiotsas opened this issue 5 years ago • 2 comments

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).

vgiotsas avatar Jan 15 '20 18:01 vgiotsas

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 avatar Jan 01 '23 06:01 DrBob5188

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

DrBob5188 avatar Jan 01 '23 07:01 DrBob5188