cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4949
Views
2
Helpful
8
Replies

Python IDE - Thonny - cant import Meraki

What In the
Level 3
Level 3

I am trying to use Thonny to edit/create python scripts to learn.

I have Thonny installed, but I cant seem to import Meraki info.

I have tried

import meraki

ModuleNotFoundError: No module named 'meraki'

I have the Dashboard API library installed (1.42.0) via the GUI manage packages and searching for Metraki. do I need to install anything else?

8 Replies 8

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

I don't know this one, but make sure that Python is using the same Python environment where the meraki module is installed. You can also try installing the library with command pip install meraki.

I am not a Cisco employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

Thank you.

I see in the Thonny info that

"Target:
This dialog lists all available packages, but allows upgrading and uninstalling only packages from"

and points to

C:\Users\username\AppData\Roaming\Python\Python310\site-packages

the Meraki API and SDK are in that dir.

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

Well, what I advise is to contact Thonny support, this problem is not related to Meraki. You can also use the free version of Pycharm, they have very extensive documentation.

I am not a Cisco employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

Thank you. I am downloading Pycharm now.

You can use Wing IDE Personal, too. It is also free.

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

Have you installed the Meraki SDK?

pip3 install -U meraki

What In the
Level 3
Level 3

Thank you both.

SOOOOO.

To install the Meraki API on Thonny

From the "Tools" menu select "Open system shell...". You should get a new terminal window stating the correct name of the pip command (usually pip or pip3).

Then run "pip3 install -U meraki"

Now on to look at the next set of errors

amabt
Level 4
Level 4

Make sure you are in the right section. Under Tools->manage Packages and search for Meraki API. Then install