-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
PrintConfigAction added twice #169
Comments
Ok weird, on the cluster this solution actually doesn't work but on my local machine it does. I'll investigate this more, sorry that I opened the issue to early! |
parser.add_argument('--slurm', type=dict, enable_path=True) |
Hey, thanks for your quick reply! I'm trying to achieve that I can pass the path to a configuration file and it is automatically parsed. So I do something like |
Adding an argument with type Indeed this is not explained well in the docs. |
Ok thanks got it! It works now. |
…o use default_config_files pytorch-lightning#15174. - Trying to add a second config argument to a single parser raises an exception #169.
🐛 Bug report
I use jsonargparse with Pytorch Lightning which crashes when I try to add another config argument in a class derived from PL's CLI. I added the new config argument like this
and now it crashes on this line with the following error message
Modifying the line from
to
(i.e. remove the
not
) solves this. Intuitively, I'd say this is what the line was supposed to be or am I mistaking something?To reproduce
I tried to make a reproducible example without PL but it wouldn't work and I thought I first ask whether that's a mistake before spending further time creating one. If you need one, let me know, then I'll try again.
Expected behavior
The
ActionConfigFile
argument should be addable without the error to happen.Environment
4.13.0
3.8.13
pip install jsonargparse[signatures]
The text was updated successfully, but these errors were encountered: