I'm getting the below error while trying to import python module pjsua. I have Mac OS 10.8.1 version. I verified the solution provided in http://www.darrensessions.com/?p=292 and the solution seemed to have fixed this issue in MacOS-10.7. Seems like this is broken again for MacOS-10.8. I did not got any errors when compiling the code. Only get the below error when importing PJSUA module.
>>> import pjsua
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pjsua.py", line 59, in <module>
import _pjsua
ImportError: dlopen(/Library/Python/2.7/site-packages/_pjsua.so, 2): Symbol not found: _AudioOutputUnitStart
Referenced from: /Library/Python/2.7/site-packages/_pjsua.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/_pjsua.so
Your help in highly appreciated. Thanks,
This error was recently fixed as showed above in PJSIP 2.4 python package:
The funny thing is that I run in the same error:
not understanding why since the Python setup.py script checking the platform version seems to be fine:
One straight-forward solution would be (purely theoretical, haven't tested):
See, where the patch says:
Change line
to
Recompile
-- edit --
Ok, I patched it as I suggested and: