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

LexerNoViableAltException: dates.from_date=2023-09-16 #309

Open
JDraper93 opened this issue Sep 26, 2023 · 1 comment
Open

LexerNoViableAltException: dates.from_date=2023-09-16 #309

JDraper93 opened this issue Sep 26, 2023 · 1 comment

Comments

@JDraper93
Copy link

JDraper93 commented Sep 26, 2023

I am trying to run a hydra process with overides from within a .sh script

e.g.
python main.py dates.from_date='2023-09-16'
python main.py dates.from_date='2023-09-17'

When doing so I get the error:

LexerNoViableAltException: dates.from_date=2023-09-16
^
See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
LexerNoViableAltException: dates.from_date=2023-09-17

See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

When running an equivalent script in windows (cmd) this works, this also worked when running manually from the command line e.g. python main.py dates.from_date='2023-09-16'.

I don't have any escaped characters in my override and wrapping the command in double quotes did not fix the issue.

@rentainhe
Copy link
Collaborator

Sry, we did not try to run our model in this way before, maybe it's better to use the default training engine instead of the hydra one

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