Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'SolaraViz' from 'mesa.visualization' #203

Closed
budennovsk opened this issue Sep 24, 2024 · 4 comments
Closed

Comments

@budennovsk
Copy link

Hello, after updating to the latest #201, the visualization stopped working. I noticed this issue using the example 'https://github.com/projectmesa/mesa-examples/tree/main/examples/hotelling_law'. In the 'app.py' file, the import 'from mesa.visualization import SolaraViz, make_plot_measure' is causing the problem.

@EwoutH
Copy link
Member

EwoutH commented Sep 24, 2024

Thanks for reporting a potential issue! Which exact Mesa version are you using?

We also updated the SolaraViz API recently. Please check:

Edit: this is likely caused by:

Does updating to the latest pre-release (3.0.0a5) resolve this issue?

@budennovsk
Copy link
Author

image

image

@budennovsk
Copy link
Author

You are correct, installing version 3.0.0a5 resolved the issue. Thank you!

@EwoutH
Copy link
Member

EwoutH commented Sep 24, 2024

Great to hear! Make sure to check out the migration guide and changelog, we changed quite a lot.

We're close to a 3.0 beta release, so any feedback on 3.0 and it's documentation is appreciated!

By the way, our old examples for Mesa 2.x are also still available if needed. See #148.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants