Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
No service found under Windows but working under Ubuntu VM. #84
I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux.
I have the following set-up:
If I run the ServiceBrowser from Windows I don't get any return back. I used the example Browser to test the set-up.
zeroconf = Zeroconf()
I noticed that if I change
This seems to ocurr in line 1603
I'm not experienced enough to find a common ground, but is there any posibility so that it'll work under both systems?
For the time being, removing:
I got a similar problem with the ServiceBrowser not finding any devices. The cause was one of zeroconf's dependencies: netifaces. Installing the latest version will download version 0.10.5, but with this version it breaks my ServiceBrowser by not finding anything. Downgrading to 0.10.4 and everything works fine.
pip uninstall netifaces
ps. tested with zeroconf version 0.17.6 as well as 0.17.5
The problem is occurring for me on Win10 Python 64-bit. I'm using zeroconf 0.10.5. Same as previous posters, the fix that basic-settings suggested works for me. In my Windows setting, I am not able to easily downgrade to zeroconf 0.10.4 due to not having the C++ build tools (and not wanting to install 4 gigs worth of them).
A full solution would be nice. Also, Windows wheel files for 0.10.4 would be nice as well.
Or drop the following check from zeroconf.py line 1590
if addr.get('netmask') != HOST_ONLY_NETWORK_MASK
Alternately we could modify the above check to only take effect on non windows platforms.
import platform # intervening code to line 1590 if (platform.system() == 'Windows') or (addr.get('netmask') != HOST_ONLY_NETWORK_MASK)
Either of these will fix the issue with windows compatibility.
My company would really like to use this as part of our build system, but we cannot do it if windows is not supported.
This seems relevant: https://bitbucket.org/al45tair/netifaces/issues/39/netmask-is-always-255255255255