Bug #375

Python bindings: missing WSAStartup in SocketStream

Added by Sebastian Hoefer about 1 year ago.

Status:NewStart date:05/19/2017
Priority:LowDue date:
Assignee:-% Done:


Target version:-


Running the Python example from the manual for "rendering over the network" fails with a message that the function "WSAStartup" has to be called first:

Traceback (most recent call last):
File "render_scene.py", line 46, in <module>
stream = SocketStream(str(ip), int(port))
RuntimeError: main [SocketStream] Error in getaddrinfo(): Die Anwendung hat die Funktion WSAStartup nicht aufgerufen, oder bei dieser Funktion ist ein Fehler aufgetreten.

This can be fixed in Python code by calling "import socket" before initializing the SocketStream.

Also available in: Atom PDF