module 'meraki' has no attribute 'DashboardAPI' (most likely due to a circular import)

ammahend
Getting noticed

module 'meraki' has no attribute 'DashboardAPI' (most likely due to a circular import)

I wrote an script for rebooting Meraki devices from serial number listed in  a CSV file.

Seems to work on MAC but on windows I keep getting this error below and  can not not execute the code.

using visual studio code and same version of python on both mac and windows.

 

partially initialized module 'meraki' has no attribute 'DashboardAPI' (most likely due to a circular import)

 

any idea ?

2 Replies 2
PhilipDAth
Kind of a big deal
Kind of a big deal

Try asking Python to update the meraki-sdk module.

pip install -U meraki-sdk

 

MartinDE
New here

Answering to save anyone who googled that error message 15 minutes to find out what went wrong.

I just did the same beginner mistake: you imported a module called meraki and you named your script meraki.py and this results in a naming conflict. Rename your file to not_the_module_name.py

See also: Modules section of the Python tutorial on python.org

Get notified when there are additional replies to this discussion.
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.