10-27-2021 08:45 AM
I am using Python on a Windows 10 device to execute manageadmins.py
It does not run and prompts to install the module requests which si already installed and listed in pip list
I have tried Python 3.6.8 and 3.10.0 and requests 2.26 and 2.70
pip 18.? and 21.3 have been tried
I have installed it for the individual and All Users.
All to no luck.
I can stand a linux box but dont have one readily handy.
Any suggestions on what the issue may be?
Solved! Go to Solution.
11-29-2021 07:52 AM
Thank you all to everybody who replied. I apologize for the delay but I was sidelined by another project for the last few weeks and was only able to return to this over the weekend.
I had followed the suggestions from Mihail already without any success. It turns out the error message displayed was not the issue. The only resolution I found to the issue was:
1. Delete the existing API key in the Meraki portal and create and use a new one.
Once this was done, I could execute the script and receive erros about admin credentials which I was able to resolve independently on this.
Thank you all,
Amiur
10-27-2021 12:54 PM
Maybe the version of requests you are using is to old and needs an update. Try:
pip install -U requests
10-27-2021 01:33 PM
Hi Philip,
Thank you for the reply.
Ive also tried installing it for a use pip install --user requests but all requirements are already satisfied.
import requests in the python shell has no response so I'm trying to work my way through this.
I will try this but I have installed requests 2.20, 2.24, 2.26 and 2.70 with 2.70 being the latest.
10-27-2021 12:55 PM
If you are running Windows 10 have you considered using WSL (Windows Subsystem for Linux)? It runs Ubuntu and is pretty good.
10-27-2021 01:35 PM
Hi Philip,
Thanks for the reply. I will try this - it may solve a few issues for me
11-08-2021 05:53 AM
I managed to replicate your issue by installing Python 3.10.0 on a Windows computer that already had Python 3.9.5 installed.
I successfully fixed it with the following steps:
* Go to Control Panel > Programs and features and remove all versions of Python, as well as the Python launcher
* Open C:\ in File explorer and remove all PythonXX-XX folders
* Go to Control panel > System > Advanced > Environment variables and remove everything Python related from Path
* Do a clean installation of Python 3.10.0 (I selected the "Add to environment variables" option)
* Install requests via pip
* Run the script as normal. It should now work
11-29-2021 07:52 AM
Thank you all to everybody who replied. I apologize for the delay but I was sidelined by another project for the last few weeks and was only able to return to this over the weekend.
I had followed the suggestions from Mihail already without any success. It turns out the error message displayed was not the issue. The only resolution I found to the issue was:
1. Delete the existing API key in the Meraki portal and create and use a new one.
Once this was done, I could execute the script and receive erros about admin credentials which I was able to resolve independently on this.
Thank you all,
Amiur
06-05-2023 11:35 AM
Greetings,
I've been using the maangeadmins.py successfully for years now and as recently as a few weeks ago. When attempting to run the script now, I am just presented with a number of warnings that the organization admin list can't be obtained.
@ WARNING: Unable to get admin list for organization ""
@ WARNING: Unable to get admin list for organization ""
@ WARNING: Unable to get admin list for organization ""
I've tried upgrading to the latest version of Python, changing my API key and testing from another Windows 10 machine and from an Ubuntu Linux box.
Running a POSTMAN GET
https://api.meraki.com/api/v0/organizations?X-Cisco-Meraki-API-Key=
does return the list of organizations I can see so I know my API key is valid.
Any assistance would be appreciated.
Thank you,
Jeff
06-05-2023 11:47 AM
That link is to a v0 endpoint, v0 is end of life, see...
I suggest update your code to use the v1 endpoints only...
https://developer.cisco.com/meraki/api-v1/#!get-organizations
https://developer.cisco.com/meraki/api-v1/#!get-organization-admins
06-05-2023 11:42 AM
API v0 (which you are pointing at) has been sunset:
try using the v1 version of the endpoint.
06-05-2023 12:22 PM
Brilliant! Thank you, that resolved the issue. Strange that it worked on v0 up until May 2023. Thanks again.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide