Open-MBEE / mms-alfresco

Model Management System
Apache License 2.0
30 stars 24 forks source link

Syntax error in mms-python-client 3.4.3 #346

Open bergmanngabor opened 4 years ago

bergmanngabor commented 4 years ago

Steps to reproduce

  1. Use Python 3.7 or 3.8 (although I think any version after 3.5 will lead to the same problem)
  2. Install mms-python-client 3.4.3 from https://pypi.org/project/mms-python-client/3.4.3/
  3. import mms-python-client

Expected behaviour

Import is successful

Observed behaviour

Syntax error, due to Python keyword async appearing as an identifier in the generated Python code.

  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/mms_python_client/api/artifact_api.py", line 137
    async=params.get('async'),
        ^
SyntaxError: invalid syntax

Triage

Used to work correctly with mms-python-client 3.4.2.1

See also

https://github.com/OpenAPITools/openapi-generator/issues/7119

HuiJun commented 3 years ago

Thank you for the bug report. This seems to be related to async being a keyword now in python 3. We will fix this before the full 3.4.3 release.