You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse_str in Path Class of jsonpath2.path is giving ModuleNotFoundError
from jsonpath2.path import Path
json_path = "$.runLogId"
parsed_path = Path.parse_str(json_path)
File "venv/lib64/python3.9/site-packages/jsonpath2/path.py", line 88, in parse_str
File "venv/lib64/python3.9/site-packages/jsonpath2/parser/init.py", line 506, in parse_str
File "venv/lib64/python3.9/site-packages/jsonpath2/parser/init.py", line 485, in _parse_input_stream
File "venv/lib64/python3.9/site-packages/jsonpath2/parser/JSONPathParser.py", line 215, in jsonpath
File "venv/lib64/python3.9/site-packages/antlr4/error/ErrorStrategy.py", line 212, in sync
File "venv/lib64/python3.9/site-packages/antlr4/atn/ATN.py", line 71, in nextTokens
File "venv/lib64/python3.9/site-packages/antlr4/atn/ATN.py", line 65, in nextTokensNoContext
File "venv/lib64/python3.9/site-packages/antlr4/atn/ATN.py", line 55, in nextTokensInContext
ModuleNotFoundError: No module named 'antlr4.LL1Analyzer'
Steps to Reproduce:
basic parsing
Expected Result:
Should return a parsed string to match with the json
Actual Result:
ModuleNotFoundError: No module named 'antlr4.LL1Analyzer'
The text was updated successfully, but these errors were encountered:
@abdulr4uf I did a review of the pipeline to verify we are testing python 3.9 and ran a recent (just now) pipeline. So, I'm thinking this has something to do with your installation of Python 3.9 on EL7. Did you build Python from scratch? Did you get Python from a third party repo?
jsonpath2 version
0.4.5
Platform Details
Red_Hat_Enterprise_Linux 7
python3.9
Scenario:
parse_str in Path Class of jsonpath2.path is giving ModuleNotFoundError
Steps to Reproduce:
basic parsing
Expected Result:
Should return a parsed string to match with the json
Actual Result:
ModuleNotFoundError: No module named 'antlr4.LL1Analyzer'
The text was updated successfully, but these errors were encountered: