Gavin Coombes <gav@...> writes: > > > Hi Andreas, > > Sorry for the delay. > The last environment variables did not not alter the import error. > Do we have any other options to try? > > <at> Chris, how similar are the errors that you are seeing?
Hi Gavin, I am receiving the exact same error. I googled the symbol, from the error code, that was unknown and found this thread. To preface, I am not too familiar with c so my hunch is probably way off, but I wonder if this has something to do with another error I am getting compiling the hello world opencl (not pyopencl) example. It seems my compiler is possibly forcing x86_64. Anyway, I thought posting this might help. Let me know if I can help in anyway. Here are the error codes. Error trying to import pyopencl: python Python 2.7.8 |Anaconda 2.1.0 (x86_64)| (default, Aug 21 2014, 15:21:46) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://binstar.org >>> import pyopencl Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/me/anaconda/lib/python2.7/site-packages/ pyopencl-2014.1-py2.7-macosx-10.5- x86_64.egg/pyopencl/__init__.py" , line 30, in <module> import pyopencl._cl as _cl ImportError: dlopen(/Users/me/anaconda/lib/python2.7/site-packages/ pyopencl-2014.1-py2.7- macosx-10.5-x86_64.egg/pyopencl/_cl.so, 2): Symbol not found: __ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE Referenced from: /Users/me/anaconda/lib/python2.7/site-packages/ pyopencl-2014.1-py2.7- macosx-10.5-x86_64.egg/pyopencl/_cl.so Expected in: dynamic lookup Error trying to compile hello world pyopencl: my:opencl me$ gcc hello.c Undefined symbols for architecture x86_64: "_clBuildProgram", referenced from: _main in hello-d72e9c.o "_clCreateBuffer", referenced from: _main in hello-d72e9c.o "_clCreateCommandQueue", referenced from: _main in hello-d72e9c.o "_clCreateContext", referenced from: _main in hello-d72e9c.o "_clCreateKernel", referenced from: _main in hello-d72e9c.o "_clCreateProgramWithSource", referenced from: _main in hello-d72e9c.o "_clEnqueueNDRangeKernel", referenced from: _main in hello-d72e9c.o "_clEnqueueReadBuffer", referenced from: _main in hello-d72e9c.o "_clEnqueueWriteBuffer", referenced from: _main in hello-d72e9c.o "_clFinish", referenced from: _main in hello-d72e9c.o "_clGetDeviceIDs", referenced from: _main in hello-d72e9c.o "_clGetKernelWorkGroupInfo", referenced from: _main in hello-d72e9c.o "_clGetProgramBuildInfo", referenced from: _main in hello-d72e9c.o "_clReleaseCommandQueue", referenced from: _main in hello-d72e9c.o "_clReleaseContext", referenced from: _main in hello-d72e9c.o "_clReleaseKernel", referenced from: _main in hello-d72e9c.o "_clReleaseMemObject", referenced from: _main in hello-d72e9c.o "_clReleaseProgram", referenced from: _main in hello-d72e9c.o "_clSetKernelArg", referenced from: _main in hello-d72e9c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
