cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4670
Views
1
Helpful
2
Replies

Python API errors

adamba
Level 1
Level 1

Hi all,

Still trying to run my first Python SDK API command, bou until now without sueccess. I'm confortable with postman Rest IP, but my focus is to make the shift image.png to Python.

Please find below the error message I received while trying to run the SDK python script.

Any help is really welcome

Regrards,.

Bayet,

1 Accepted Solution
2 Replies 2

For whatever reason, it does not like Version 2 when I run the code. I changed it to run on Version 3 and it worked.

Using VSC and the code runner you are utilizing. Try running the following Commands to determine what version it is using to execute to script:

import sys
print(sys.version_info)

If you are using Code Runner on VSC, you want to add the following to the settings.json file:

"code-runner.executorMap": {
        "python": "<fully qualified path to version 3>"
 }

This will change the default python version for Code Runner to Version 3.

I usually use Atom and didn't have any problems. I installed VSC and tried it with Code Runner and immediately had issues. I had already pointed Atom to use python3, when I used other methods to run it on 2 I got the same error message.