Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No service types found #1055

Open
krcm0209 opened this issue Feb 7, 2022 · 0 comments
Open

No service types found #1055

krcm0209 opened this issue Feb 7, 2022 · 0 comments

Comments

@krcm0209
Copy link

krcm0209 commented Feb 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant