huggingface/lighteval

[BUG] Installing lighteval breaks hydra-core

開放

#713 建立於 2025年5月9日

 (1 則留言) (1 個反應) (0 位負責人)Python (514 個分叉)auto 404
bughelp wanted

倉庫指標

星標
 (2,496 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Describe the bug

Installing this package in same env as hydra-core seems to break hydra-core's upstream package called antlr4. Since I use hydra and want to use lighteval as well, is there a way to reconcile these dependencies?

To Reproduce

pip install hydra-core
pip install lighteval
from latex2sympy2_extended.latex2sympy2 import NormalizationConfig

should give you: File "your/conda/env/lib/python3.11/site-packages/antlr4/atn/ATNDeserializer.py", line 89, in adjust v = ord(c) ^^^^^^ TypeError: ord() expected string of length 1, but int found

Expected behavior

To be able to use lighteval + hydra-core functionality.

Version info

python==3.11.12 lighteval==0.9.2 hydra-core==1.3.2

貢獻者指南