Skip to content

ModuleNotFoundError: No module named 'antlr4.LL1Analyzer' in v0.4.5 #58

@abdulr4uf

Description

@abdulr4uf

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

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions