I am trying to use python drive for age. For this, I directly imported from the age file in the driver code using from age import *
.
But when I ran the code, I encountered the following error:
File "/home/abhishek/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 50, in checkVersion raise Exception("Could not deserialize ATN with version " + str(version) + " (expected " + str(SERIALIZED_VERSION) + ").") Exception: Could not deserialize ATN with version ☐ (expected 4).
The ☐
is there as it is in error.
I tried using the debugger and the error is coming from the file AgtypeLexer.py
on the line:
atn = ATNDeserializer().deserialize(serializedATN())
What can be the possible reason for this, and how can this be fixed?
Edit:antlr4-python3-runtime version 4.11.1 is installed properly on the system.