nemonik / Intellect

DSL and Rules Engine For Python
http://pypi.python.org/pypi/Intellect
Other
425 stars 85 forks source link

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

Open rdempsey opened 9 years ago

rdempsey commented 9 years ago

Hello!

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

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!

regebro commented 7 years ago

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