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

AssertionError, no explaination #418

Closed
charleswilmot opened this issue Oct 23, 2020 · 1 comment · Fixed by #508
Closed

AssertionError, no explaination #418

charleswilmot opened this issue Oct 23, 2020 · 1 comment · Fixed by #508
Labels
bug Something isn't working
Milestone

Comments

@charleswilmot
Copy link

Traceback (most recent call last):
  File "cluster.py", line 24, in start_job
    OmegaConf.to_container(cfg, resolve=True)
AssertionError

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

however

username@hostname :  echo $HYDRA_FULL_ERROR 
1

to_container throws an assertion error without any trace, nor error message.
My configuration files are big and numerous. I finally found out where the problem came from, but the AssertionError really got on my nerves. I needed to talk about it.

I feel better now.

@charleswilmot charleswilmot added the bug Something isn't working label Oct 23, 2020
@omry
Copy link
Owner

omry commented Oct 23, 2020

Hi,
Sorry about the unexplained assertion error.
Hydra and OmegaConf goes to great length to ensure that the error messages are good and to the point.
assertion errors are typically an indication of a bug in the code, in this case there is at least a second bug that causes the error message to be opaque (it's also possible that it's not a bug in the first place but an omission).

I am assuming that you are talking about this one.

Try to set OC_CAUSE=1 environment variable as well and tell me if you get different output.

Finally, if you can create a minimal repro it will be the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants