njazz / syphonpy

Python bindings for the Syphon Framework (OSX)
41 stars 7 forks source link

syphonpy not seeing servers? #17

Open danielnjackson opened 2 years ago

danielnjackson commented 2 years ago

Hi, I'm very much a novice Python programmer, so this is probably user error. I've installed syphonpy and it seems to be working (the server.py script included in the examples folder functions as expected). However, when I run the client.py example, there is no list of servers returned even when I am running several (the Simple Server from the syphon folks, and a server in Isadora, for instance).

The issue seems to be that syphonpy.ServerDirectory.servers() is empty. Am I missing a function or line of code to populate that list of servers?

I'm running Python 3.9 on mac os 12.5.

Thanks!

cansik commented 9 months ago

I think your problem is related to this issue: https://github.com/Syphon/Syphon-Framework/issues/93

Syphon needs an NSRunLoop, otherwise it won't get the needed notifications.