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

ERROR - 'Key "fit" not found in namespace.' with default_env is True #126

Closed
tshu-w opened this issue Feb 25, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@tshu-w
Copy link
Contributor

tshu-w commented Feb 25, 2022

Step to reproduce

#!/usr/bin/env python

from pytorch_lightning.utilities.cli import LightningCLI

def main():
    cli = LightningCLI(
        parser_kwargs={
            "logger": {"level": "DEBUG"},
            "default_env": True,
        },
    )

if __name__ == "__main__":
    main()

python test.py fit --print_config=skip_null got:

2022-02-25 12:10:14,171 - LightningArgumentParser - INFO - Loaded default values from parser.
2022-02-25 12:10:14,171 - LightningArgumentParser - ERROR - 'Key "fit" not found in namespace.'
@mauvilsa mauvilsa added the bug Something isn't working label Feb 28, 2022
@mauvilsa
Copy link
Member

mauvilsa commented Mar 1, 2022

This has been fixed in commit b9884a1 and it is included in v4.3.1 that has just been released.

@mauvilsa mauvilsa closed this as completed Mar 1, 2022
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

No branches or pull requests

2 participants