Help with >>import gnomedvb
#1
Hi,

i want to use the gnomedvb api of dvb-daemon in my plugin, but when i want to execute my Plugin it always says:

09:42:00 T:2812582800 M:663142400 NOTICE: import gnomedvb
09:42:00 T:2812582800 M:663142400 NOTICE: ImportError
09:42:00 T:2812582800 M:663142400 NOTICE: :
09:42:00 T:2812582800 M:663142400 NOTICE: No module named gnomedvb

But when i use it in a normal python-script, there is no error, when i call:

LD_LIBRARY_PATH=/home/trattnig/dvbdaemon/env/lib/ PYTHONPATH=/home/trattnig/dvbdaemon/env/lib/python2.6/site-packages/ python myScript.py

How can i add this external python module to my XBMC Plugin?

Thank you for helping,

greetings
Reply
#2
if it uses python above 2.4 then it's hopeless, xbmc only has 2.4 internally
Reply
#3
I think its python 2.5. But thats for the User-Interface of DVB Daemon.

http://live.gnome.org/DVBDaemon

I don't know if the daemon itself requires python 2.5, but i will find out.

Edit:

ok, i tried this, and the imports seem to work:

sys.path.append('/home/trattnig/dvbdaemon/env/lib/python2.6/site-packages/')
sys.path.append('/usr/share/python-support/python-dbus')
sys.path.append('/usr/lib/python-support/python-dbus/python2.6')
sys.path.append('/var/lib/python-support/python2.6/gtk-2.0')

import gnomedvb


But when i run the plugin:

/var/lib/python-support/python2.6/gtk-2.0/glib/__init__.py:30: RuntimeWarning: Python C API version mismatch for module glib._glib: This Python has API version 1012, module glib._glib has version 1013


and xbmc terminates...
Reply

Logout Mark Read Team Forum Stats Members Help
Help with >>import gnomedvb0