-
Notifications
You must be signed in to change notification settings - Fork 51
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
AttributeError: 'Chromecast' object has no attribute 'device' #171
Comments
Ubuntu 21.10 pip install PyChromecast==1.0.3 zeroconf==0.19.1 restart and the problem resolved for me. |
This worked for me as well on Xubuntu 20.04 and Python 3.8.10. |
In Fedora 35, I installed python3-chromecast and its pre and co-requisites: python3-protobuf-3.14.0-6.fc35.noarch After installation I have installed:
and I get error above. |
The issue is that PyChromecast dropped the So the easy fix is to set |
Helped me too. Thanks. |
Now the problem is identified can we hope to have a new version of gnomecast who fix it ? |
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 |
I created a PR with the changes that are the same as the two commits @vanadinit mentioned, hopefully they will merge it. |
Do you plan to merge this PR ? |
Used:
no restart and the problem resolved for me. This worked. Ubuntu 22.04 and Python 3.10 |
The problem was fixed, the current master branch detects the device successfully |
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) |
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. |
The gnomecast pypi package is outdated(see: keredson/gnomecast#178) and doesn't work with the PyChromecast version in nixpkgs(keredson/gnomecast#171).
Same problem here Traceback (most recent call last): |
Hi,
Using Fedora 35, I get following messages when gnomecast try to find chromecast.
chromium-freeworld-96.0.4664.45-1.fc35.x86_64 find the chromecast and casts on it with no problem.
Environment:
Fedora 35
gnomecast 1.9.11
python3-chromecast-9.3.1-1.fc35.noarch
Messages:
$ gnomecast
update_button_visible
None
update_button_visible
update_button_visible
serving on http://192.168.1.11:55281
check_ffmpeg
b'/usr/bin/ffmpeg\n'
Traceback (most recent call last):
File "/home/didier/.local/lib/python3.10/site-packages/gnomecast.py", line 566, in f
friendly_name = cc.device.friendly_name
AttributeError: 'Chromecast' object has no attribute 'device'
$
The text was updated successfully, but these errors were encountered: