[PKG-Openstack-devel] Bug#881448: Bug#881448: Bug#881448: python-eventlet fails to install on amd64: SyntaxError: invalid syntax

Ondrej Novy novy at ondrej.org
Sun Nov 12 22:00:09 UTC 2017


So you uploaded package without run of autopkgtest, which can check if
package works and without even trying to install that package? So just
blindly upgrade from upstream and upload? Huh.

2017-11-12 9:50 GMT+01:00 Thomas Goirand <zigo at debian.org>:

> On 11/12/2017 08:51 AM, Chris Lamb wrote:
> > Hi,
> >
> >> python-eventlet fails to install on amd64: SyntaxError: invalid syntax
> >
> >   Sat 11 18:37 < zigo> In Python 2, with what I just uploaded for
> python-eventlet, I have these issues:
> >   Sat 11 18:37 < zigo> Setting up python-eventlet (0.20.0-1) ...
> >   Sat 11 18:37 < zigo>   File "/usr/lib/python2.7/dist-
> packages/eventlet/green/http/client.py", line 195
> >   Sat 11 18:37 < zigo>     _is_legal_header_name =
> re.compile(rb'[^:\s][^:\r\n]*\Z').match
> >   Sat 11 18:37 < zigo>
>           ^
> >   Sat 11 18:37 < zigo> SyntaxError: invalid syntax
> >   Sat 11 18:37 < zigo>   File "/usr/lib/python2.7/dist-
> packages/eventlet/green/http/cookiejar.py", line 1269
> >   Sat 11 18:37 < zigo>     yield from deepvalues(obj)
> >   Sat 11 18:37 < zigo>              ^
> >   Sat 11 18:37 < zigo> SyntaxError: invalid syntax
> >   Sat 11 18:37 < zigo> Does anyone know how to patch this?
> >   Sat 11 18:38 < zigo> It works perfectly in py3...
> >   Sat 11 18:40 < zigo> Looks like doing b'' for the string of the first
> issue is fixing the issue for py2, and works in py3.
> >   Sat 11 18:40 < zigo> I'm not sure for the yield though.
> >   Sat 11 18:44 < wRAR> of course you can't "fix" yield from for Python <
> 3.5
> >   Sat 11 18:45 < zigo> Hum... I fix I got it ! :)
> >   Sat 11 18:46 < wRAR> https://github.com/eventlet/
> eventlet/blob/master/eventlet/green/http/__init__.py#L56
> >   Sat 11 18:46 < wRAR> you don't need to fix the *code*
> >   Sat 11 18:47 < zigo> wRAR: I actually do...
> >   Sat 11 18:48 < wRAR> ok
> >   Sat 11 18:48 < wRAR> and for the first line do you mean you removed
> the r prefix?
> >   Sat 11 18:48 < zigo> wRAR: Yes. Is this wrong?
> >   Sat 11 18:48 < wRAR> do you know what does this prefix mean?
> >   Sat 11 18:49 < zigo> wRAR: I know what b means, not sure what rb does.
> >   Sat 11 18:49 < wRAR> I see
> >   Sat 11 18:49 < zigo> Which is why I'm asking in the channel.
> >   Sat 11 18:49 < wRAR> https://docs.python.org/3/
> library/stdtypes.html#text-sequence-type-str
> >   Sat 11 18:50 < wRAR> I guess you never wrote regulare expression code
> in Python?
> >   Sat 11 18:51 < zigo> Right.
> >   Sat 11 18:52 < zigo> Oh...
> >   Sat 11 18:52 < zigo> Indeed, removing r is a bad idea... :P
> >
> > ie. the maintainer is at least aware of the issue.
> >
> > Zigo, I just went to provide a patch of my own but I cannot find
> > the latest packaging corresponding to this version in the Vcs-Git
> > repository.
> >
> > Regards,
>
> That's nice of you Chris. We're currently not sure where to host the VCS
> of this package, and I'm not sure it's going to stay there. Anyway, I've
> currently pushed it to:
>
> /git/openstack/python/python-eventlet.git
>
> I've produced 2 patches already for it:
> fix-string-using-rb-in-python2.patch
> fix-yield-from-in-py2.patch
>
> though I'm not sure they are good enough, and they are certainly not
> enough (ie: after applying, there's still Py 2.7 compile problems).
>
> Thanks a lot for any help you may provide, Eventlet is a key package for
> OpenStack, and we need it for finishing this release. I tried upgrading
> to 0.20.0, because there's a problem with building Neutron, which seems
> to be related to this (ie: unit test fails to start with the older
> version 0.19.0).
>
> Cheers,
>
> Thomas Goirand (zigo)
>
> _______________________________________________
> Openstack-devel mailing list
> Openstack-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/openstack-devel
>



-- 
S pozdravem/Best regards
 Ondřej Nový

Email: novy at ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B
Jabber: onovy at njs.netlab.cz
ICQ: 115-674-713
Facebook: http://www.facebook.com/onovy
Tel/Cell: +420 777 963 207
Datová schránka: aypqr6c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20171112/c1d5d82d/attachment-0002.html>


More information about the Openstack-devel mailing list