-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Relax dependency on antlr-python3-runtime
#2699
Comments
Hey @jlopezpena ! Thank you for brining this up. A PR is very much appreciated. I dont think updating antlr should break anything. cc @Jasha10 @odelalleau |
Currently Hydra is using If we upgrade |
Thanks for the clarification @Jasha10. Do you see any downside to this ? I am not at all familiar with this piece of code. |
I heard that Meta uses a specific antlr4 version in it's monorepo. I'm not sure if changing the version here would cause issues for internal usage. Besides such a compatibility concern, I don't see any issue with upgrading. |
Here's a brief background on the role of OmegaConf/Hydra use antlr4 to compile several
When you build the At runtime, when OmegaConf / Hydra want to parse a cli override or variable interpolation, they load the |
Are you talking about the version of the antlr binary, or the |
I'm not 100% sure. My assumption is that, within Meta, buck calls into setuptools to build the I'm not an expert in Meta's monorepo though and I could be making some bad assumptions here. |
So, if I understood correctly, this PR would simply entail updating the |
@jlopezpena that's basically correct. Since omegaconf also relies on Files affected in omegaconf:
Files affected in Hydra:
See OmegaConf PR omry/omegaconf#912 and Hydra PR #2192 from when we upgraded antlr v4.8 -> v4.9. See also my comment here for a recipe to test out such changes locally or build hydra/omegaconf wheels with a custom antlr version. |
|
Created PRs in both |
Thanks for the fix! Is there a process for this to be released for |
Is there a chance to get this as a pre-release? I am also running frequently into antlr issues because of dependency issues. Edit: |
@Daraan in case your problem is caused by incompatibility with |
🚀 Feature Request
Allow installing
hydra
with a more recent version ofantlr
Motivation
I am trying to upgrade my repos to use
pandas
v2, and in one of them I got blocked by hydra. Specifically,datacompy
version 0.10.2 (min required version for pandas 2) requiresfugue
which requiresantlr
runtime >= 4.11, buthydra
pins theantlr
version 4.9, which makes it impossible to resolve the dependencies.Pitch
Provided that it doesn't break anything in
hydra
, a simple relaxation of the dependency onantlr-python3-runtime
so that it allows versions greater than 4.11 would solve the dependency lock. Version4.9
ofantlr
is over two years old.Are you willing to open a pull request?
Happy to, it should be a very easy one, provided that there are no API breaking changes in
antlr
!Additional context
Here is the relevant part
poetry
dependency resolution error, for completeness:The text was updated successfully, but these errors were encountered: