Skip to content

Example project does not work in 4.0.6 when using simwrapper run config.yaml: cannot access local variable 'e' where it is not associated with a value #3

@b-a0

Description

@b-a0

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

  1. Create the following folder structure:
    |- data/
    |---- berlin/
    |---- dashboards/
    |---- <etc... all contents of the example project>
    |- config.yaml
    
  2. Edit config.yaml such 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
      ====================
  3. In the top-folder (where config.yaml resides) run: uvx simwrapper==4.0.6 run config.yaml --debug
  4. Open http://localhost:4999, navigate to 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.

Image

Actual outcome

The folder contents are shown in the Simwrapper "file lister" and an error is shown at the bottom:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions