coherence-project / Coherence

DLNA/UPnP Media Server and Framework for the Digital Living
MIT License
173 stars 52 forks source link

Totem-plugin does not work in Ubuntu 14.04 #4

Open ghost opened 10 years ago

ghost commented 10 years ago

file: misc /Totem-Plugin/upnp-coherence.py

When plugin is marked, totem show these errors: totem

(totem:12131): Clutter-WARNING **: Whoever translated default:LTR did so wrongly. /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed import gobject._gobject /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_get_qdata: assertion 'node != NULL' failed from gtk import _gtk Segmentation Fault

zoni commented 10 years ago

I can confirm the same is happening in my case. Additionally, I had to rename upnp-coherence.totem-plugin to upnp-coherence.plugin and change the [Totem Plugin] section in that same file to [Plugin] before it would show up in the plugin list.

htgoebel commented 10 years ago

@TeeBSD: this still has to be solved.

gsoundsgood commented 10 years ago

Any solution or workaround for this issue?

UMLAUTaxl commented 10 years ago

Besides the Clutter-WARNING I get the same errors when trying to run Nautilus with the Python Extensions (/misc/Nautilus).

RabbitVCS (code.google.com/p/rabbitvcs/issues/detail?id=612) claim they solved this by disabling GTKSpell (http://blog.rabbitvcs.org/archives/312 and http://blog.rabbitvcs.org/archives/318 version 0.15.0.4->0.15.0.5)):

import os
if "NAUTILUS_PYTHON_REQUIRE_GTK3" in os.environ and os.environ["NAUTILUS_PYTHON_REQUIRE_GTK3"]:
    from gi.repository import Gtk as gtk
    GTK_FILL = gtk.AttachOptions.FILL
    GTK_EXPAND = gtk.AttachOptions.EXPAND
    GTK3 = True
else:
    import gtk
    GTK_FILL = gtk.FILL
    GTK_EXPAND = gtk.EXPAND
    GTK3 = False

import os.path
HAS_GTKSPELL = False
if not GTK3:
    try:
        import gtkspell
        HAS_GTKSPELL = True
    except ImportError:
        pass

When used with the Nautilus Python Extension it seems to be running (window appears) but Nautilus will still not start. See also here: https://ask.fedoraproject.org/en/question/29090/why-wont-python-load-modules-in-fedora-19/

htgoebel commented 10 years ago

@UMLAUTaxl Thanks for your post. As I do not have Gnome installed, I'd appreciate if you could either send a patch or (even better) a pull request. Thanks.

UMLAUTaxl commented 10 years ago

I'm sorry I didn't make myself clear: This doesn't work for me either.