mkchromecast icon indicating copy to clipboard operation
mkchromecast copied to clipboard

Ubuntu 20.04 (package + current master) breaks because of pychromecast

Open stucki opened this issue 4 years ago • 9 comments

Just upgraded my system to Ubuntu 20.04 (still beta, but soon to be released). When trying to play a radio stream, nothing happens on my Nest Hub:

$  mkchromecast --name "Google Nest Hub" --notifications --source-url <url>
Mkchromecast v0.3.8.1
[record[a,in-unique,...1234.local.]=120/119,192.168.1.179:8009] Failed to connect, retrying in 5.0s

I also tried to run the latest master version of this project with the same result.

It turns out that pychromecast 4.1.0 which is shipped in Ubuntu 20.04 is buggy. After updating requirements.txt to load pychromecast>=4.2, it installs version 4.2.3. Now the package version as well as current master are working fine again.

(I'm aware that this is probably a bug in Ubuntu 20.04 who should update their shipped pychromecast version, but still wanted to have it documented here.)

see also #297

stucki avatar Apr 14 '20 08:04 stucki

Steps to update to pychromecast>=4.2 please?

wyvernwaddell avatar Apr 28 '20 15:04 wyvernwaddell

pip3 install "pychromecast>=4.2"

stucki avatar Apr 28 '20 16:04 stucki

Thank you :)

wyvernwaddell avatar Apr 28 '20 16:04 wyvernwaddell

Finally reported this issue to Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pychromecast/+bug/1875688

stucki avatar Apr 28 '20 16:04 stucki

pip3 install "pychromecast>=4.2"

That didn't work for me, but pip3 install "pychromecast==4.2" did. The latest version of pychromecast is 7.something.

I'm on Linux Mint 20, which is derived from Ubuntu 20.04.

psteckler avatar Sep 20 '20 19:09 psteckler

I confirm that what works on 20.04 is

pip3 install "pychromecast==4.2"

ghomem avatar Nov 16 '20 21:11 ghomem

After pip3 install "pychromecast==4.2"

I have error: mkchromecast -t Traceback (most recent call last): File "/usr/bin/mkchromecast", line 8, in <module> from mkchromecast.cast import * File "/usr/share/mkchromecast/mkchromecast/cast.py", line 14, in <module> from pychromecast.dial import reboot ImportError: cannot import name 'reboot' from 'pychromecast.dial' (/usr/local/lib/python3.8/dist-packages/pychromecast/dial.py)

Dropsik avatar Apr 20 '21 08:04 Dropsik

cannot import name 'reboot' from 'pychromecast.dial'

sudo pip3 install pychromecast==4.2 (based on https://github.com/muammar/mkchromecast/issues/366#issuecomment-873084543).

Philipp91 avatar Jul 07 '21 18:07 Philipp91

Still not working for me... It also stopped working after upgrading to ubuntu 20

Mkchromecast v0.3.8.1
Starting Video Cast Process...
PID of main process: 21181
PID of streaming process: 21184
 * Serving Flask app "mkchromecast.video" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
 
List of Devices Available in Network:
-------------------------------------

Index   Types   Friendly Name 
=====   =====   ============= 
0 	Gcast 	KD-55XE8096
 
Casting to first device shown above!
Select devices by using the -s flag.
 
KD-55XE8096
 
[192.168.100.15:8009] Failed to connect, retrying in 5.0s

No error is shown so I have no idea what is wrong

raquelhortab avatar Aug 10 '21 13:08 raquelhortab