-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Could not find 'hydra/env/default'
using compose
with pytest<7
and python=3.10
#2107
Comments
compose
fails with pins pytest<7
and python=3.10
compose
fails with pytest<7
and python=3.10
compose
fails with pytest<7
and python=3.10
Could not find 'hydra/env/default'
using compose
with pytest<7
and python=3.10
@Jasha10 hello! Got the same bug on the latest versions of packages ( In details:There is a file
I use On docker on local machine (with same environment like in CI) works well, but in CI got error:
Solution:After many hours of trying i figured out that hydra can't find its own default configs. So after copying this folder into my Perhaps, when creating a job, the hydra misses some environment variables, which stops finding its directory ... I don’t know... |
Hi @tupiznak, I'm not able to reproduce this error with
|
I'm also seeing this error while using Solution:As OP mentioned #1854 is terribly relevant. I updated pytest to 7.1.2 and all is well. |
This issue documents failure of Hydra's
compose
method when used in apytest
unit test with the following specific version pins:This combination of python+pytest version leads to a confusing error message:
Steps to reproduce the error:
Workarounds:
hydra.compose
inside a pytest test function.Possibly related to #1854.
System information
1.1.1
,1.2.0.dev2
3.10
The text was updated successfully, but these errors were encountered: