Skip to content
Advertisement

Python – how to get the import pjsua? giving no module named pjsua

How to get python pjsua?

JavaScript

EDIT:

p2p | registration | call

JavaScript

Advertisement

Answer

setup.py is trying to create shared library build/lib.linux-x86_64-2.7/_pjsua.so by dynamically linking pjsip’s libraries, but, those doesn’t provide a global offsets table(GOT) (check the link to see why this is needed).

The problem is that ./configure does not provide gcc’s -fPIC option, I would suggest creating a configure-linux script like:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement