You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
When try to launch main.py, it causes AttributeError: 'Chromecast' object has no attribute 'cast_info'
Actual
Startup fails.
INFO:root:Starting up chromecasts
INFO:pychromecast:Querying device status
INFO:root:Searching for ghm
Traceback (most recent call last):
File "/home/gh-notifier/google-home-notifier-python/main.py", line 19, in <module>
cast = next(cc for cc in chromecasts if cc.cast_info.friendly_name == chromecast_name)
File "/home/gh-notifier/google-home-notifier-python/main.py", line 19, in <genexpr>
cast = next(cc for cc in chromecasts if cc.cast_info.friendly_name == chromecast_name)
AttributeError: 'Chromecast' object has no attribute 'cast_info'
Expected
python main.py launches successfully.
Additional information
I'm using it with Google Home Mini.
$ pip list
Package Version
------------------ ---------
casttube 0.2.1
certifi 2021.5.30
charset-normalizer 2.0.4
click 8.0.1
Flask 2.0.1
gTTS 2.2.3
idna 3.2
ifaddr 0.1.7
itsdangerous 2.0.1
Jinja2 3.0.1
MarkupSafe 2.0.1
pathlib 1.0.1
pip 21.1.3
protobuf 3.17.3
PyChromecast 9.2.0
requests 2.26.0
setuptools 56.0.0
six 1.16.0
unicode-slugify 0.1.3
Unidecode 1.2.0
urllib3 1.26.6
Werkzeug 2.0.1
zeroconf 0.36.0
WARNING: You are using pip version 21.1.3; however, version 22.0.4 is available
With debugging, it seems there is a case that cast_info property can not be accessible.
Problem
When try to launch main.py, it causes AttributeError: 'Chromecast' object has no attribute 'cast_info'
Actual
Startup fails.
Expected
python main.py launches successfully.
Additional information
I'm using it with Google Home Mini.
With debugging, it seems there is a case that cast_info property can not be accessible.
cast. doesn't show cast_info.
I've used cast.name as a workaround.
The text was updated successfully, but these errors were encountered: