Solved Include system libraries in python
#1
Hello everyone,
I'am trying to integrate Asterisk with XBMC using PJSIP ( pjsip.org ),
So far i have managed to compile and build PJSIP on the OS and can import it into a python script from the OS (using a shell)

But when i try to import it into a python script from XBMC it doesn't see it as if the library never existed which makes me think that XBMC doesn't check paths like /usr/lib or /usr/local/lib for its python libraries how can i add those paths to XBMC to check as i need to import PJSIP into XBMC

I have tried copy/paste the library into my script and import it but XBMC gave a different error about its dependencies which exists on the OS libraries not XBMC's

Error Before copy/paste:
Code:
ImportError: No module named pjsua


Error After copy/paste:
Code:
ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

Note that libSDL2-2.0.so.0 exists on the system in /usr/local/lib and the script executes normally when run from a shell.

Any help would be appreciated,
Thanks.
I wrote a program to program my program ! - programception.
Reply
#2
UPDATE: I managed to get it to work by copying all the dependency files that exists in /usr/local/lib into /urs/lib and the python script worked from inside XBMC.

Somehow reading your own post can solve your problems Big Grin
Thanks anyways.
I wrote a program to program my program ! - programception.
Reply

Logout Mark Read Team Forum Stats Members Help
Include system libraries in python0