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
Crash on discover with API #405
Comments
Works for me with catt 0.12.9: 16:01:17 $ ipython
Python 3.9.7 (default, Sep 10 2021, 14:59:43)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.30.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from catt.api import discover
In [2]: discover()
Out[2]: [] |
|
Also there's at least one other person that is getting the same error here. |
Maybe you need to run discover() with a chromecast device on the network? When I try without network connection, I get the same output as you (it does not crash). |
Ah hmm, maybe, I'll try that. Due to a peculiar network setup, discovery doesn't work for me, but I'll try to get a Chromecast soon. |
I found this makes discover work: |
That's great, thank you! Would you mind submitting a PR? |
I have made one here. |
The path to get the ip from pychromecast is now c.socket_client.host Closes skorokithakis#405
Traceback (most recent call last):
File "/home/scott/.local/lib/python3.8/site-packages/cattqt/cattqt.py", line 402, in run
self.s.devices = catt.api.discover()
File "/home/scott/.local/lib/python3.8/site-packages/catt/api.py", line 167, in discover
return [CattDevice(ip_addr=c.ip) for c in get_casts()]
File "/home/scott/.local/lib/python3.8/site-packages/catt/api.py", line 167, in
return [CattDevice(ip_addr=c.ip) for c in get_casts()]
AttributeError: 'Chromecast' object has no attribute 'ip'
I run catt.api.discover() but it gives this.
The text was updated successfully, but these errors were encountered: