omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.98k stars 113 forks source link

Unable to install omegaconf (latest, 2.2.3, >2.0.0), python 3.11, 3.10, antlr4-python3-runtime failed #1181

Open de-served opened 4 months ago

de-served commented 4 months ago

I need to install omegaconf latest or 2.2.3, but have an issues installing it. Latest omegaconf requests antlr4-python3-runtime version 4.9. that fails to install Installing antlr4-python3-runtime successfully installs 4.13.1, but not 4.9.

Tried python 3.11, 3.10 Tried upgraded pip/setuptools to latest and downgraded setuptools to 68

Tried omegaconf:

omegaconf==2.3 (asks antlr4-python3-runtime==4.9.* (from omegaconf==2.3->-r requirements.txt (line 6)))
omegaconf<2.3 (antlr4-python3-runtime==4.9.* (from omegaconf<2.3->-r requirements.txt (line 6)))
omegaconf<2.2 (antlr4-python3-runtime==4.8 (from omegaconf<2.2->-r requirements.txt (line 6)))
omegaconf<2.1 (only 2.0.0 installed, all other versions "has invalid metadata")

Tried all versions of antlr4-python3-runtime:

antlr4-python3-runtime==4.9.3
antlr4-python3-runtime<4.9
antlr4-python3-runtime<4.8
antlr4-python3-runtime<4.7
antlr4-python3-runtime<4.5
  1. Create a virtual environment (my default python is 3.11) python.exe -m venv .\venv or D:\Dev\Python\3.10\python.exe -m venv .\venv (my secondary python 3.10)
  2. Activate venv: venv\Scripts\activate.bat
  3. (can be skipped) python -m pip install --upgrade pip setuptools
  4. create requirements.txt with omegaconf line (not direct command because different versions tried)
  5. run python -m pip install -r requirements.txt - ERROR: Failed to build installable wheels for some pyproject.toml based projects (antlr4-python3-runtime)
  6. edit requirements.txt to omegaconf<2.3, repeat №5 - same error
  7. repeat №6, changing 2.3 to 2.2, 2.1 - same errors except that version 2.0.0 was installed

Console logs attached: 1. 3.11 venv setup.log.txt 2. 3.11 venv omegaconf setup.log.txt 3. 3.11 venv omegaconf==2.2.3 setup.log.txt 4. 3.11 venv antlr4-python3-runtime setup.log.txt 5. 3.11 venv omegaconf setup.log.txt 6. 3.11 venv antlr4-python3-runtime==4.9.3 setup.log.txt

de-served commented 4 months ago

Upd: found that filename/directory containing allowed "$" symbol leads to fail.

omry commented 4 months ago

Please provide minimal repro instructions. Please note that OmegaConf 2.4 dev releases no longer depends on antlr (they contains a vendored copy if it) which may help your problem.

swertz commented 3 months ago

Please note that OmegaConf 2.4 dev releases no longer depends on antlr (they contains a vendored copy if it) which may help your problem.

Perhaps it would be time to release the new version?