Closed SyamGadde closed 10 years ago
Running python 2.6.6 I get the error:
In [1]: import reikna
In [2]: import reikna.cluda as cluda ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (8, 0))
TypeError Traceback (most recent call last)
/afs/desy.de/user/a/amorgan/
/afs/desy.de/user/a/amorgan/python_packages/lib/reikna/cluda/init.py in
/afs/desy.de/user/a/amorgan/python_packages/lib/reikna/cluda/kernel.py in
/afs/desy.de/user/a/amorgan/python_packages/lib/reikna/helpers/init.pyc in template_for(filename) 151 """ 152 name, _ext = os.path.splitext(os.path.abspath(filename)) --> 153 return make_template(name + '.mako', filename=True) 154 155
/afs/desy.de/user/a/amorgan/python_packages/lib/reikna/helpers/init.pyc in make_template(template, filename) 93 if filename: 94 kwds['filename'] = template ---> 95 return Template(_kwds) 96 else: 97 return Template(template, _kwds)
TypeError: init() got an unexpected keyword argument 'future_imports'
Looks like you need a newer version of Mako:
Oops -- I guess this would be the relevant link:
https://bitbucket.org/zzzeek/mako_hg/pull-request/3/added-future_imports-feature-to-template/diff
Thank you! I'll run the full test suite and check if there are some dict comprehensions left to fix.
After running a few test cases from the website using Python 2.6.6 things are looking pretty sweet on my end.
Thanks Syam Gadde for the pointer on Mako.
I don't know if these are all the changes needed to re-enable support for Python 2.6, but it got me as far as I needed to go.