Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597882 - dev-python/pyzmq-15.2.0 with python2.7 - /usr/lib64/python2.7/site-packages/zmq/auth/asyncio.py: SyntaxError: invalid syntax
Summary: dev-python/pyzmq-15.2.0 with python2.7 - /usr/lib64/python2.7/site-packages/z...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 14:58 UTC by eroen
Modified: 2017-01-18 16:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2016-10-23 14:58:49 UTC
eroen@occam ~ $ python2
Python 2.7.12 (default, Sep 21 2016, 10:18:20) 
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zmq.auth.asyncio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/zmq/auth/asyncio.py", line 28
    events = yield from self.__poller.poll()
                      ^
SyntaxError: invalid syntax
>>> 
eroen@occam ~ $ python3
Python 3.5.2 (default, Sep 21 2016, 10:39:35) 
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zmq.auth.asyncio
>>>
Comment 1 dwfreed 2016-10-23 17:30:50 UTC
asyncio does not support python 2.7, and the syntax in question wasn't added until python 3.3.
Comment 2 eroen 2016-10-23 19:08:09 UTC
(In reply to dwfreed from comment #1)
> asyncio does not support python 2.7, and the syntax in question wasn't added
> until python 3.3.

Heh indeed, my surprise and concern is that known-broken modules are installed. Please feel free to close the bug if you don't think it's an issue.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2016-10-25 20:24:31 UTC
Upstream fixed it in pyzmq 15.4.0 by not installing these modules for older versions of Python:
https://github.com/zeromq/pyzmq/commit/2670e9a1ddd6dc1f83878bc936e18aaea3f50170

(The newest available version is 16.0.0.)
Comment 4 Mike Gilbert gentoo-dev 2017-01-18 16:27:36 UTC
This should not block the stablereq; just don't import that module on python2.7.