question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IP Discovery not working on MacOS

See original GitHub issue

Following the example in the README results in an exception.

Platform: macOS Mojave Python 3.6 ( virtual env ) homekit[ip] 0.13.0

Happy to provide more info upon request but hoping this is enough to point me in the right direction.

(venv) Christophers-MacBook-Air:HomekitPythonPlaying christopheryoung$ python3 -m homekit.discover
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/discover.py", line 49, in <module>
    results = Controller.discover(args.timeout)
  File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/controller/controller.py", line 88, in discover
    return discover_homekit_devices(max_seconds)
  File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/zeroconf_impl/__init__.py", line 142, in discover_homekit_devices
    d['category'] = Categories[int(category)]
  File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/model/categories.py", line 83, in __getitem__
    raise KeyError('Item {item} not found'.format(item=item))
KeyError: 'Item 22 not found'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
Jc2kcommented, Apr 18, 2019

Boo - this was in XCode FWIW

0reactions
jlusiardicommented, Apr 19, 2019

👍 but i opened #136

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workaround for Local Network Discovery Failures & Problems ...
A fairly easy workaround, but you'll find that once the connection has timed out you'll need to start over again, toggle the Macs...
Read more >
Device discovery does not work with Yosemite
Device discovery does not work with Yosemite · Finder > Go > Go to Folder > /usr/libexec/ > move libexec to your favorites...
Read more >
Workaround for Local Network Discovery Failures & Problems ...
This guide is about the Workaround for Local Network Discovery Failures & Problems Connecting to Servers in Mac OS X. I will try...
Read more >
How to Workaround for Local Network Discovery Failures ...
Check tutorial of Workaround for Local Network Discovery Failures & Problems Connecting to Servers in Mac OS X.
Read more >
DHCP Discovery not working on macOS - SoftPerfect
I've tried DHCP Discovery function in NetScan v8.1.1 on two different macOS machines: Mac mini 2018 with Big Sur 11.5.2 and Mac Book...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found