mintproject / dame_cli

Desktop Application for Model Execution (DAME) is a command line interface for executing environmental models
https://dame-cli.readthedocs.io/en/latest/
Apache License 2.0
3 stars 1 forks source link

Error when running setup for a specific HAND model #72

Open dgarijo opened 4 years ago

dgarijo commented 4 years ago

Describe the bug I have an error when running dame run e60cf1d0-11f8-454d-a48b-686612fdaf90.

The error I see is

Traceback (most recent call last):
  File "C:\Users\dgarijo\Documents\GitHub\dame_cli\env\Scripts\dame-script.py", line 11, in <module>
    load_entry_point('dame-cli', 'console_scripts', 'dame')()
    return self.main(*args, **kwargs)
  File "c:\users\dgarijo\documents\github\dame_cli\env\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\dgarijo\documents\github\dame_cli\env\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\dgarijo\documents\github\dame_cli\env\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\dgarijo\documents\github\dame_cli\env\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\__main__.py", line 127, in run
    run_method_setup(resource, interactive, data)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\cli_methods.py", line 181, in run_method_setup
    component_src_dir, execution_dir, setup_cmd_line, setup_name, image = prepare_execution(file_path)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\executor.py", line 201, in prepare_execution
    raise e
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\executor.py", line 199, in prepare_execution
    image, setup_cmd_line, src_path = build_command_line(setup_dict, execution_dir_path)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\executor.py", line 168, in build_command_line
    l = build_input(inputs, src_path)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\executor.py", line 111, in build_input
    file_name = get_file(destination_dir, url, _format)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\executor.py", line 79, in get_file
    file_path, file_name = download_data_file(url, destination_dir, _format)
  File "c:\users\dgarijo\documents\github\dame_cli\src\dame\utils.py", line 93, in download_data_file
    filepath = filepath.with_suffix(validate_suffix(format))
  File "C:\Users\dgarijo\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 853, in with_suffix
    raise ValueError("Invalid suffix %r" % (suffix,))
ValueError: Invalid suffix '.https://portals-api.tacc.utexas.edu/postits/v2/065f978cc95f4bd266310556949cc16a'

I thought the setup had a problem in the URL, but I can see it fine in the UI. I wonder what could be wrong. Other setups for the same model work fine.

To Reproduce dame run e60cf1d0-11f8-454d-a48b-686612fdaf90

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.