Re: [libpeas] Problem packaging totem so that plugins work



Hi,

Totem should be installing "Totem-1.0.typelib" into "$(libdir)/girepository-1.0"[1] and GIRepository should be searching that directory by default. Looking at the source code[2] GIRepository is able to find the typelib files for libpeas. I would check where your build of Totem is installing the typelib and fix it to be installed in the correct directory.

Cheers,
Garrett Regier




On Wed, Jul 6, 2016 at 7:38 AM, Damien Cassou <damien cassou me> wrote:
Hi,

not sure anyone is still reading this list but I still ask my question:

I'm packaging totem for NixOS and I have a problem with totem plugins
(see trace below). I'm probably missing a dependency somewhere, can you
please help me? Please note that NixOS is a bit special because each
dependency must be explicitly stated for each package (there is no
global directory where every package can look for its dependencies).

$ ./result/bin/totem

(totem:24574): libpeas-WARNING **: Error importing plugin 'opensubtitles':
Traceback (most recent call last):
  File "/nix/store/w9gwivwr7ih57b4y1dfhv64xy316p5qn-python3-3.5.1/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/nix/store/lcmys8z90c568yngraa9s6g6glwzdihh-totem-3.20.1/lib/totem/plugins/opensubtitles/opensubtitles.py", line 6, in <module>
    gi.require_version('Totem', '1.0')
  File "/nix/store/l57qb8rir38kfdqjykrnvi1yk1xd070k-pygobject-3.20.0/lib/python3.5/site-packages/gi/__init__.py", line 102, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Totem not available

(totem:24574): libpeas-WARNING **: Error loading plugin 'opensubtitles'

(totem:24574): Grilo-WARNING **: [dleyna] grl-dleyna-servers-manager.c:138: Unable to fetch the list of available servers: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.intel.dleyna-server was not provided by any .service files

(totem:24574): libpeas-WARNING **: Error importing plugin 'pythonconsole':
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 890, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/w9gwivwr7ih57b4y1dfhv64xy316p5qn-python3-3.5.1/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/nix/store/lcmys8z90c568yngraa9s6g6glwzdihh-totem-3.20.1/lib/totem/plugins/pythonconsole/pythonconsole.py", line 39, in <module>
    from gi.repository import GObject, Peas, Gtk, Totem # pylint: disable-msg=E0611
  File "/nix/store/l57qb8rir38kfdqjykrnvi1yk1xd070k-pygobject-3.20.0/lib/python3.5/site-packages/gi/importer.py", line 127, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name Totem, introspection typelib not found

(totem:24574): libpeas-WARNING **: Error loading plugin 'pythonconsole'

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
_______________________________________________
libpeas-list mailing list
libpeas-list gnome org
https://mail.gnome.org/mailman/listinfo/libpeas-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]