Hello,
I recently installed pyopencl on Mac OS 10.10.2 using default system python
(Python 2.7.6 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]) and $ pip
install pyopencl .
Installation was painless, but when it came to importing pyopencl I got the
error:
---
File
"/Library/Python/2.7/site-packages/pytools-2014.3.5-py2.7.egg/pytools/__init__.py",
line 5, in <module>
from six.moves import range, zip, intern, input
ImportError: cannot import name intern
—--
It seems that pytools works okay without “intern”, so the following quick fix
to pytools/__init__.py seems to work:
---
try:
from six.moves import range, zip, intern, input
except ImportError:
from six.moves import range, zip, input
—--
OSX system python includes six-1.4.1 -- is it possible to get pyopencl to work
with this version so we don't have to use this kludge? Are there any other
reasons that installation on OS X system python will not work?
Many thanks,
Will
__________________________________________________
Will Smith -
[email protected]<mailto:[email protected]>
MChem Hons. (Oxon)
DPhil candidate in Systems Biology
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl