Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message if pipeline_interface path does not exist #528

Open
nsheff opened this issue Oct 9, 2024 · 0 comments
Open

Misleading error message if pipeline_interface path does not exist #528

nsheff opened this issue Oct 9, 2024 · 0 comments

Comments

@nsheff
Copy link
Contributor

nsheff commented Oct 9, 2024

If your pipeline_interface path does not exist, you get this non-intuitive error:

looper run -d
Looper version: 2.0.0a2
Command: run
Pipeline interface not found at given path: /home/ns5bc/code/pepatac/pipeline_interface.yaml
Using looper config (.looper.yaml).
Traceback (most recent call last):
  File "/home/ns5bc/.local/bin/looper", line 8, in <module>
    sys.exit(main_cli())
             ^^^^^^^^^^
  File "/home/ns5bc/.local/lib/python3.11/site-packages/looper/cli_pydantic.py", line 357, in main_cli
    main()
  File "/home/ns5bc/.local/lib/python3.11/site-packages/looper/cli_pydantic.py", line 353, in main
    return run_looper(args, parser, test_args=test_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ns5bc/.local/lib/python3.11/site-packages/looper/cli_pydantic.py", line 232, in run_looper
    raise MisconfigurationException(
looper.exceptions.MisconfigurationException: `sample_pipeline_interface` is missing. Provide it in the parameters.

The exception should rather be something like "File not found exception"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant