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

Bytecode compilation issue in Python 2.7.x #123

Closed
yegorich opened this issue Jun 3, 2016 · 4 comments
Closed

Bytecode compilation issue in Python 2.7.x #123

yegorich opened this issue Jun 3, 2016 · 4 comments

Comments

@yegorich
Copy link

yegorich commented Jun 3, 2016

python -m compileall . produces following error in ./serial/aio.py:

Compiling ./serial/aio.py ...
  File "./serial/aio.py", line 366
    def open_serial_connection(*,
                                ^
SyntaxError: invalid syntax

Python 3.x compiles without error.

@zsquareplusc
Copy link
Member

Yes, that's Python 3 syntax. The module does not work with Python 2 anyway. But I can look if there is a workaround.

@zsquareplusc
Copy link
Member

Well if that is fixed, the next issue will be yield from...

@yegorich
Copy link
Author

yegorich commented Jun 4, 2016

Can you exclude aio.py from installation, when using Python 2?

@rob-smallshire
Copy link
Contributor

I've submitted #131 which modifies the install script to not install aio when running on Python 2. This will allow us to continue to use Python 3 syntax in the aio module, which will only ever work on Python 3.4+ anyway.

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