[SIP Beyond VoIP] sipsimple build problems

Adrian Georgescu ag at ag-projects.com
Tue Sep 20 09:12:42 CEST 2011


Which dns-python version do you have?


On Sep 20, 2011, at 9:10 AM, Perazim wrote:

> Thanks. 
> 
> Now blink starts with the following errors. I can try to call another
> sip address but Blink hangs with "Looking up Destination". Here is
> output from terminal where I started Blink:
> 
> [yossi at travelmate blink-qt]$ blink
> using set_wakeup_fd
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line
> 796, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/proc.py", line 571, in _run
>    result = function(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 485,
> in _run
>    handler(command)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 501,
> in _CH_probe_dns
>    answer = resolver.query(self.probed_domain, rdatatype.NAPTR)
>  File "/usr/lib/python2.7/site-packages/dns/resolver.py", line 653, in
> query
>    source=source)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 197, in udp
>    _wait_for_writable(s, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 137, in
> _wait_for_writable
>    _wait_for(s, False, True, True, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 110, in
> _wait_for
>    if not _polling_backend(fd, readable, writable, error, timeout):
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 61, in
> _poll_for
>    event_mask |= select.POLLOUT
> AttributeError: 'module' object has no attribute 'POLLOUT'
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line
> 796, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 202, in _do_send
>    waiter.throw(*exc)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/proc.py", line 571, in _run
>    result = function(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/account/__init__.py",
> line 162, in _run
>    handler(command)
>  File "/usr/lib/python2.7/site-packages/sipsimple/account/__init__.py",
> line 194, in _CH_register
>    routes = lookup.lookup_sip_proxy(uri,
> settings.sip.transport_list).wait()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 153, in wait
>    return api.get_hub().switch()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/hubs/twistedr.py", line 128, in switch
>    return self.greenlet.switch()
>  File "/usr/lib/python2.7/site-packages/sipsimple/threading/green.py",
> line 64, in wrapped_func
>    result = func(*args, **kwargs)
>  File "<string>", line 1, in lookup_sip_proxy
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 72,
> in wrapper
>    result = func(obj, *args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 294,
> in lookup_sip_proxy
>    pointers = self._lookup_naptr_record(resolver, uri.host,
> naptr_services, log_context=log_context)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 415,
> in _lookup_naptr_record
>    answer = resolver.query(domain, rdatatype.NAPTR)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 131,
> in query
>    return dns.resolver.Resolver.query(self, *args, **kw)
>  File "/usr/lib/python2.7/site-packages/dns/resolver.py", line 653, in
> query
>    source=source)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 197, in udp
>    _wait_for_writable(s, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 137, in
> _wait_for_writable
>    _wait_for(s, False, True, True, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 110, in
> _wait_for
>    if not _polling_backend(fd, readable, writable, error, timeout):
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 61, in
> _poll_for
>    event_mask |= select.POLLOUT
> AttributeError: 'module' object has no attribute 'POLLOUT'
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line
> 796, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 202, in _do_send
>    waiter.throw(*exc)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/proc.py", line 571, in _run
>    result = function(*args, **kwargs)
>  File
> "/usr/lib/python2.7/site-packages/sipsimple/account/xcap/__init__.py",
> line 1089, in _run
>    handler(command)
>  File
> "/usr/lib/python2.7/site-packages/sipsimple/account/xcap/__init__.py",
> line 1155, in _CH_initialize
>    uri =
> random.choice(lookup.lookup_xcap_server(self.account.uri).wait())
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 153, in wait
>    return api.get_hub().switch()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/hubs/twistedr.py", line 128, in switch
>    return self.greenlet.switch()
>  File "/usr/lib/python2.7/site-packages/sipsimple/threading/green.py",
> line 64, in wrapped_func
>    result = func(*args, **kwargs)
>  File "<string>", line 1, in lookup_xcap_server
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 72,
> in wrapper
>    result = func(obj, *args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 343,
> in lookup_xcap_server
>    answer = resolver.query(record_name, rdatatype.TXT)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 131,
> in query
>    return dns.resolver.Resolver.query(self, *args, **kw)
>  File "/usr/lib/python2.7/site-packages/dns/resolver.py", line 653, in
> query
>    source=source)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 197, in udp
>    _wait_for_writable(s, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 137, in
> _wait_for_writable
>    _wait_for(s, False, True, True, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 110, in
> _wait_for
>    if not _polling_backend(fd, readable, writable, error, timeout):
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 61, in
> _poll_for
>    event_mask |= select.POLLOUT
> AttributeError: 'module' object has no attribute 'POLLOUT'
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line
> 796, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 202, in _do_send
>    waiter.throw(*exc)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/proc.py", line 571, in _run
>    result = function(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/account/__init__.py",
> line 431, in _subscription_handler
>    routes = lookup.lookup_sip_proxy(uri,
> settings.sip.transport_list).wait()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 153, in wait
>    return api.get_hub().switch()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/hubs/twistedr.py", line 128, in switch
>    return self.greenlet.switch()
>  File "/usr/lib/python2.7/site-packages/sipsimple/threading/green.py",
> line 64, in wrapped_func
>    result = func(*args, **kwargs)
>  File "<string>", line 1, in lookup_sip_proxy
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 72,
> in wrapper
>    result = func(obj, *args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 294,
> in lookup_sip_proxy
>    pointers = self._lookup_naptr_record(resolver, uri.host,
> naptr_services, log_context=log_context)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 415,
> in _lookup_naptr_record
>    answer = resolver.query(domain, rdatatype.NAPTR)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 131,
> in query
>    return dns.resolver.Resolver.query(self, *args, **kw)
>  File "/usr/lib/python2.7/site-packages/dns/resolver.py", line 653, in
> query
>    source=source)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 197, in udp
>    _wait_for_writable(s, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 137, in
> _wait_for_writable
>    _wait_for(s, False, True, True, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 110, in
> _wait_for
>    if not _polling_backend(fd, readable, writable, error, timeout):
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 61, in
> _poll_for
>    event_mask |= select.POLLOUT
> AttributeError: 'module' object has no attribute 'POLLOUT'
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line
> 796, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 202, in _do_send
>    waiter.throw(*exc)
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/api.py", line 234, in _spawn_startup
>    return cb(*args, **kw)
>  File "/usr/lib/python2.7/site-packages/sipsimple/application.py", line
> 306, in _detect_nat_type
>    stun_servers = lookup.lookup_service(SIPURI(host=stun_item),
> 'stun').wait()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/coros.py", line 153, in wait
>    return api.get_hub().switch()
>  File
> "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/hubs/twistedr.py", line 128, in switch
>    return self.greenlet.switch()
>  File "/usr/lib/python2.7/site-packages/sipsimple/threading/green.py",
> line 64, in wrapped_func
>    result = func(*args, **kwargs)
>  File "<string>", line 1, in lookup_service
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 72,
> in wrapper
>    result = func(obj, *args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 200,
> in lookup_service
>    services = self._lookup_srv_records(resolver, [record_name],
> log_context=log_context)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 396,
> in _lookup_srv_records
>    answer = resolver.query(srv_name, rdatatype.SRV)
>  File "/usr/lib/python2.7/site-packages/sipsimple/lookup.py", line 131,
> in query
>    return dns.resolver.Resolver.query(self, *args, **kw)
>  File "/usr/lib/python2.7/site-packages/dns/resolver.py", line 653, in
> query
>    source=source)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 197, in udp
>    _wait_for_writable(s, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 137, in
> _wait_for_writable
>    _wait_for(s, False, True, True, expiration)
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 110, in
> _wait_for
>    if not _polling_backend(fd, readable, writable, error, timeout):
>  File "/usr/lib/python2.7/site-packages/dns/query.py", line 61, in
> _poll_for
>    event_mask |= select.POLLOUT
> AttributeError: 'module' object has no attribute 'POLLOUT'
> 
> 
> 
> On Tue, 2011-09-20 at 08:29 +0200, Adrian Georgescu wrote:
>> On Sep 20, 2011, at 7:30 AM, Perazim wrote:
>> 
>>> Got to the bottom of at least some of this confusion: When I began
>>> building this, I downloaded version 18.2. During this time of trying to
>>> get this to build, version 19.0 came out. 18.2 does not have the
>>> dependencies.txt file. 
>>> 
>>> Fixing this, I also now installed python-msrplib and python-xcaplib as
>>> required. There does not appear to be any python-backports module in the
>>> advertised location: http://download.ag-projects.com/SipClient/
>>> 
>> 
>> Fixed
>> 
>> 
>>> 
>>> Perazim
>>> 
>>> On Mon, 2011-09-19 at 12:46 +0200, Adrian Georgescu wrote:
>>>> Python-sipsimple works fine with python 2.7 and this is also documented. You simply skip reading the documentation which tell you the exact URL where to fetch the required packages from including python-backports. A simple grep command in the docs/ folder gives you the urls.
>>>> 
>>>> Just read docs/Dependencies.txt
>>>> 
>>>> Adrian
>>>> 
>>>> 
>>>> On Sep 19, 2011, at 12:36 PM, Perazim wrote:
>>>> 
>>>>> I located and installed correct greenlet but I still have the error
>>>>> because blink is not finding module backports.weakref. I cannot find
>>>>> this in the Fedora 14 repositories nor anything similar in name. From
>>>>> reading some python docs, it seems that this is some kind of module that
>>>>> allows interoperability between different versions of python. Fedora 14
>>>>> uses python-2.7 whereas blink references using version 2.5 and 2.6. 
>>>>> 
>>>>> Do you have any understanding of the python implementation differences
>>>>> between Fedora 14 rpm based system and the Debian deb based system?
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Perazim
>>>>> 
>>>>> 
>>>>> 
>>>>> [yossi at travelmate blink-qt]$ blink
>>>>> using set_wakeup_fd
>>>>> Traceback (most recent call last):
>>>>> File "/usr/bin/blink", line 24, in <module>
>>>>>  from blink import Blink
>>>>> File "/usr/lib/python2.7/site-packages/blink/__init__.py", line 26, in
>>>>> <module>
>>>>>  from sipsimple.account import Account, AccountManager,
>>>>> BonjourAccount
>>>>> File "/usr/lib/python2.7/site-packages/sipsimple/account/__init__.py",
>>>>> line 37, in <module>
>>>>>  from sipsimple.configuration import ConfigurationManager, Setting,
>>>>> SettingsGroup, SettingsObject, SettingsObjectID, SettingsSingleton
>>>>> File
>>>>> "/usr/lib/python2.7/site-packages/sipsimple/configuration/__init__.py",
>>>>> line 19, in <module>
>>>>>  from backports.weakref import WeakSet
>>>>> ImportError: No module named backports.weakref
>>>>> [yossi at travelmate blink-qt]$ 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On Mon, 2011-09-19 at 11:58 +0200, Adrian Georgescu wrote:
>>>>>>> I had newer version of eventlet installed. Removed it (fedora-14 rpm)
>>>>>>> and installed 0.8.11 from sources.
>>>>>>> 
>>>>>>> python-greenlet most current version is at 0.3.1. No 0.4.0 or
>>>>>>> development area can be found.
>>>>>>> 
>>>>>>> http://pypi.python.org/pypi/greenlet#downloads
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> The documentation explains where to fetch python-greenlet from, which is not the one you mention.
>>>>>> 
>>>>>> Adrian
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>> 
> 
> 
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
> 



More information about the SIPBeyondVoIP mailing list