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 }}
Repository navigation
AttributeError: 'Chromecast' object has no attribute 'device' #171
I am going to fix various things in my fork to get this going for my own setup. Maybe I make a pull-request back to this, but I am not sure how to handle invasive changes, it will be more a rewrite than little adjustments.
Edit: Just discovered that you need also the two cc.name lines from vanadinit@a1de1ae
I just tried the workaround (PyChromecast==1.0.3 zeroconf==0.19.1) and Gnomecast does not launch anymore:
Traceback (most recent call last):
File "/home/legz/.local/bin/gnomecast", line 8, in <module>
sys.exit(main())
File "/home/legz/.local/lib/python3.8/site-packages/gnomecast.py", line 1570, in main
caster = Gnomecast()
File "/home/legz/.local/lib/python3.8/site-packages/gnomecast.py", line 400, in __init__
self.app = bottle.Bottle()
NameError: name 'bottle' is not defined
I applied the fix suggested in the PR, and everything works fine.
Thanks @stele95 !
Same problem here
22.04.03
Mate 1.26.0
Gnomecast 1.9.11
Traceback (most recent call last):
File "/home/jorgeat/.local/lib/python3.10/site-packages/gnomecast.py", line 1365, in on_cast_combo_changed
self.get_nonlocal_cast()
File "/home/jorgeat/.local/lib/python3.10/site-packages/gnomecast.py", line 1350, in get_nonlocal_cast
cast = pychromecast.Chromecast(text)
File "/home/jorgeat/.local/lib/python3.10/site-packages/pychromecast/init.py", line 269, in init
if not cast_info.cast_type:
AttributeError: 'str' object has no attribute 'cast_type'
Activity
Bradara commentedon Nov 28, 2021
Ubuntu 21.10
The same error
after
pip install PyChromecast==1.0.3 zeroconf==0.19.1
restart and the problem resolved for me.
beregon87 commentedon Dec 5, 2021
This worked for me as well on Xubuntu 20.04 and Python 3.8.10.
didierga commentedon Dec 6, 2021
In Fedora 35, I installed python3-chromecast and its pre and co-requisites:
python3-protobuf-3.14.0-6.fc35.noarch
python3-ifaddr-0.1.7-5.fc35.noarch
python3-zeroconf-0.36.9-1.fc35.noarch
python3-casttube-0.2.1-4.fc35.noarch
python3-chromecast-9.3.1-1.fc35.noarch
After installation I have installed:
and I get error above.
interfect commentedon Dec 10, 2021
The issue is that PyChromecast dropped the
deviceproperty in release 10.0, 25 days ago. See https://github.com/home-assistant-libs/pychromecast/releases/tag/10.0.0 and home-assistant-libs/pychromecast#556. All that stuff is now incast_infoinstead.So the easy fix is to set
pychromecast<10inrequirements.txtand cut a release, then actually fix it and start depending onpychromecast>10,<11.michaldrabik commentedon Jan 3, 2022
Helped me too. Thanks.
didierga commentedon Jan 11, 2022
Now the problem is identified can we hope to have a new version of gnomecast who fix it ?
vanadinit commentedon Jan 29, 2022
This should fix it: vanadinit@151b53b
Feel free to cherry-pick or copy the changes.
I am going to fix various things in my fork to get this going for my own setup. Maybe I make a pull-request back to this, but I am not sure how to handle invasive changes, it will be more a rewrite than little adjustments.
Edit: Just discovered that you need also the two
cc.namelines from vanadinit@a1de1aestele95 commentedon Jan 29, 2022
I created a PR with the changes that are the same as the two commits @vanadinit mentioned, hopefully they will merge it.
didierga commentedon Mar 11, 2022
Do you plan to merge this PR ?
Senacharim commentedon Nov 19, 2022
Used:
no restart and the problem resolved for me.
This worked. Ubuntu 22.04 and Python 3.10
stele95 commentedon Nov 27, 2022
The problem was fixed, the current master branch detects the device successfully
Senacharim commentedon Nov 27, 2022
Had problem indicated in this thread (in Nov, 2022) and used the indicated fix to resolve it.
Perhaps the fix wasn't tested with the original Nvidia Shield and has some edge cases, I don't know.
Got error, found fix, fix worked.
Error exists in software. (sorry)
legz commentedon Jan 2, 2023
I just tried the workaround (PyChromecast==1.0.3 zeroconf==0.19.1) and Gnomecast does not launch anymore:
I applied the fix suggested in the PR, and everything works fine.
Thanks @stele95 !
gnomecast: 1.9.11 -> 2022-04-23
JorgeAT227 commentedon Sep 13, 2023
Same problem here
22.04.03
Mate 1.26.0
Gnomecast 1.9.11
Traceback (most recent call last):
File "/home/jorgeat/.local/lib/python3.10/site-packages/gnomecast.py", line 1365, in on_cast_combo_changed
self.get_nonlocal_cast()
File "/home/jorgeat/.local/lib/python3.10/site-packages/gnomecast.py", line 1350, in get_nonlocal_cast
cast = pychromecast.Chromecast(text)
File "/home/jorgeat/.local/lib/python3.10/site-packages/pychromecast/init.py", line 269, in init
if not cast_info.cast_type:
AttributeError: 'str' object has no attribute 'cast_type'