-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
On Windows 11 Pro (Build 22000 dev channel), in Windows or in WSL 2, Python version 3.9.6 (Windows) or version 3.9.9 (WSL 2), no service types found. This causes an issue with running examples/browser.py --find
as well.
PowerShell output:
(.venv) PS C:\Users\user\Documents\python-zeroconf-test> pip install zeroconf
Collecting zeroconf
Downloading zeroconf-0.38.3-py3-none-any.whl (106 kB)
|████████████████████████████████| 106 kB 3.3 MB/s
Collecting ifaddr>=0.1.7
Downloading ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Installing collected packages: ifaddr, zeroconf
Successfully installed ifaddr-0.1.7 zeroconf-0.38.3
WARNING: You are using pip version 21.1.3; however, version 22.0.3 is available.
You should consider upgrading via the 'c:\users\user\documents\python-zeroconf-test\.venv\scripts\python.exe -m pip install --upgrade pip' command.
(.venv) PS C:\Users\user\Documents\python-zeroconf-test> python
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from zeroconf import ZeroconfServiceTypes
>>> print('\n'.join(ZeroconfServiceTypes.find()))
>>>
However, I can find at least two services by running dns-sd -B
in Command Prompt:
C:\WINDOWS\system32>dns-sd -B
Browsing for _http._tcp
Timestamp A/R Flags if Domain Service Type Instance Name
12:39:21.916 Add 3 36 local. _http._tcp. CanonMF4800
12:39:21.916 Add 2 36 local. _http._tcp. Denon AVR-X1300W
Is this some sort of network adapter / driver issue with Python?
EDIT: Just did a fresh project with zeroconf on my raspberry pi 3, and it immediately found many services with browser.py --find
. Seems to be something the issue with my Windows setup.
Poikilos
Metadata
Metadata
Assignees
Labels
No labels