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

2017-11-12 Thread Ondrej Novy
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 :

> 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-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/openstack-devel
>



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

Email: n...@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B
Jabber: on...@njs.netlab.cz
ICQ: 115-674-713
Facebook: http://www.facebook.com/onovy
Tel/Cell: +420 777 963 207
Datová schránka: aypqr6c


Bug#881448: python-eventlet fails to install on amd64: SyntaxError: invalid syntax

2017-11-12 Thread Thomas Goirand
On 11/12/2017 08:51 AM, Chris Lamb wrote:
> 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.

FYI, I've pushed 2 more patches, and now Eventlet can be installed even
in Python 2.7. I'd very much appreciate peer review on these 4 patches I
added. Once done, I'll merge the patches and upload.

Cheers,

Thomas Goirand (zigo)



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

2017-11-12 Thread Chris Lamb
Hi Thomas,

> 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

Assuming you mean the debian/pike branch:

 * Missing the pristine-tar branch

 * "debian-branch" in debian/gbp.conf needs updating

> fix-yield-from-in-py2.patch

That looks fine to me. Or at least, I did a similar thing in src:gunicorn
some time ago.

> fix-string-using-rb-in-python2.patch

I'm very skeptical about this one.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



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

2017-11-12 Thread Thomas Goirand
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)



Bug#881448: python-eventlet fails to install on amd64: SyntaxError: invalid syntax

2017-11-11 Thread Chris Lamb
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,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#881448: python-eventlet fails to install on amd64: SyntaxError: invalid syntax

2017-11-11 Thread Adrian Bunk
Package: python-eventlet
Version: 0.20.0-1
Severity: grave

Preparing to unpack .../python-eventlet_0.20.0-1_all.deb ...
Unpacking python-eventlet (0.20.0-1) ...
Setting up python-eventlet (0.20.0-1) ...
  File "/usr/lib/python2.7/dist-packages/eventlet/green/http/client.py", line 
195
_is_legal_header_name = re.compile(rb'[^:\s][^:\r\n]*\Z').match
   ^
SyntaxError: invalid syntax

  File "/usr/lib/python2.7/dist-packages/eventlet/green/http/cookiejar.py", 
line 1269
yield from deepvalues(obj)
 ^
SyntaxError: invalid syntax

dpkg: error processing package python-eventlet (--configure):
 installed python-eventlet package post-installation script subprocess returned 
error exit status 101