pulseaudio-dlna icon indicating copy to clipboard operation
pulseaudio-dlna copied to clipboard

python3 branch/Fedora 30/ python3-chromecast

Open minsonj2016 opened this issue 5 years ago • 17 comments

This is not a pa-dlna issue but it prevents pa-dlna from being installed on Fedora 30 . On Fedora 30 when I attempt to install python3-chromecast.noarch I get

Error: Problem: conflicting requests

  • nothing provides python3.7dist(casttube) >= 0.2.0 needed by python3-chromecast-2.5.2-1.fc30.noarch

minsonj2016 avatar May 16 '19 13:05 minsonj2016

I haven't updated to F30 yet, so sorry for lack of testing. It seems though that it originates form python3-chromecast, not pa-dlna. What 'dnf install python3-chromecast' says ? can you retry installing pa-dlna if this works ?

Cygn avatar May 16 '19 13:05 Cygn

dnf install python3-chromecast Last metadata expiration check: 0:53:23 ago on Thu 16 May 2019 09:28:54 AM EDT. Error: Problem: conflicting requests

  • nothing provides python3.7dist(casttube) >= 0.2.0 needed by python3-chromecast-2.5.2-1.fc30.noarch (try to add '--skip-broken' to skip uninstallable packages)

minsonj2016 avatar May 16 '19 14:05 minsonj2016

Yep, as expected; python3-chromecast rpm is broken. I can build pa-dlna without requiring this, but not sure if it''s also a a runtime hard-dependency.

Cygn avatar May 16 '19 14:05 Cygn

Done, rpm version is 0.6.0-6. If it doesn't work for lack of pychromecast, or you need it especially, you can install it by pip: pip3 install --user pychromecast

Cygn avatar May 16 '19 14:05 Cygn

installs fine . pip3 pychromecast install works . pa-dlna sees my cc devices

05-16 13:49:21 pulseaudio_dlna.pulseaudio INFO Added the device "ccAporch (Chromecast)". 05-16 13:49:21 pulseaudio_dlna.pulseaudio INFO Added the device "ccdenccAporch (Chromecast)". 05-16 13:49:21 pulseaudio_dlna.pulseaudio INFO Added the device "ccAdenccAporch (Chromecast)". 05-16 13:49:21 pychromecast INFO Querying device status 05-16 13:49:21 pulseaudio_dlna.pulseaudio INFO Added the device "ccden (Chromecast)". 05-16 13:49:21 pulseaudio_dlna.pulseaudio INFO Added the device "cclivingroom (Chromecast)"

But cannot get output to cc to work yet .

05-16 13:54:10 pulseaudio_dlna.pulseaudio ERROR The device "ccAden (Chromecast)" failed to play! (500) - Chromecast 192.168.1.111:8009 is connecting...

still tinkering .

Thanks for your help

minsonj2016 avatar May 16 '19 18:05 minsonj2016

I am baffled . On Fedora 29 I found

pulseaudio-dlna-python3/lib/python3.7/site-packages/casttube

I have no idea where this came from

minsonj2016 avatar Jun 08 '19 14:06 minsonj2016

https://bugzilla.redhat.com/show_bug.cgi?id=1716247#c1

minsonj2016 avatar Jun 21 '19 15:06 minsonj2016

I have the same issue. The device "TV (Chromecast)" failed to play! (500) - Chromecast 192.168.1.8:8009 is connecting...

pizzadude avatar Jun 27 '19 02:06 pizzadude

@minsonj2016 @Cygn

I fixed the playback issue on fedora 30 by doing this to install python3-chromecast from the fedora 29 repos

dnf --releasever=29 install python3-chromecast

pizzadude avatar Jun 27 '19 02:06 pizzadude

Then I add python3-chromecast to the exclude list in /etc/dnf/dnf.conf to be avoided being bugged about it every time I update..

cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
exclude=gens-gs gens-gs-doc python3-chromecast

pizzadude avatar Jun 27 '19 02:06 pizzadude

Thanks, that works for me as well . Hopefully the bug will be fixed at some point .

minsonj2016 avatar Jun 28 '19 13:06 minsonj2016

It's still an issue. But I found a better fix without using that old package. The fix is to install an old version of pychromecast (2.3.0) as your user.

pip3 install pychromecast==2.3.0 --user

This is confirmed working with pulseaudio-dlna from cygn's copr repo.

pizzadude avatar Jan 09 '20 23:01 pizzadude

@minsonj2016 , can you please close this one ? It's fixed in the latest RPM, which also includes chromecast.wait() patch #398. Also, some testing would be welcome as I don't have chromecast.

Cygn avatar Apr 29 '20 10:04 Cygn

@Cygn I upgraded to your latest package, and uninstalled the local copy of the python2 version of pulseaudio-dlna I was using. The issue was still there. I then git clone'd the python3 branch and manually applied the patch, and installed it with "pip install . --user" and that worked. So, something is wrong with your package. Tested on Fedora 32

pizzadude avatar Apr 29 '20 10:04 pizzadude

cat /usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/chromecast/renderer.py | grep wait

(No results). The patch isn't applied in your Fedora 32 package.

pizzadude avatar Apr 29 '20 11:04 pizzadude

Thx for testing. New build is cooking, should be on in a couple of minutes.

Cygn avatar Apr 29 '20 11:04 Cygn

Confirmed fixed.

pizzadude avatar Apr 29 '20 21:04 pizzadude