cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python API errors

SOLVED
Getting noticed

Python API errors

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 orgID.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

Accepted Solutions
Kind of a big deal

Re: Python API errors

This topic and the example code I posted there will probably help you:

https://community.meraki.com/t5/Solutions-APIs/Help-ModuleNotFoundError-PYTHON-SDK/m-p/45841?advance...

2 REPLIES 2
Kind of a big deal

Re: Python API errors

This topic and the example code I posted there will probably help you:

https://community.meraki.com/t5/Solutions-APIs/Help-ModuleNotFoundError-PYTHON-SDK/m-p/45841?advance...

Highlighted
Getting noticed

Re: Python API errors

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.

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.