Syntax error while importing PdfApi


I have installed the aspose PDF SDK for python using pip install asposepdfcloud. I am getting the following error while importing the modules.

Error :
from asposepdfcloud.PdfApi import PdfApi
File “/usr/local/lib/python2.7/site-packages/asposepdfcloud/”, line 9, in
from ApiClient import ApiException
File “/usr/local/lib/python2.7/site-packages/asposepdfcloud/”, line 222
for key, val in obj.dict.iteritems()
SyntaxError: invalid syntax

I am using Python 2.6
Can anyone please confirm if this python SDK works only for Python 2.7 or lower versions of python as well?



Thank you for contacting Aspose Support.

The SDK has been tested against Python v2.7 and higher. I have logged a request in our internal tracking software to provide support for Python v2.6. We’ll update you here once there is some information or a fix version available in this regard.

This SDK is open source and hosted at GitHub. Please feel free if you would like to make any change in the source code.