pychromecast icon indicating copy to clipboard operation
pychromecast copied to clipboard

"[WinError 10049] The requested address is not valid in its context"

Open owenonline opened this issue 3 years ago • 3 comments

The only code I have written is import pychromecast services, browser = pychromecast.discovery.discover_chromecasts() and it returns this error every time. I haven't found any other issues related to this, and the chromecast I'm attempting to connect to is on the same network as the computer I'm running the script from. Anyone have any idea how I could fix this? All the dependency packages are installed.

owenonline avatar Apr 01 '21 13:04 owenonline

I've seen the same thing lately. It's quite odd because code that works perfectly on one machine yet fails (with this error) on another. Both have a fresh install of Python 3.9 and are on the same network.

Codisimus avatar Apr 01 '21 21:04 Codisimus

There is an issue with zeroconf 0.29.0 version, I've downgraded mine to 0.28.8 and it's working

gurjui avatar Apr 06 '21 10:04 gurjui

Would it be possible to pin the zeroconf dependency to the minor tested version, so upgrades don't break downstream users?

skorokithakis avatar Jul 06 '21 13:07 skorokithakis