Skip to content

download of autoplot dockingwidget crashes #2710

@ReimarBauer

Description

@ReimarBauer

This happens when you want a series of plots from a start time to an end time configured and clicking download and don't add a valid time interval. Without the times you get a download, or when you add the right timestep.

Fatal error in MSS 10.0.1 on macOS-15.3.2-arm64-arm-64bit
Python 3.11.11 | packaged by conda-forge | (main, Dec  5 2024, 14:21:42) [Clang 18.1.8 ]

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
  File "/Users/reimarbauer/PycharmProjects/MSS/mslib/msui/autoplot_dockwidget.py", line 150, in <lambda>
    self.downloadPushButton.clicked.connect(lambda: self.download_plots_cli(config_settings))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/MSS/mslib/msui/autoplot_dockwidget.py", line 203, in download_plots_cli
    ctx.invoke(cli_tool, **args)
  File "/Users/reimarbauer/PycharmProjects/MSS/.pixi/envs/dev/lib/python3.11/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/MSS/.pixi/envs/dev/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/MSS/mslib/utils/mssautoplot.py", line 685, in main
    time = datetime.strptime(vtime, "%Y-%m-%dT%H:%M:%S")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/MSS/.pixi/envs/dev/lib/python3.11/_strptime.py", line 567, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/MSS/.pixi/envs/dev/lib/python3.11/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '' does not match format '%Y-%m-%dT%H:%M:%S'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmsui

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions