Import error: cannot import name 'UserSettableParameter' from 'mesa.visualization.UserParam'
I Checked Conda list and pip list, both of them have mesa installed and tried several times to installed and uninstalled mesa, but still has error. I use python 3.10 and Mesa 2.1.1. Can anyone help with it ?
The code is from https://github.com/hildobby/fire-suppression-abm I hope to run the code but it keeps give me errors
According to my research here, there is no UserSettableParameter
where you are importing.
As of 2.0.0 UserSettableParameter
has been deprecated. and moved to NumberInput
, Slider
, CheckBox
, Choice
, StaticText
.
UserSettableParameter(['number', 'slider','checkbox', 'choice', 'StaticText']): convert to NumberInput , Slider, CheckBox, Choice, StaticText