Rhythmbox Coherence UPnP doesn't work.

Bug #278790 reported by Achim
46
This bug affects 4 people
Affects Status Importance Assigned to Milestone
coherence (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Intrepid by Iulian Udrea

Bug Description

Binary package hint: python-coherence

Description: Ubuntu intrepid (development branch)
Release: 8.10

rhythmbox:
  Installiert: 0.11.6svn20080916-0ubuntu1
  Kandidat: 0.11.6svn20080916-0ubuntu1
  Versions-Tabelle:
 *** 0.11.6svn20080916-0ubuntu1 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status
python-coherence:
  Installiert: 0.5.6-1
  Kandidat: 0.5.6-1
  Versions-Tabelle:
 *** 0.5.6-1 0
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

I am not able to see another UPnP share mediatomb or rhythmbox.
This is the error message that I get.

$ rhythmbox
WARN coherence Okt 05 22:27:32 Coherence UPnP framework version 0.5.6 starting... (coherence/base.py:237)
WARN webserver Okt 05 22:27:32 WebServer on port 59802 ready (coherence/base.py:106)
WARN rb_media_renderer Okt 05 22:27:33 __init__ RhythmboxPlayer {'shell': <rb.Shell object at 0x9ac7824 (RBShell at 0x944b030)>, 'no_thread_needed': True} (coherence/MediaPlayer.py:33)
WARN rb_media_renderer Okt 05 22:27:33 get_volume 1.0 (coherence/MediaPlayer.py:357)
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/internet/gtk2reactor.py", line 226, in simulate
    self.runUntilCurrent()
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 705, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/louie/plugin.py", line 103, in called
    return receiver(*args, **kw)
exceptions.TypeError: detected_media_server() takes exactly 3 non-keyword arguments (2 given)
WARN rb_media_renderer Okt 05 22:35:17 elapsed_changed <rb.ShellPlayer object at 0xa52bd9c (RBShellPlayer at 0x95c8898)> 0L (coherence/MediaPlayer.py:155)
WARN rb_media_renderer Okt 05 22:35:17 update_position 0L -1 (coherence/MediaPlayer.py:183)
WARN rb_media_renderer Okt 05 22:35:17 elapsed_changed <rb.ShellPlayer object at 0xa52bd9c (RBShellPlayer at 0x95c8898)> 0L (coherence/MediaPlayer.py:155)
WARN rb_media_renderer Okt 05 22:35:17 update_position 0L -1 (coherence/MediaPlayer.py:183)
WARN rb_media_renderer Okt 05 22:35:17 playing_song_changed None (coherence/MediaPlayer.py:71)
WARN rb_media_renderer Okt 05 22:35:17 update 'STOPPED' (coherence/MediaPlayer.py:164)
WARN rb_media_renderer Okt 05 22:35:17 playing_changedFalse (coherence/MediaPlayer.py:134)
WARN rb_media_renderer Okt 05 22:35:17 update 'STOPPED' (coherence/MediaPlayer.py:164)
WARN rb_media_renderer Okt 05 22:35:17 update_position None -1 (coherence/MediaPlayer.py:183)
WARN rb_media_renderer Okt 05 22:35:17 playing_changed None -1 (coherence/MediaPlayer.py:152)
WARN coherence Okt 05 22:35:17 Coherence UPnP framework shutdown (coherence/base.py:371)

Revision history for this message
Michael-250 (michael-250) wrote :

I have the same problem. Rhythmbox with upnp plugin doesn't work as expected. I have appended the output of rhythmbox while trying to access a sample mp3 from my N800 (mediastreamer, upnp).

I have tested this with the current intrepid daily-live-cd (64-bit).

Which additional informations are needed to detect the cause of this bug?

Revision history for this message
Frank Scholz (coherence) wrote :

The versions of Coherence and the Rhythmbox UPnP plugin shipped in hardy/intrepid don't fit.

Atm you can follow the intructions here -> http://coherence.beebits.net/wiki/RhythmBox#JontysNotesJuly13th2008

I'm in the process to rework that plugin and try to make it more resistant against this divergence.

In the Totem-plugin - http://coherence.beebits.net/wiki/Totem - I did that 'right' from the beginning, Rhythmbox is a bit more difficult.

Revision history for this message
muzah (sylvain-lesne) wrote :

Hi! I just made (today) an update of rhythmbox for ubuntu intrepid and I tried to launch rhythmbox with the DAAP plugin. Now my LaCie Networkshare appears as "shared" but after a (long) moment, all the music content appears too ! And it works fine :D I hope this last update will work for everyone !

Revision history for this message
dobey (dobey) wrote :

It also appears that the rhythmbox package doesn't depend on python-louie and python-coherence, so a standard install won't even let you load the plug-in. And if you don't know to look at console errors and find the python errors, you'll never know why. I've had this issue on hardy and still on intrepid. After installing the python packages, I get a python traceback on the console when the coherence plug-in loads, about detected_media_server() takes exactly 3 non-keyword args, but only 2 are being passed in. Subsequently, exiting rhytmbox takes a while, as coherence is slow at shutting down. The window gets destroyed, but my console is not returned to me for a few seconds.

Revision history for this message
John Cooper (choffee) wrote :

I have followed the JontyNotes page and found that other than having to change the import line in __init__.py from

  import coherence.extern.louie as louie

to

  import louie

It works great. On Intrepid.

Thanks

john

Revision history for this message
Mal (mal-gamble) wrote :

Unfortunately, I have not been able to duplicate John's success on my Intrepid system. I followed the instructions above and after I fix the "import louie" line and run Rhythmbox, I get no messages about Coherence and no sign of any shared music. This was using the python-coherence package from the repositories, with the latest plug-in files as per JontyNotes.

Mal

Revision history for this message
Bernhard Gehl (bernhard-gehl-gmail) wrote :

Sadly, I have to second Mal's statement - following the JontyNotes-page and changing the "import louie" line does not help. By the way, DAAP doesn't have anything to do with UPnP, does it?

Bernhard

Revision history for this message
Mal (mal-gamble) wrote :

I have now managed to get this working on my Intrepid system. The trick was to install Coherence 5.8 from the "Cheeseshop" as well as installing the SVN version of the Rhythmbox plugin.

Mal

Revision history for this message
Dan Allen (dan.j.allen) wrote :

I have a LaCie Ethernet Disk with Media Server and was able to get the uPnP rhythmbox plugin to work and see the share on Ubuntu Intrepid by following the steps below.

sudo apt-get install python-coherence
sudo apt-get install python-setuptools
mkdir -p ~/tmp/build
cd ~/tmp/build
svn co https://coherence.beebits.net/svn/tags/Coherence-0.6.0 Coherence
cd Coherence
sudo python setup.py install
cd /usr/lib/rhythmbox/plugins/upnp_coherence
sudo rm -f *.py*
sudo wget -O __init__.py http://coherence.beebits.net/browser/trunk/misc/Rhythmbox%20Plugin/upnp_coherence/__init__.py?format=raw
sudo wget -O MediaPlayer.py http://coherence.beebits.net/browser/trunk/misc/Rhythmbox%20Plugin/upnp_coherence/MediaPlayer.py?format=raw
sudo wget -O MediaStore.py http://coherence.beebits.net/browser/trunk/misc/Rhythmbox%20Plugin/upnp_coherence/MediaStore.py?format=raw
sudo wget -O UpnpSource.py http://coherence.beebits.net/browser/trunk/misc/Rhythmbox%20Plugin/upnp_coherence/UpnpSource.py?format=raw
sudo rhythmbox
# Manual step: Enable the uPnP plugin (allows the new python files to be compiled) then quit rhythmbox
rhythmbox
# Manual step: Enable the uPnP plugin

Revision history for this message
Dan Allen (dan.j.allen) wrote :

The second to last comment wrapped, leading you to believe that you have to execute the rhythmbox command twice. Read it as "quit rhythmbox". You only need to run rhythmbox once with sudo and then you can just run it as a normal user.

Revision history for this message
Dan Allen (dan.j.allen) wrote :

The only problem with accessing the LaCie Ethernet Disk is that the same song shows up many times. Likely this is a bug in the media server, not in Coherence since a second rhythmbox share works normally.

Revision history for this message
Richard McIntosh (richard-c-mcintosh) wrote :

Finally got it working.

Followed the instructions to install the newest coherence.

But had disregard John Cooper advice (probably a coherence version thing, rather than bad advice) UNEDIT the line

  import louie

back to

  import coherence.extern.louie as louie

Revision history for this message
Ilmari Vacklin (wolverian) wrote :

Is there a backportable version of the plugin in Jaunty?

Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

there is an effort to have coherence-0.6.2 included into jaunty, if the FFe is granted. Karmic for sure. The update will fix this bug.

Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

This bug if fixed in Bug #338408, setting bug to fixed released.

Changed in coherence (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.