Thanks! you are right.

In my OS X 10.10, the old system copy is located at :
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py

I have to replace it with the pip installed one at:
 /Library/Python/2.7/site-packages/six.py

On Wed, Feb 18, 2015 at 6:12 AM, Andreas Kloeckner <[email protected]>
wrote:

> William Smith <[email protected]> writes:
>
> > 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?
>
> My suggestion would be to install an upgraded six along with PyOpenCL
> in a virtualenv:
>
> https://virtualenv.pypa.io/en/latest/
>
> Andreas
>
> _______________________________________________
> PyOpenCL mailing list
> [email protected]
> http://lists.tiker.net/listinfo/pyopencl
>
>
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to