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

omegaconf.errors.ConfigAttributeError: Missing key pretty #22

Open
struggle2893 opened this issue Dec 5, 2021 · 1 comment
Open

omegaconf.errors.ConfigAttributeError: Missing key pretty #22

struggle2893 opened this issue Dec 5, 2021 · 1 comment

Comments

@struggle2893
Copy link

Sorry to cause you trouble, follow your issue 7 "pip install hydra-core" to install, also tried "pip install hydara-core==1.0.1", but there will still be problems, as follows:
"

D:\Anaconda\lib\site-packages\hydra\core\utils.py:143: UserWarning: register_resolver() is deprecated.
See omry/omegaconf#426 for migration instructions.

OmegaConf.register_resolver(name, f)
Traceback (most recent call last):
File "train_cls.py", line 52, in main
print(args.pretty())
omegaconf.errors.ConfigAttributeError: Missing key pretty
full_key: pretty
object_type=dict

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

"
Please help me solve this problem, thank you very much.

@Enderrrr-TW
Copy link

I had the same issue as well.
My opinion is that this line aims at nothing but printing out the config. I removed this line and it works fine.

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

No branches or pull requests

2 participants