[SIP Beyond VoIP] 64 bit Debian install problems

Owen Lynch owen.lynch at paragon.co.nz
Tue Sep 11 01:40:33 CEST 2012


Hmm, now I get the following exception from 'sip-register' when
registration fails:

error: Exception occured in observer <__main__.RegistrationApplication
object at 0x3379890> while handling notification
'SIPAccountRegistrationDidFail'
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/application/notification.py", line
216, in post_notification
    observer.handle_notification(notification)
  File "<string>", line 1, in handle_notification
  File "/usr/lib/python2.6/dist-packages/sipsimple/threading/__init__.py",
line 100, in wrapper
    func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/sipsimple/application.py", line
342, in handle_notification
    handler(notification)
  File "/usr/bin/sip-register", line 251, in
_NH_SIPAccountRegistrationDidFail
    self.output.put('%s Failed to register contact for sip:%s: %s (retrying
in %.2f seconds)\n' % (datetime.now().replace(microsecond=0),
self.account.id, notification.data.error, notification.data.timeout))
AttributeError: 'NotificationData' object has no attribute 'timeout'

Package versions:
owenl at debianvm1:~$ python -c "import application; print
application.__version__"
1.4.0
owenl at debianvm1:~$ python -c "import sipsimple; print sipsimple.__version__"
0.30.0



On 11 September 2012 08:59, Owen Lynch <owen.lynch at paragon.co.nz> wrote:

> I have fixed it now by manually installing msrplib again:
>
> owenl at debianvm1:~/sipsimpleclient/python-msrplib$ sudo python setup.py
> install --record files.txt
>
> owenl at debianvm1:~$ python -c "import msrplib; print msrplib.__version__"
> 0.15.0
>
> Is it OK to mix this with other packages installed via apt-get, i.e. will
> msrplib be automatically upgraded next time via apt-get install
> python-sipsimple?
>
> Thanks,
> Owen
>
> On 11 September 2012 08:36, Owen Lynch <owen.lynch at paragon.co.nz> wrote:
>
>> Hi Saul,
>>
>> yes, I had previously installed it from source(along with all the other
>> packages):
>>
>> owenl at debianvm1:~$ python -c "import msrplib; print msrplib.__version__"
>> 0.14.2
>>
>> Can you advise on how best to clean these out so I can guarantee a clean
>> install via apt-get?
>>
>> Thanks,
>> Owen
>>
>> On 10 September 2012 19:53, Saúl Ibarra Corretgé <saul at ag-projects.com>wrote:
>>
>>> Hi,
>>>
>>> On Sep 10, 2012, at 12:52 AM, Owen Lynch wrote:
>>>
>>> > I am still having problems with the sipsimple 0.30 install. Installed
>>> packages are:
>>> > Unpacking python-sipsimple (from
>>> .../python-sipsimple_0.30.0squeeze_amd64.deb) ...
>>> > Setting up python-backports (1.0.0squeeze) ...
>>> > Setting up python-greenlet (0.4.1squeeze) ...
>>> > Setting up python-eventlib (0.1.0squeeze) ...
>>> > Setting up python-msrplib (0.15.0squeeze) ...
>>> > Setting up python-xcaplib (1.0.17squeeze) ...
>>> > Setting up python-sipsimple (0.30.0squeeze) ...
>>> >
>>> > But client commands fail. It seems that msrplib depends on eventlet,
>>> but that has now been replaced by eventlib?
>>> >
>>> > owenl at debianvm1:~$ sip-publish-presence -h
>>> > using set_wakeup_fd
>>> > Traceback (most recent call last):
>>> >   File "/usr/bin/sip-publish-presence", line 32, in <module>
>>> >     from sipsimple.application import SIPApplication
>>> >   File "/usr/lib/python2.6/dist-packages/sipsimple/application.py",
>>> line 33, in <module>
>>> >     from sipsimple.session import SessionManager
>>> >   File "/usr/lib/python2.6/dist-packages/sipsimple/session.py", line
>>> 39, in <module>
>>> >     from sipsimple.streams import AudioStream, MediaStreamRegistry,
>>> InvalidStreamError, UnknownStreamError
>>> >   File
>>> "/usr/lib/python2.6/dist-packages/sipsimple/streams/__init__.py", line 99,
>>> in <module>
>>> >     from sipsimple.streams import rtp, msrp
>>> >   File "/usr/lib/python2.6/dist-packages/sipsimple/streams/msrp.py",
>>> line 37, in <module>
>>> >     from msrplib.connect import DirectConnector, DirectAcceptor,
>>> RelayConnection, MSRPRelaySettings
>>> >   File "/usr/local/lib/python2.6/dist-packages/msrplib/connect.py",
>>> line 50, in <module>
>>> >     from eventlet.twistedutil.protocol import GreenClientCreator,
>>> SpawnFactory
>>> > ImportError: No module named eventlet.twistedutil.protocol
>>> >
>>>
>>> Hum, that should not happen. I checked the sources used for creating the
>>> packages and they are already adapted for the eventlet substitution. Did
>>> you evenr install python-msrplib manually?
>>>
>>> Also, what is the displayed output for this command?
>>>
>>> python -c "import msrplib; print msrplib.__version__"
>>>
>>>
>>> Regards,
>>>
>>> --
>>> Saúl Ibarra Corretgé
>>> AG Projects
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120911/7e3072f6/attachment-0001.html>


More information about the SIPBeyondVoIP mailing list