masmu / pulseaudio-dlna

A lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux
GNU General Public License v3.0
1.25k stars 161 forks source link

python3 branch/Fedora 30/ python3-chromecast #382

Open minsonj2016 opened 5 years ago

minsonj2016 commented 5 years ago

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

Cygn commented 5 years ago

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 ?

minsonj2016 commented 5 years ago

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

Cygn commented 5 years ago

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 commented 5 years ago

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

minsonj2016 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

pizzadude commented 5 years ago

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

pizzadude commented 5 years ago

@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 commented 5 years ago

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
minsonj2016 commented 5 years ago

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

pizzadude commented 4 years ago

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.

Cygn commented 4 years ago

@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.

pizzadude commented 4 years ago

@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 commented 4 years ago

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.

Cygn commented 4 years ago

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

pizzadude commented 4 years ago

Confirmed fixed.