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

async has become a reserved keyword in Python 3.7 #78

Closed
kbeckmann opened this issue Nov 22, 2018 · 0 comments
Closed

async has become a reserved keyword in Python 3.7 #78

kbeckmann opened this issue Nov 22, 2018 · 0 comments
Labels
software Component: software
Milestone

Comments

@kbeckmann
Copy link
Contributor

kbeckmann commented Nov 22, 2018

When running the software with Python 3.7 the async parameter names that are used here and there are causing syntax errors. It seems that async has become a keyword in 3.7, and you're not alone with this problem.

[root@ab562ebac623 software]# python --version
Python 3.7.1
[root@ab562ebac623 software]# python -m glasgow.cli
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/Glasgow/software/glasgow/cli.py", line 18, in <module>
    from .target.hardware import GlasgowHardwareTarget
  File "/opt/Glasgow/software/glasgow/target/hardware.py", line 11, in <module>
    from ..gateware.fx2 import FX2Arbiter
  File "/opt/Glasgow/software/glasgow/gateware/fx2.py", line 74
    def __init__(self, fifo, async=False, auto_flush=True):
                                 ^
SyntaxError: invalid syntax
@whitequark whitequark added the software Component: software label Nov 22, 2018
@whitequark whitequark added this to the Preview 1 milestone Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
software Component: software
Development

No branches or pull requests

2 participants