Post Reply
User avatar
Posts: 245
Joined: Mon Sep 08, 2008 7:16 pm
Location: Elk Grove, California

awasu-api version on PyPi

Post by kevotheclone » Fri Feb 16, 2018 7:25 pm

The awasu-api version at is still the original version 1.0 from 2015.
Can you upgrade to the 2017 version (also tagged 1.0) from GitHub, 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 "", 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\", 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\", 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.

User avatar
Site Admin
Posts: 3068
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia

Re: awasu-api version on PyPi

Post by support » Fri Feb 16, 2018 11:33 pm

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.

Post Reply

Return to “Awasu - Extensions”