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

sympy requires antlr 4.11 #287

Closed
bhpayne opened this issue May 23, 2024 · 2 comments
Closed

sympy requires antlr 4.11 #287

bhpayne opened this issue May 23, 2024 · 2 comments
Assignees
Labels

Comments

@bhpayne
Copy link
Member

bhpayne commented May 23, 2024

Inside the container,

# python3
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
>>> sympy.__version__
'1.12'
>>> from sympy.parsing.latex import parse_latex
>>> x = parse_latex("a = b")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/sympy/parsing/latex/__init__.py", line 35, in parse_latex
    return _latex.parse_latex(s)
  File "/usr/local/lib/python3.8/dist-packages/sympy/parsing/latex/_parse_latex_antlr.py", line 66, in parse_latex
    raise ImportError("LaTeX parsing requires the antlr4 Python package,"
ImportError: LaTeX parsing requires the antlr4 Python package, provided by pip (antlr4-python3-runtime) or conda (antlr-python-runtime), version 4.11
>>> exit()
root@b8dadce452c7:/code# pip3 install antlr4-python3-runtime

Requirement already satisfied: antlr4-python3-runtime in /usr/local/lib/python3.8/dist-packages (4.13.1)

Looks like I need to pin the pip antlr install to 4.11 (which was released Sept 2022)

@bhpayne bhpayne added the bug label May 23, 2024
@bhpayne bhpayne self-assigned this May 23, 2024
@bhpayne
Copy link
Member Author

bhpayne commented May 23, 2024

@bhpayne
Copy link
Member Author

bhpayne commented May 23, 2024

Solved in commit 7278062

@bhpayne bhpayne closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant