Isilon / isilon_sdk

Official repository for isilon_sdk. All language bindings are available for download under the 'Releases' tab.
MIT License
50 stars 21 forks source link

Python3.7 compatibility: async is a reserved keyword #72

Closed justintwr closed 4 years ago

justintwr commented 6 years ago

While trying to import the library with python3.7, the following error occurs:

    import isi_sdk_8_1_0
  File "C:\Users\ricej4\AppData\Roaming\Python\Python37\site-packages\isi_sdk_8_1_0\__init__.py", line 19, in <module>
    from isi_sdk_8_1_0.api.antivirus_api import AntivirusApi
  File "C:\Users\ricej4\AppData\Roaming\Python\Python37\site-packages\isi_sdk_8_1_0\api\__init__.py", line 6, in <module>
    from isi_sdk_8_1_0.api.antivirus_api import AntivirusApi
  File "C:\Users\ricej4\AppData\Roaming\Python\Python37\site-packages\isi_sdk_8_1_0\api\antivirus_api.py", line 129
    async=params.get('async'),
        ^
SyntaxError: invalid syntax
Atomicology commented 6 years ago

This issue has been filed in the Python specific repo as well: https://github.com/Isilon/isilon_sdk_python/issues/9

nalinkanwar commented 4 years ago

Fixed in Isilon SDK v0.2.11.

NOTE: due to the nature of the fix, any existing scripts which were using the 'async' keyword needs to be updated. This keyword has been replaced by 'async_req' now.