Guilherme Gonçalves Ferrari <[email protected]> writes: > import pyopencl fails because pytools seems to be broken on py3k. I'm using > the latest version of both packages. > > ------------------------------- > import pyopencl as cl > > File > "/home/travis/miniconda/envs/testenv3.4/lib/python3.4/site-packages/pyopencl/__init__.py", > line 716, in <module> > > _add_functionality() > > File > "/home/travis/miniconda/envs/testenv3.4/lib/python3.4/site-packages/pyopencl/__init__.py", > line 333, in _add_functionality > > from pytools import memoize_method > > File > "/home/travis/miniconda/envs/testenv3.4/lib/python3.4/site-packages/pytools/__init__.py", > line 1313 > > print value, bin_nr, bin_starts > > ^ > > SyntaxError: invalid syntax > -------------------------------
How did you install pytools? It uses 2to3, so that print statement would have gotten translated if 2to3 had run as intended. Apparently it has not, and I'm trying to figure out why. Andreas
pgpVi1Y20x3Ir.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
