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

dlite-validate output confusing information #978

Closed
francescalb opened this issue Oct 23, 2024 · 0 comments · Fixed by #989
Closed

dlite-validate output confusing information #978

francescalb opened this issue Oct 23, 2024 · 0 comments · Fixed by #989

Comments

@francescalb
Copy link
Collaborator

dlite-validate returns the full traceback, and thus makes it confusing to understand the validation.

Currently this is the output I get when validating a datamodel with wrong input for dimensions:

dlite-validate vasp.yaml
Warning: Behavior singleInterpreter is not configured. It will be enabled by default from v0.7.0. See https://sintef.github.io/dlite/user_guide/configure_behavior_changes.html for more info.
DLiteOtherError: calling load() in Python plugin 'yaml'
To see error messages from Python storages, please rerun with the
DLITE_PYDEBUG environment variable set.
For example: export DLITE_PYDEBUG=

: TypeError: dimensions must be either a sequence or a mapping

Only the last line should be shown as the immediate understanding of the above error is that there is an error in the yaml plugin (not that the yaml plugin raises and error).

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