[Blink] RPM packaging of blink for Fedora and other distros

Perazim perazim at portugalmail.pt
Fri Nov 11 12:54:50 CET 2011


1) When you get this to work with dnspython-1.9.4 then I will test it
against python-dns-1.9.4 in Fedora. This package, python-dns, is the
Fedora version of the debian dnspython. For some reason, the name was
changed and this has caused a lot of confusion. I am not referring to
pydns which is not compatible.

2) This is your answer when I first reported this: (I was using
python-2.7

On Oct 18, 2011, at 1:39 PM, Perazim wrote:

> Replace dnspython with 1.8.0
> 
> Got a little further. Can place a call put with poor audio and this
> output:
> 
> 
> 
> [yossi at travelmate bin]$ 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/coros.py", line 200, in _do_send
>    waiter.switch(result)
>  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 1163, in _CH_initialize
>    self.server_caps.fetch()
>  File
> "/usr/lib/python2.7/site-packages/sipsimple/account/xcap/__init__.py",
> line 112, in fetch
>    document = self.manager.client.get(self.application,
> etagnot=self.etag, globaltree=self.global_tree, headers={'Accept':
> self.payload_type.content_type}, filename=self.filename)
>  File "/usr/lib/python2.7/site-packages/xcaplib/client.py", line 145,
> in get
>    return make_resource_from_httpresponse(self._get(*args, **kwargs))
>  File "/usr/lib/python2.7/site-packages/xcaplib/client.py", line 117,
> in _get
>    return self.con.request('GET', path, headers=headers, etag=etag,
> etagnot=etagnot)
>  File "/usr/lib/python2.7/site-packages/xcaplib/httpclient.py", line
> 169, in request
>    response = self.opener.open(req)
>  File "/usr/lib/python2.7/urllib2.py", line 391, in open
>    response = self._open(req, data)
>  File "/usr/lib/python2.7/urllib2.py", line 409, in _open
>    '_open', req)
>  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
>    result = func(*args)
>  File
>
"/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/green/urllib2.py", line 87, in https_open
>    return self.do_open(httplib.HTTPSConnection, req)
>  File "/usr/lib/python2.7/urllib2.py", line 1116, in do_open
>    h = http_class(host, timeout=req.timeout) # will parse host:port
> TypeError: __init__() got an unexpected keyword argument 'timeout'
> 

Hum, looks like we need to fix some stuff for Python 2.7. I'll come back
to you one I've fixed it.

Thanks for the reports!


Regards,

--
Saúl Ibarra Corretgé
AG Projects

As I remember, it had something to do with compatibility with python-2.7
that had to be fixed in sipsimple or another of blink's deps.

3) [yossi at travelmate ~]$ python
Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from eventlet.green import select
>>> print select
<module 'eventlet.green.select' from
'/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/green/select.pyc'>
>>> print select.POLLOUT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'POLLOUT'
>>> 


If I can get these two issues resolved then I think we will have a
packaged version of Blink and its dependencies that can be installed
automatically by yum.

Let me know if you need anything else.

Perazim


On Fri, 2011-11-11 at 09:47 +0100, Saúl Ibarra Corretgé wrote:
> Hi,
> 
> On Oct 18, 2011, at 1:39 PM, Perazim wrote:
> 
> > Replace dnspython with 1.8.0
> > 
> > Got a little further. Can place a call put with poor audio and this
> > output:
> > 
> > 
> > 
> > [yossi at travelmate bin]$ 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/coros.py", line 200, in _do_send
> >    waiter.switch(result)
> >  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 1163, in _CH_initialize
> >    self.server_caps.fetch()
> >  File
> > "/usr/lib/python2.7/site-packages/sipsimple/account/xcap/__init__.py",
> > line 112, in fetch
> >    document = self.manager.client.get(self.application,
> > etagnot=self.etag, globaltree=self.global_tree, headers={'Accept':
> > self.payload_type.content_type}, filename=self.filename)
> >  File "/usr/lib/python2.7/site-packages/xcaplib/client.py", line 145,
> > in get
> >    return make_resource_from_httpresponse(self._get(*args, **kwargs))
> >  File "/usr/lib/python2.7/site-packages/xcaplib/client.py", line 117,
> > in _get
> >    return self.con.request('GET', path, headers=headers, etag=etag,
> > etagnot=etagnot)
> >  File "/usr/lib/python2.7/site-packages/xcaplib/httpclient.py", line
> > 169, in request
> >    response = self.opener.open(req)
> >  File "/usr/lib/python2.7/urllib2.py", line 391, in open
> >    response = self._open(req, data)
> >  File "/usr/lib/python2.7/urllib2.py", line 409, in _open
> >    '_open', req)
> >  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
> >    result = func(*args)
> >  File
> > "/usr/lib/python2.7/site-packages/eventlet-0.8.11-py2.7.egg/eventlet/green/urllib2.py", line 87, in https_open
> >    return self.do_open(httplib.HTTPSConnection, req)
> >  File "/usr/lib/python2.7/urllib2.py", line 1116, in do_open
> >    h = http_class(host, timeout=req.timeout) # will parse host:port
> > TypeError: __init__() got an unexpected keyword argument 'timeout'
> > 
> 
> A new version of dnspython (1.9.4) just got into Debian unstable, so I'm now able to test this out. I also have Python 2.7 as the default, but I'm unable to reproduce this.
> 
> Can you please give me some details on how you get this exception? Also, please run this on your python interpreter:
> 
> from eventlet.green import select
> print select
> print select.POLLOUT
> 
> 
> Thanks and regards,
> 
> --
> Saúl Ibarra Corretgé
> AG Projects
> 
> 
> 





More information about the Blink mailing list