Totem: loading "Coherence DLNA/UPnP Client" results in: "ImportError: No module named coherence.ui.av_widgets"

Bug #338963 reported by Sander Jonkers
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
coherence (Ubuntu)
Invalid
Low
Unassigned
totem (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Trying to load the plugin 'Coherence DLNA/UPnP Client' results in an error and no UPnP plugin loaded: ImportError: No module named coherence.ui.av_widgets

Ubuntu 9.04 Jaunty Alpha 5 updated until today (2009-03-06)

Full CLI logging:

sander@jaunty:~$ totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10, in <module>
    from coherence.ui.av_widgets import TreeWidget
ImportError: No module named coherence.ui.av_widgets

** (totem:3301): WARNING **: Could not load plugin coherence_upnp

** (totem:3301): WARNING **: Error, impossible to activate plugin 'Coherence DLNA/UPnP Client'
sander@jaunty:~$

sander@jaunty:~$ apt-cache policy totem
totem:
  Installed: 2.25.91-0ubuntu3
  Candidate: 2.25.91-0ubuntu3
  Version table:
 *** 2.25.91-0ubuntu3 0
        500 http://nl.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

sander@jaunty:~$ apt-cache policy totem-plugins
totem-plugins:
  Installed: 2.25.91-0ubuntu3
  Candidate: 2.25.91-0ubuntu3
  Version table:
 *** 2.25.91-0ubuntu3 0
        500 http://nl.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

sander@jaunty:~$ apt-cache policy totem-plugins-extra
totem-plugins-extra:
  Installed: (none)
  Candidate: 2.25.91-0ubuntu3
  Version table:
     2.25.91-0ubuntu3 0
        500 http://nl.archive.ubuntu.com jaunty/universe Packages
sander@jaunty:~$

Related branches

Revision history for this message
Sander Jonkers (jonkers) wrote :

After installying "python-coherence", the GUI bug stays the same, the CLI output is more ugly and/or more informative.

sander@jaunty:~$
sander@jaunty:~$
sander@jaunty:~$ totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/dist-packages/twisted/spread/pb.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 20, in __init__
    self.ui = TreeWidget()
  File "/usr/lib/python2.6/dist-packages/coherence/ui/av_widgets.py", line 58, in __init__
    self.init_controlpoint()
  File "/usr/lib/python2.6/dist-packages/coherence/ui/av_widgets.py", line 121, in init_controlpoint
    self.coherence = self.bus.get_object(BUS_NAME,OBJECT_PATH)
  File "/var/lib/python-support/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/var/lib/python-support/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/var/lib/python-support/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/var/lib/python-support/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.Coherence was not provided by any .service files

** (totem:3715): WARNING **: Could not instantiate Python object

** (totem:3715): CRITICAL **: totem_plugin_activate: assertion `TOTEM_IS_PLUGIN (plugin)' failed
sander@jaunty:~$

Revision history for this message
Sander Jonkers (jonkers) wrote :

Solution (workaround?) found, thanks to Linux genius ArjanW drinking my Bavaria beer:

As root, create file /usr/share/dbus-1/services/org.Coherence.service with contents:

[D-BUS Service]
Name=org.Coherence
Exec=/usr/bin/coherence -o use_dbus:yes -o controlpoint:yes

After that, totem's Coherence DLNA/UPnP can be activated.

HTH

Revision history for this message
Sander Jonkers (jonkers) wrote :

And a picture showing that the totem Coherence DLNA UPnP actually works; it does see the UPnP AV Mediaserver provided by rhythmbox.

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
milestone: none → ubuntu-9.04-beta
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Confirming, also workaround proposed works here.

Changed in totem (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

is that still an issue using the new coherence version?

Changed in totem (Ubuntu):
milestone: ubuntu-9.04-beta → ubuntu-9.04
Revision history for this message
Sander Jonkers (jonkers) wrote : Re: [Bug 338963] Re: Totem: loading "Coherence DLNA/UPnP Client" results in: "ImportError: No module named coherence.ui.av_widgets"

Sebastien,

I checked and the error still occurs: totem -> edit -> plugins -> conherence
results in "Unable to activate plugin Coherence DLNA/UPnP Client".

However, I'm not sure anymore that I'm actually running BETA (see below),
so, just to be sure, I will get the Jaunty-Beta-CD, boot that and report
back.

ubuntu@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu jaunty (development branch)"

ubuntu@ubuntu:~$ apt-cache policy totem
totem:
  Installed: 2.26.0-0ubuntu1
  Candidate: 2.26.0-0ubuntu1
  Version table:
 *** 2.26.0-0ubuntu1 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
ubuntu@ubuntu:~$

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.28-11-generic #37-Ubuntu SMP Mon Mar 23 16:40:23 UTC 2009
i686 GNU/Linux
ubuntu@ubuntu:~$

On Tue, Mar 31, 2009 at 00:13, Sebastien Bacher <email address hidden> wrote:

> is that still an issue using the new coherence version?
>
> ** Changed in: totem (Ubuntu)
> Milestone: ubuntu-9.04-beta => ubuntu-9.04
>
> --
> Totem: loading "Coherence DLNA/UPnP Client" results in: "ImportError: No
> module named coherence.ui.av_widgets"
> https://bugs.launchpad.net/bugs/338963
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sander Jonkers (jonkers) wrote :

PS: the CLI output

ubuntu@ubuntu:~$ totem
/usr/share/themes/Human/gtk-2.0/gtkrc:82: Murrine configuration option
"highlight_ratio" will be deprecated in future releases. Please use
"highlight_shade" instead.
/usr/share/themes/Human/gtk-2.0/gtkrc:83: Murrine configuration option
"lightborder_ratio" will be deprecated in future releases. Please use
"lightborder_shade" instead.
/usr/share/themes/Human/gtk-2.0/gtkrc:194: Murrine configuration option
"highlight_ratio" will be deprecated in future releases. Please use
"highlight_shade" instead.
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import sha
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10,
in <module>
    from coherence.ui.av_widgets import TreeWidget
ImportError: No module named coherence.ui.av_widgets

** (totem:6791): WARNING **: Could not load plugin coherence_upnp

** (totem:6791): WARNING **: Error, impossible to activate plugin 'Coherence
DLNA/UPnP Client'
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10,
in <module>
    from coherence.ui.av_widgets import TreeWidget
ImportError: No module named coherence.ui.av_widgets

** (totem:6791): WARNING **: Could not load plugin coherence_upnp

** (totem:6791): WARNING **: Error, impossible to activate plugin 'Coherence
DLNA/UPnP Client'
^C
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ totem --version
totem 2.26.0
ubuntu@ubuntu:~$

On Tue, Mar 31, 2009 at 07:00, Sander Jonkers - GMX <email address hidden> wrote:

> Sebastien,
>
> I checked and the error still occurs: totem -> edit -> plugins ->
> conherence results in "Unable to activate plugin Coherence DLNA/UPnP
> Client".
>
> However, I'm not sure anymore that I'm actually running BETA (see below),
> so, just to be sure, I will get the Jaunty-Beta-CD, boot that and report
> back.
>
>
>
> ubuntu@ubuntu:~$ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=9.04
> DISTRIB_CODENAME=jaunty
> DISTRIB_DESCRIPTION="Ubuntu jaunty (development branch)"
>
> ubuntu@ubuntu:~$ apt-cache policy totem
> totem:
> Installed: 2.26.0-0ubuntu1
> Candidate: 2.26.0-0ubuntu1
> Version table:
> *** 2.26.0-0ubuntu1 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
> ubuntu@ubuntu:~$
>
> ubuntu@ubuntu:~$ uname -a
> Linux ubuntu 2.6.28-11-generic #37-Ubuntu SMP Mon Mar 23 16:40:23 UTC 2009
> i686 GNU/Linux
> ubuntu@ubuntu:~$
>
>
>
>
>
> On Tue, Mar 31, 2009 at 00:13, Sebastien Bacher <email address hidden> wrote:
>
>> is that still an issue using the new coherence version?
>>
>> ** Changed in: totem (Ubuntu)
>> Milestone: ubuntu-9.04-beta => ubuntu-9.04
>>
>> --
>> Totem: loading "Coherence DLNA/UPnP Client" results in: "ImportError: No
>> module named coherence.ui.av_widgets"
>> https://bugs.launchpad.net/bugs/338963
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
>

Revision history for this message
Jack Wasey (jackwasey) wrote :

n.b. this is marked LOW priority, but it is one of the headline updates for Jaunty - people will look out for this feature.
same for me, even with the following workaround in place:

/usr/share/dbus-1/services/org.Coherence.service

[DBUS Service]
Name=org.Coherence
Exec=/usr/bin/coherence -o use_dbus:yes -o controlpoint:yes

totem --version
totem 2.26.0

apt-cache policy totem
totem:
  Installed: 2.26.0-0ubuntu2
  Candidate: 2.26.0-0ubuntu2
  Version table:
 *** 2.26.0-0ubuntu2 0
        500 http://gb.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

apt-cache policy python-coherence
python-coherence:
  Installed: 0.6.2-1ubuntu1
  Candidate: 0.6.2-1ubuntu1
  Version table:
 *** 0.6.2-1ubuntu1 0
        500 http://gb.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Sander Jonkers (jonkers) wrote :
Download full text (4.6 KiB)

I tried the apres-BETA daily build of March 31, and that gives the same
error messages when trying to activate the Coherence-plugin in totem.

I had to activate universe + mutiverse, then install python-coherence by
hand (and edit /usr/share/dbus-1/services/org.Coherence.service) to get tot
Coherence/DLNA plugin in totem working.

So: AFAICS, nothing has changed since my bug report.

ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu jaunty (development branch)"
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import sha
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10,
in <module>
    from coherence.ui.av_widgets import TreeWidget
ImportError: No module named coherence.ui.av_widgets

** (totem:13982): WARNING **: Could not load plugin coherence_upnp

** (totem:13982): WARNING **: Error, impossible to activate plugin
'Coherence DLNA/UPnP Client'
ubuntu@ubuntu:~$ apt-cache policy totem
totem:
  Installed: 2.26.0-0ubuntu2
  Candidate: 2.26.0-0ubuntu2
  Version table:
 *** 2.26.0-0ubuntu2 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
ubuntu@ubuntu:~$

On Tue, Mar 31, 2009 at 05:16, Sander Jonkers - GMX <email address hidden> wrote:

> PS: the CLI output
>
> ubuntu@ubuntu:~$ totem
> /usr/share/themes/Human/gtk-2.0/gtkrc:82: Murrine configuration option
> "highlight_ratio" will be deprecated in future releases. Please use
> "highlight_shade" instead.
> /usr/share/themes/Human/gtk-2.0/gtkrc:83: Murrine configuration option
> "lightborder_ratio" will be deprecated in future releases. Please use
> "lightborder_shade" instead.
> /usr/share/themes/Human/gtk-2.0/gtkrc:194: Murrine configuration option
> "highlight_ratio" will be deprecated in future releases. Please use
> "highlight_shade" instead.
> /var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9:
> DeprecationWarning: the sha module is deprecated; use the hashlib module
> instead
> import sha
> Traceback (most recent call last):
> File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10,
> in <module>
> from coherence.ui.av_widgets import TreeWidget
> ImportError: No module named coherence.ui.av_widgets
>
> ** (totem:6791): WARNING **: Could not load plugin coherence_upnp
>
>
> ** (totem:6791): WARNING **: Error, impossible to activate plugin
> 'Coherence DLNA/UPnP Client'
> Traceback (most recent call last):
> File "/usr/lib/totem/plugins/coherence_upnp/coherence_upnp.py", line 10,
> in <module>
> from coherence.ui.av_widgets import TreeWidget
> ImportError: No module named coherence.ui.av_widgets
>
> ** (totem:6791): WARNING **: Could not load plugin coherence_upnp
>
>
> ** (totem:6791): WARNING **: Error, impossible to activate plugin
> 'Coherence DLNA/UPnP Client'
> ^C
> ubuntu@ubuntu:~$
> ubuntu@ubuntu:~$ totem --version
> totem 2.26.0
> ubuntu@ubuntu:~$
>
>
>
>
> On Tu...

Read more...

Revision history for this message
Sebastien Bacher (seb128) wrote :

coherence is not installed by default due to CD constrains so I doubt that will be an highlighted jaunty option

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue seems to be a coherence one

affects: totem (Ubuntu) → coherence (Ubuntu)
Changed in totem (Ubuntu):
assignee: desktop-bugs → nobody
Revision history for this message
Sander Jonkers (jonkers) wrote :

Well, yes, it is *by subject* a coherence problem. But this bug report reveals two bugs:

bug 1: the fact that totem offers Coherence DLNA/UPnP, whereas python-coherence needs to be installed for that, which does not happen.
If is not installed by default due to CD constrains, it should not result in an ugyly error.

bug 2: installing python-coherence reveals a bug in bug-python itself: the missing file. To avoid confusion (!) I've reported a separate bug report for the second bug, see https://bugs.launchpad.net/ubuntu/+source/coherence/+bug/352653

By solving only bug 1, you will still have bug 2.
By solving only bug 2, you will still have bug 1.
So, two separate bugs.

Revision history for this message
Sander Jonkers (jonkers) wrote :

@Sebastien Bacher

What do you mean with "I doubt that will be an highlighted jaunty option"?

Do you think the coherence plugin is not offered by the totem GUI? If so, please see the included screendump where coherence is offered, including the GUI and CLI errors I get by 'checking' on the plugin.

Revision history for this message
Sander Jonkers (jonkers) wrote :

oops, typo:

"installing python-coherence reveals a bug in bug-python itself"

should read

"installing python-coherence reveals a bug in *python-coherence* itself"

Changed in totem (Ubuntu):
status: New → Invalid
Revision history for this message
Andreas Moog (ampelbein) wrote :

The issue is with totem.

Reason: coherence plugin is shipped in totem-plugins package which must not require universe/multiverse packages to work. the plugin needs python-coherence, which is in universe. I'm working on moving the plugin to totem-plugins-extra, which is a package available for this purpose.

Changed in coherence (Ubuntu):
status: Confirmed → Invalid
Changed in totem (Ubuntu):
assignee: nobody → Andreas Moog (andreas-moog)
importance: Undecided → Low
status: Invalid → In Progress
Revision history for this message
Andreas Moog (ampelbein) wrote :

debdiff attached:

totem (2.26.1-0ubuntu3) jaunty; urgency=low

  * debian/control
    - add Depends in totem-plugins-extra for python-coherence to make
      the coherence-plugin work (LP: #338963)
    - add Replaces for totem-plugins and totem-plugins-extra since the
      coherence-plugin is moved to -extra
  * debian/rules
    - move the coherence-plugin from -plugins to -plugins-extra

 -- Andreas Moog <email address hidden> Thu, 09 Apr 2009 01:00:09 +0200

Changed in totem (Ubuntu):
assignee: Andreas Moog (andreas-moog) → Ubuntu Desktop Bugs (desktop-bugs)
status: In Progress → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package totem - 2.26.1-0ubuntu3

---------------
totem (2.26.1-0ubuntu3) jaunty; urgency=low

  * debian/control
    - add Depends in totem-plugins-extra for python-coherence to make
      the coherence-plugin work (LP: #338963)
    - add Replaces for totem-plugins and totem-plugins-extra since the
      coherence-plugin is moved to -extra
  * debian/rules
    - move the coherence-plugin from -plugins to -plugins-extra

 -- Andreas Moog <email address hidden> Thu, 09 Apr 2009 01:00:09 +0200

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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