Remove the exact antlr4-python3-runtime==4.11.* pin
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend, build-system
Hướng nghiên cứu
Start by locating the dependency configuration containing antlr4-python3-runtime and the MuMoT call sites using SymPy's parse_latex. Run tests/test_symbolic_regression.py, then review the Greek-letter notebook, docs/MuMoTuserManual.ipynb, and the minimum_versions_job. Done means the dependency conflict is resolved while all listed parsing and compatibility checks still pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Since #417, every MuMoT dependency is unpinned (lower bounds only) except antlr4-python3-runtime==4.11.*.
The pin is required, not a choice. MuMoT parses model definitions and parameter names with sympy.parsing.latex.parse_latex, whose default ANTLR backend ships a parser generated with ANTLR 4.11. The ANTLR Python runtime only works with parsers generated by the same major.minor version, so SymPy ≥ 1.12 raises ImportError: LaTeX parsing requires the antlr4 Python package ... version 4.11 with any other runtime.
As a result, MuMoT cannot be installed alongside packages that pin a different ANTLR runtime. For example, Hydra/OmegaConf require antlr4-python3-runtime==4.9.*, and pip will refuse to resolve the two together. The pin will also need bumping whenever SymPy regenerates its parser.
Possible approaches
- Use SymPy's Lark backend.
parse_latex(s, backend='lark')is available from SymPy 1.13 and needs the pure-Pythonlarkpackage instead of ANTLR. This would remove the ANTLR dependency entirely. However, the Lark grammar is newer and parses some inputs differently: subscripts,\emptyset, Greek letters, and implicit multiplication would all need checking against every model and parameter string MuMoT handles. A fallback could try ANTLR first if it is importable and the right version, else use Lark. - Stop using a general LaTeX parser. MuMoT mostly parses symbol names (e.g.
\alpha_\beta,r_{1}) and simple rate expressions. A small dedicated parser for that subset, in the spirit ofmumot/_vendor/pydstool/_cst.py, would remove the dependency and be fully under MuMoT's control. - Keep the pin but make it track whatever SymPy needs, e.g. by depending on the
latexextra that newer SymPy versions may provide.
Testing any change
tests/test_symbolic_regression.pycompares symbolic results against the previous release; it exercises model parsing for several models, including Greek letters, subscripts and constant reactants.- The test notebooks (in particular
TestNotebooks/MiscTests/MuMoTtest_GreekLetters.ipynb) anddocs/MuMoTuserManual.ipynbcover the user-facing syntax. - The
minimum_versions_jobCI job checks the oldest allowed versions of all dependencies.
- Ngôn ngữ chính
- Python
- Star
- 24
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DiODeProject/MuMoT
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
DiODeProject/MuMoT#412 · 1 bình luận ·
-
Changing visualisation type of MuMoTstochasticSimulationViews through GUI causes plot deformations (squeezing)Có thể làm lại được @joefresna đã nhận 2299 ngày trước và không có pull request nào đang mở. Đang mởbug
DiODeProject/MuMoT#409 · 1 người được giao ·
-
bug testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
DiODeProject/MuMoT#407 · 2 bình luận ·
-
Use of bare 'except:' is badĐang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
DiODeProject/MuMoT#387 · 1 bình luận ·
-
Multicontroller do not accept some of the plotting parameters that normal controllers supportĐang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
DiODeProject/MuMoT#385 ·
Tất cả issue của DiODeProject/MuMoT
Issue tương tự
-
fix formatting of the sample database page of the docsCó thể đã có người làm @Aaqibhafeezkhan đã nhận hôm nay. Đang mởdocumentation good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
chaoss/CollectOSS#544 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/plugin good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
kestra-io/plugin-soda#137 ·
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
ibm-granite/granite.build#504 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`LazyFrameRemote` and `ExecuteRemote` sinks do not accept `Path`, like `LazyFrame` sinks do.Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày