[SIP Beyond VoIP] Source Compile / Install
Saúl Ibarra Corretgé
saul at ag-projects.com
Fri Sep 27 09:30:33 CEST 2013
On Sep 26, 2013, at 5:26 PM, David Hubbard wrote:
> An update
> I have got a little further - I realised that my changing of header file to
> #define PJMEDIA_AUDIO_DEV_HAS_ALSA 0
You can't just change that and hope things will work, python-sipsimple needs ALSA on Linux systems, it's a requirement, not optional. Did you install ALSA header files? (they are called libasound-dev on Debian-like systems).
> was actually done part way through compile/link - so some code was compiled with this set to 1 (items using the factory rather than providing).
> So I removed the simsimple folder and unpacked again
> As this header appears to be generated by the PJSIP configure stage I killed the setup just after this stage and made the change again, before re-running setup and getting a clean compile/install.
> Now when I run sylkserver I get
> Starting SylkServer 2.5.0, with no configuration file
> fatal error: failed to create SylkServer: cannot import name WeakSet
> Traceback (most recent call last):
> File "./sylk-server", line 68, in main
> from sylk.server import SylkServer
> File "/tmp/sylkserver/sylk/server.py", line 13, in <module>
> from sipsimple.account import Account, BonjourAccount, AccountManager
> File "/usr/lib64/python2.6/site-packages/sipsimple/account/__init__.py", line 25, in <module>
> from sipsimple.account.bonjour import BonjourServices, _bonjour
> File "/usr/lib64/python2.6/site-packages/sipsimple/account/bonjour/__init__.py", line 24, in <module>
> from sipsimple.configuration.settings import SIPSimpleSettings
> File "/usr/lib64/python2.6/site-packages/sipsimple/configuration/__init__.py", line 15, in <module>
> from weakref import WeakSet
> ImportError: cannot import name WeakSet
> Clearly a dependancy I'm missing somewhere
> I've found the "Dependencies.txt" and "Install.linux" docs in "./python-sipsimple-1.0.0/docs" - so I'm going to try a clean install following these a bit more closely for this module
Python 2.6 is no longer supported, you need Python 2.7.
Saúl Ibarra Corretgé
More information about the SIPBeyondVoIP