jakobaxelsson / sossim

A system-of-systems (SoS) simulator
MIT License
0 stars 0 forks source link

Live demonstration broken #27

Closed jakobaxelsson closed 5 months ago

jakobaxelsson commented 5 months ago

The SoSSIM live demonstration is broken.

The most likely explanation for this is that there are new pyscript versions that are not backwards compatible. The app/sossim.html script uses the latest pyscript version, which is not the same as the one the SoSSIM code has been tested against. The fix is then to make the version number explicit.

While looking into this, it was also discovered that the development server does not work according to the instructions in the README file. The link to the locally served web page is old, it should now be pointing to the app directory.

jakobaxelsson commented 5 months ago

Mesa also had some breaking changes when moving from version 2.1.5 to version 2.2.0. Mesa is installed using micropip in __main__.py, so this needs to be modified to use the older version.

jakobaxelsson commented 5 months ago

Issue fixed by making pyscript and mesa version explicit. Note that mesa version needs to be specified in two places: requirements.txt for local installation used for batch running, and in __main__.py for dynamically loading the library using micropip when running interactively in the browser. The pyscript version is set in sossim.html in the link address to the pyscript core.