cora/cora/util/nputil.py does not import
Closed this issue · 2 comments
SaulAryehKohn commented
There appears to be a syntax error on line 19 of nputil.py
Python 2.6.2 (r262:71600, May 18 2009, 11:32:27)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nputil
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "nputil.py", line 19
d1 = { repr(i) : v for i, v in enumerate(la)}
^
SyntaxError: invalid syntax
>>>
jrs65 commented
Hi Saul,
You need to be running Python 2.7 or greater. Dictionary comprehensions were only added in Python 2.7. You'll also need Python 2.7 to get the argparse module which is required for some of the command line utilities.
SaulAryehKohn commented
OK, thanks