Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work w/ python3.7b2+ (today's) #65

Closed
yarko opened this issue Mar 1, 2018 · 4 comments
Closed

doesn't work w/ python3.7b2+ (today's) #65

yarko opened this issue Mar 1, 2018 · 4 comments

Comments

@yarko
Copy link

yarko commented Mar 1, 2018

from requests_http import HTTPSession
...
  File "/usr/local/lib/python3.7/site-packages/websockets/client.py", line 20, in <module>
    from .protocol import WebSocketCommonProtocol

  File "/usr/local/lib/python3.7/site-packages/websockets/protocol.py", line 18, in <module>
    from .compatibility import asyncio_ensure_future

  File "/usr/local/lib/python3.7/site-packages/websockets/compatibility.py", line 15
    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Posted here for tracking purposes... (seems to import into 3.6 fine)

@kennethreitz
Copy link
Collaborator

interesting

@cschramm
Copy link

cschramm commented Mar 1, 2018

That's in issue in the websockets package. async became a proper keyword in Python 3.7 and the asyncio.async alias has been removed.

@cschramm
Copy link

cschramm commented Mar 1, 2018

...and it's fixed: python-websockets/websockets#323

@yarko
Copy link
Author

yarko commented Mar 1, 2018

Thanks - I was a little confused - first: this was merged in websockets in (?) December, and second: updating from pip didn't change this.

However, cloning requests and websockets, both, and installing from master works (for this).

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2019
The present version was not compatible with python 3.7 because async is
now the proper keyword. The reported werror was:

    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Issues like this one: psf/requests-html#65
explains the reason of that.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
macpijan added a commit to 3mdeb/meta-openembedded that referenced this issue Aug 11, 2019
The present version was not compatible with python 3.7 because async is
now the proper keyword. The reported werror was:

    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Issues like this one: psf/requests-html#65
explains the reason of that.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2019
The present version was not compatible with python 3.7 because async is
now the proper keyword. The reported werror was:

    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Issues like this one: psf/requests-html#65
explains the reason of that.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2019
The present version was not compatible with python 3.7 because async is
now the proper keyword. The reported werror was:

    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Issues like this one: psf/requests-html#65
explains the reason of that.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/meta-openembedded that referenced this issue Aug 28, 2019
Source: meta-openembedded
MR: 00000
Type: Integration
Disposition: Merged from meta-openembedded
ChangeID: 21e5369
Description:

The present version was not compatible with python 3.7 because async is
now the proper keyword. The reported werror was:

    asyncio_ensure_future = asyncio.async           # Python < 3.5
                                        ^
SyntaxError: invalid syntax

Issues like this one: psf/requests-html#65
explains the reason of that.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants