-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When I try to run the example project using simwrapper 4.0.6 navigating to the dashboards (under /data/dashboards/) leads to the error:
cannot access local variable 'e' where it is not associated with a value
In the UI this results in an error at the bottom of the screen:
Error parsing: dashboards/4-charts-and-maps/dashboard-2-maps.yaml
Steps to reproduce
- Create the following folder structure:
|- data/ |---- berlin/ |---- dashboards/ |---- <etc... all contents of the example project> |- config.yaml - Edit
config.yamlsuch that it looks like this:storage: simwrapper: path: './data' description: 'Local data from this server' tagline: 'Config file for issue' readme: | Dummy text for issue ====================
- In the top-folder (where config.yaml resides) run:
uvx simwrapper==4.0.6 run config.yaml --debug - Open http://localhost:4999, navigate to simwrapper -> dashboards -> 4-charts-and-maps
- Or go there directly: http://localhost:4999/simwrapper/dashboards/4-charts-and-maps/
Expected outcome
The dashboard is shown, with graphs and an option in the sidebar to go to a page with maps.
Actual outcome
The folder contents are shown in the Simwrapper "file lister" and an error is shown at the bottom:
In the commandline that is running simwrapper I see:
DEBUG:simwrapper:DIR simwrapper /
DEBUG:simwrapper:DIR simwrapper /dashboards/
DEBUG:simwrapper:GET simwrapper dashboards/4-charts-and-maps/dashboard-1-charts.yaml
cannot access local variable 'e' where it is not associated with a value
DEBUG:simwrapper:GET simwrapper dashboards/4-charts-and-maps/dashboard-2-maps.yaml
cannot access local variable 'e' where it is not associated with a value
Workaround
If I keep everything the same, but in step 3 run: uvx simwrapper==4.0.5 run config.yaml --debug (4.0.5 instead of 4.0.6) I get the expected outcome.
System info
- Windows 11 24H2
- Edge 140.0.3485.54, but also tried on Firefox 141.0.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels