-
Notifications
You must be signed in to change notification settings - Fork 140
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
crashes on start - Ubuntu 20.10 - errors with zeroconf and traceback error in cast.py #355
Comments
Update: I managed to fix the zeroconf errors by updating zeroconf in PIP. Now I just have the second error left |
I faced this issue also: `$ mkchromecast
During handling of the above exception, another exception occurred: Traceback (most recent call last): |
more debug info!
|
This is because of an upstream change in pychromecast: Edit: this appears to be resolved if you clone the git repo itself rather than using This changes the return type of def _get_chromecasts(self):
# compatibility
try:
return list(pychromecast.get_chromecasts_as_dict().keys())
except AttributeError:
available_chromecasts = pychromecast.get_chromecasts(
tries=self.tries)
self._chromecasts_by_name = {c.name: c for c in
(available_chromecasts[0] if
type(available_chromecasts) == tuple
else available_chromecasts)}
return list(self._chromecasts_by_name.keys()) though, it's probably cleaner to check the pychromecast version and make decisions based on that. Now, there seem to be a few other issues that arise with pychromecast 9.0.0 (or maybe earlier versions, I haven't experimented extensively), where the # try:
# print(colors.options('The IP of ') +
# colors.success(self.cast_to) + colors.options(' is:') +
# ' ' + self.cast.host)
# except TypeError:
# print(colors.options('The IP of ') +
# colors.success(self.cast_to.player_name) +
# colors.options(' is:') + ' ' + self.cast_to.ip_address)
# except AttributeError:
# for _ in self.sonos_list:
# if self.cast_to in _.player_name:
# self.cast_to = _
# print(colors.options('The IP of ') +
# colors.success(self.cast_to.player_name) +
# colors.options(' is:') + ' ' + self.cast_to.ip_address) at roughly line 312 gets me to the "casting" part, though nothing is actually showing on my chromecast... |
The text was updated successfully, but these errors were encountered: