Intellect icon indicating copy to clipboard operation
Intellect copied to clipboard

Error when running example code: name 'version_str_to_tuple' is not defined

Open rdempsey opened this issue 9 years ago • 1 comments

Hello!

I downloaded all of the example files and tried running them. Below are my error results. I'm using:

  • Python 2.7.9
  • antlr-python-runtime 3.4
  • intellect 1.4.9

Output when running the example code:

File "//anaconda/lib/python2.7/site-packages/intellect/grammar/PolicyParser.py", line 129, in PolicyParser antlr_version = version_str_to_tuple("3.1.3 Mar 17, 2009 19:23:44") NameError: name 'version_str_to_tuple' is not defined

Is there something I can do to remedy this?

Thanks!

  • Robert

rdempsey avatar Jan 09 '15 18:01 rdempsey

It's apparently gone in antlr-python-runtime 3.4, it works in 3.1.2. I don't know what the replacement is.

regebro avatar Jun 05 '17 07:06 regebro