Error when using PJSUA 2.6 Python module

BC
Bogdan Cristea
Mon, Apr 24, 2017 3:11 PM

Hi

I am trying to run on openSUSE Leap 42.1 x64 from Python. When I try to create a SIP account

lib.create_account(account_config)

I get the error below

Traceback (most recent call last):
File "gevent/_semaphore.py", line 101, in gevent._semaphore.Semaphore._notify_links (gevent/gevent._semaphore.c:2030)
link(self) # Must use Cython >= 0.23.4 on PyPy else this leaks memory
error: cannot switch to a different thread
(<built-in method switch of Greenlet object at 0x7f367d897f50>
<gevent.thread.LockType object at 0x7f367cfc57c0>) failed with error

Before calling the function above I have registered the current Python thread with

lib.thread_register(name)

I have used previously with success PJSUA Python module. Does anyone know how to solve this problem ?

thanks
Bogdan

Hi I am trying to run on openSUSE Leap 42.1 x64 from Python. When I try to create a SIP account lib.create_account(account_config) I get the error below Traceback (most recent call last): File "gevent/_semaphore.py", line 101, in gevent._semaphore.Semaphore._notify_links (gevent/gevent._semaphore.c:2030) link(self) # Must use Cython >= 0.23.4 on PyPy else this leaks memory error: cannot switch to a different thread (<built-in method switch of Greenlet object at 0x7f367d897f50> <gevent.thread.LockType object at 0x7f367cfc57c0>) failed with error Before calling the function above I have registered the current Python thread with lib.thread_register(name) I have used previously with success PJSUA Python module. Does anyone know how to solve this problem ? thanks Bogdan
VM
Viacheslav Mikerov
Tue, Apr 25, 2017 3:58 PM

Hi,

Have you called pjsua_create/init/start before adding an account? Sorry
these are the C signatures of the methods, I do not use Python.

Best,

On Mon, Apr 24, 2017 at 5:11 PM, Bogdan Cristea cristeab@gmail.com wrote:

Hi

I am trying to run on openSUSE Leap 42.1 x64 from Python. When I try to
create a SIP account

lib.create_account(account_config)

I get the error below

Traceback (most recent call last):
File "gevent/_semaphore.py", line 101, in gevent._semaphore.Semaphore._notify_links
(gevent/gevent._semaphore.c:2030)
link(self) # Must use Cython >= 0.23.4 on PyPy else this leaks memory
error: cannot switch to a different thread
(<built-in method switch of Greenlet object at 0x7f367d897f50>
<gevent.thread.LockType object at 0x7f367cfc57c0>) failed with error

Before calling the function above I have registered the current Python
thread with

lib.thread_register(name)

I have used previously with success PJSUA Python module. Does anyone know
how to solve this problem ?

thanks
Bogdan


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, Have you called pjsua_create/init/start before adding an account? Sorry these are the C signatures of the methods, I do not use Python. Best, On Mon, Apr 24, 2017 at 5:11 PM, Bogdan Cristea <cristeab@gmail.com> wrote: > Hi > > I am trying to run on openSUSE Leap 42.1 x64 from Python. When I try to > create a SIP account > > lib.create_account(account_config) > > I get the error below > > Traceback (most recent call last): > File "gevent/_semaphore.py", line 101, in gevent._semaphore.Semaphore._notify_links > (gevent/gevent._semaphore.c:2030) > link(self) # Must use Cython >= 0.23.4 on PyPy else this leaks memory > error: cannot switch to a different thread > (<built-in method switch of Greenlet object at 0x7f367d897f50> > <gevent.thread.LockType object at 0x7f367cfc57c0>) failed with error > > Before calling the function above I have registered the current Python > thread with > > lib.thread_register(name) > > > I have used previously with success PJSUA Python module. Does anyone know > how to solve this problem ? > > thanks > Bogdan > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >