python - PyOpenCL Install Trouble on Mac OS X El Cap 10.11.3 with Enthought Canopy 1.6.2.3262 -


versions: pyopencl 2015.2.4 mac os x 10.11.3 xcode: 7.2.1 enthought canopy 1.6.2.3262

i trying install pyopencl on mac os x 10.11.3 enthought canopy , having difficulty. following directions on pyopencl wiki:

python configure.py make

i following output:

rovitotv-mbpr15:pyopencl-2015.2.4 rovitotv$ python configure.py rovitotv-mbpr15:pyopencl-2015.2.4 rovitotv$ make ctags -r src || true /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/ctags: illegal option -- r usage: ctags [-bfadtuwvx] [-f tagsfile] file ... /users/rovitotv/library/enthought/canopy_64bit/user/bin/python setup.py build --------------------------------------------------------------------------- sorry, build failed. try rerunning configure.py different options. --------------------------------------------------------------------------- traceback (most recent call last):   file "setup.py", line 234, in <module>     main()   file "setup.py", line 230, in main     zip_safe=false)   file "/users/rovitotv/prog/pyopencl-2015.2.4/aksetup_helper.py", line 21, in setup     setup(*args, **kwargs)   file "/applications/canopy.app/appdata/canopy-1.6.2.3262.macosx-x86_64/canopy.app/contents/lib/python2.7/distutils/core.py", line 111, in setup     _setup_distribution = dist = klass(attrs)   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/setuptools/dist.py", line 271, in __init__     _distribution.__init__(self,attrs)   file "/applications/canopy.app/appdata/canopy-1.6.2.3262.macosx-x86_64/canopy.app/contents/lib/python2.7/distutils/dist.py", line 287, in __init__     self.finalize_options()   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/setuptools/dist.py", line 326, in finalize_options     ep.load()(self, ep.name, value)   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 161, in cffi_modules     add_cffi_module(dist, cffi_module)   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module     execfile(build_file_name, mod_vars)   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 24, in execfile     exec(code, glob, glob)   file "cffi_build.py", line 32, in <module>     ffi = ffi()   file "/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/cffi/api.py", line 56, in __init__     import _cffi_backend backend importerror: dlopen(/users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/_cffi_backend.so, 2): library not loaded: @rpath/lib/libffi.6.dylib   referenced from: /users/rovitotv/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/_cffi_backend.so   reason: image not found make: *** [all] error 1 rovitotv-mbpr15:pyopencl-2015.2.4 rovitotv$  

after playing around canopy package manager able pyopencl built , running on mac. solution came went canopy package manager , updated cffi. after cffi update reran build , install steps documented on pyopencl wiki. after install ran number of pyopencl examples. thanks!


Comments