Page 1 of 1

awasu-api version on PyPi

Posted: Fri Feb 16, 2018 7:25 pm
by kevotheclone
The awasu-api version at https://pypi.python.org/pypi/awasu_api/ is still the original version 1.0 from 2015.
Can you upgrade https://pypi.python.org/pypi/awasu_api/ to the 2017 version (also tagged 1.0) from GitHub https://github.com/awasu/awasu_api, so that pip install awasu-api will install the latest, Python 3 compatible version?

Right now in Python 3.6.4, SyntaxError: invalid syntax occurs at:

Code: Select all

Traceback (most recent call last):
  File "frequency.py", line 13, in <module>
    from awasu_api import AwasuApi
  File "C:\Users\Kevin\DOCUME~1\Prog\Awasu\APPLIC~1\RFM\env\lib\site-packages\awasu_api\__init__.py", line 34, in <module>
    from awasu_api.api import AwasuApi , AwasuApiException
  File "C:\Users\Kevin\DOCUME~1\Prog\Awasu\APPLIC~1\RFM\env\lib\site-packages\awasu_api\api.py", line 329
    except AwasuApiException , xcptn :
                             ^
In the GitHub version this code has beeen updated to except AwasuApiException as xcptn :

Thanks in advance for this update! :D
No immediate hurry on this for my sake as I'm now working with the updated, GitHub version.

Re: awasu-api version on PyPi

Posted: Fri Feb 16, 2018 11:33 pm
by support
Ah, I was wondering if/when somebody would notice this :-) IIRC, I deliberately didn't update PyPi because I wasn't really happy with the new version that support both Python 2 and 3. I realized that there are a lot of subtle semantic differences in string handling and trying to write code that transparently handles both old- and new-style strings is risky.

Give the Github version a spin, especially with lots of non-ASCII content :-), and if it holds up, I'll update the PyPi version.