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

[Bug?] multirun does not work with hydra.verbose=True #1897

Closed
2 tasks done
fischer-ben opened this issue Nov 21, 2021 · 1 comment · Fixed by #1976
Closed
2 tasks done

[Bug?] multirun does not work with hydra.verbose=True #1897

fischer-ben opened this issue Nov 21, 2021 · 1 comment · Fixed by #1976
Assignees
Labels
bug Something isn't working sweep
Milestone

Comments

@fischer-ben
Copy link

fischer-ben commented Nov 21, 2021

🐛 Bug

Description

--multirun does not seem to work when using hydra.verbose=True

Checklist

  • I checked on the latest version of Hydra
  • I created a minimal repro (See this for tips).

To reproduce

** Minimal Code/Config snippet to reproduce **
config.yaml:

a: 1

hydra:
  verbose: True

test.py

import hydra


@hydra.main(config_path=".", config_name="config.yaml")
def main(config):
    print(config)


if __name__ == "__main__":
    main()

running the command python test.py -m a=1,2 fails

** Stack trace/error message **

Ambiguous value for argument 'a=1,2'
1. To use it as a list, use key=[value1,value2]
2. To use it as string, quote the value: key=\'value1,value2\'
3. To sweep over it, add --multirun to your command line

Expected Behavior

When removing hydra.verbose=True from config.yaml it works as expected:

[2021-11-21 14:45:38,189][HYDRA] Launching 2 jobs locally
[2021-11-21 14:45:38,189][HYDRA]        #0 : a=1
{'a': 1}
[2021-11-21 14:45:38,285][HYDRA]        #1 : a=2
{'a': 2}

System information

  • Hydra Version : 1.1.1
  • Python version : 3.8
  • Virtual environment type and version :
  • Operating system : Windows 10

Additional context

Not sure if this is an intended behaviour?

@fischer-ben fischer-ben added the bug Something isn't working label Nov 21, 2021
@Jasha10
Copy link
Collaborator

Jasha10 commented Nov 22, 2021

Hi @BenFis,

Thanks very much for the report. I can reproduce the issue.

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

Successfully merging a pull request may close this issue.

3 participants