I was trying to build pyopencl on my default snow leopard.

I booted into 64 bit mode.

Built boost as in the how to.

Built pyopencl as in the how to.

Everything seems to run and compile fine.  But upon importing pyopencl in my
python interpreter I get the familiar.

Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.6/site-packages/pyopencl/__init__.py", line 3, in
<module>
    import pyopencl._cl as _cl
ImportError: dlopen(/Library/Python/2.6/site-packages/pyopencl/_cl.so, 2):
Symbol not found: __ZN5boost6python17error_already_setD1Ev
  Referenced from: /Library/Python/2.6/site-packages/pyopencl/_cl.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/pyopencl/_cl.so
>>> exit()

I think I've seen some of these to help.

rhaynes$ otool -L  /Library/Python/2.6/site-packages/pyopencl/_cl.so
/Library/Python/2.6/site-packages/pyopencl/_cl.so:
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility
version 1.0.0, current version 1.0.0)
 /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
123.0.0)

rhaynes$ otool -L /Users/rhaynes/pool/lib/libboost_python.dylib
/Users/rhaynes/pool/lib/libboost_python.dylib:
libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
 /System/Library/Frameworks/Python.framework/Versions/2.6/Python
(compatibility version 2.6.0, current version 2.6.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.9.0)
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.0)

rhaynes$ lipo -info `which python`
Architectures in the fat file: /usr/bin/python are: x86_64 i386 ppc7400

I was using the Default install of python because the install wiki didn't
advise against it.  For some reason I cannot get the link to the complete
build of python, numpy, scipy etc.  I'm not opposed to building it all from
scratch.  But I'd prefer be lazy...

I'm doing the tutorials at scipy conf this coming week.  Any help I could
get to have this running would be much appreciated.

Cheers,
Ryan
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to