Hi all
When searching google it looks like the issue I'm having has been resolved, but still I'm hitting it.
When doing a:
for zone in soco.discover():
print(zone.player_name)
I'm getting the following message:
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
for zone in soco.discover():
File "C:\Python\Python36-32\lib\site-packages\soco\discovery.py", line 123, in discover
list(s.getsockname()[0] for s in _sockets))
File "C:\Python\Python36-32\lib\site-packages\soco\discovery.py", line 123, in <genexpr>
list(s.getsockname()[0] for s in _sockets))
OSError: [WinError 10022] An invalid argument was supplied
The strangest thing is, that I got it to work when upgrading from 0.11 to 0.12, then I left my PC to get some dinner and when returning back it now gives the same error again. Very stange.
I can access and control my Sonos speakers when trying direct towards their IP's with.
>>> from soco import SoCo
>>> my_zone = SoCo('xxx.xxx.x.xxx')
>>> my_zone.player_name
Hope that someone has some insight on what might be wrong here.
Best regards,
Kristian