Closed Yuxin-99 closed 4 months ago
Hello! Can you confirm that you're on the latest version of tyro
? Python 3.11.9 broke some things, but they should be fixed in tyro==0.8.3
.
Hi! Thanks a lot for your answer! I didn't notice there is a newer version of Tyro for python3.11. Now the issue is solved. Thank you!
Hi!
I am encountering an error when using tyro.cli to parse command line arguments in an AzureML environment. The script works perfectly locally, but fails when executed on AzureML with a ValueError related to unpacking values. Switching to argparse resolves the issue on Azure, suggesting that the problem may be specific to tyro.
Environment
The error message:
Here is a simplified snippet of the code (train.py):
And the relevant part of launching the job to run the script (train.py) for AzureML:
Expected behavior The script should parse the command line arguments without errors like how it behaves on my local machine.
Actual behavior The script fails with the
ValueError: too many values to unpack
. But when I use argparse to parse the arguments, it doesn't fail.Thank you in advance!