Hi Bart,

It's absolutely the same result...

Alex

On Fri, Jan 29, 2010 at 1:36 PM, Bart Morsink <[email protected]> wrote:

> Hi Alex,
>
> try to follow the procedure in the "complete installation walkthrough" on
> the wiki http://wiki.tiker.net/PyOpenCL/Installation/Mac
>
> There is also a complete installation 
> walkthrough<http://wiki.tiker.net/PyOpenCL/Installation/Mac?action=AttachFile&do=upload_form&target=mac-installation.pdf>
>  for
> a python, numpy, scipy, boost and pyopencl build from source.
>
> I hope this will help. It worked for me...
>
> Regards,
> Bart
>
> On Jan 29, 2010, at 9:01 PM, Alexandr Kuzmin wrote:
>
> Dear All,
>
> After several days I did a certain progress, but still can't make my
> Macports installed python work with pyopencl on Snow Leopard. And I'm going
> crazy...
>
> First I run ./configure.py with certain options specified in one ticket:
> ./configure.py --boost-inc-dir=/opt/local/include
> --boost-inc-dir=/usr/local/include --boost-lib-dir=/opt/local/lib
> --boost-lib-dir=/usr/local/lib --boost-python-libname=boost_python
> --boost-thread-libname=boost_thread --cl-libname=''
> Creating
> /Users/shurik/Downloads/pyopencl-0.91.4/setuptools-0.6c9-py2.6.egg-info
> Creating /Users/shurik/Downloads/pyopencl-0.91.4/setuptools.pth
>
> Then I run the python setup.py install. Here what I've got:
> alexandr-kuzmins-macbook:pyopencl-0.91.4 shurik$ sudo
> /opt/local/bin/python2.6 setup.py install
> Password:
> Scanning installed packages
> Setuptools installation detected at /Users/shurik/Downloads/pyopencl-0.91.4
> Non-egg installation
> Removing elements out of the way...
> Already patched.
> /Users/shurik/Downloads/pyopencl-0.91.4/setuptools-0.6c9-py2.6.egg-info
> already patched.
> Downloading
> http://pypi.python.org/packages/source/d/distribute/distribute-0.6.4.tar.gz
> Extracting in /tmp/tmpjhxrOM
> Now working in /tmp/tmpjhxrOM/distribute-0.6.4
> Building a Distribute egg in /Users/shurik/Downloads/pyopencl-0.91.4
> /Users/shurik/Downloads/pyopencl-0.91.4/setuptools-0.6c9-py2.6.egg-info
> already exists
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267:
> UserWarning: Unknown distribution option: 'install_requires'
>   warnings.warn(msg)
> running install
> running build
> running build_py
> creating build
> creating build/lib.macosx-10.6-i386-2.6
> creating build/lib.macosx-10.6-i386-2.6/pyopencl
> copying pyopencl/__init__.py -> build/lib.macosx-10.6-i386-2.6/pyopencl
> copying pyopencl/version.py -> build/lib.macosx-10.6-i386-2.6/pyopencl
> running build_ext
> building '_cl' extension
> creating build/temp.macosx-10.6-i386-2.6
> creating build/temp.macosx-10.6-i386-2.6/src
> creating build/temp.macosx-10.6-i386-2.6/src/wrapper
> /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall
> -O3 -DNDEBUG -Isrc/cpp -I/usr/local/include
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
> -c src/wrapper/wrap_cl.cpp -o
> build/temp.macosx-10.6-i386-2.6/src/wrapper/wrap_cl.o -arch i386 -arch
> x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
> In file included from src/wrapper/wrap_cl.cpp:1:
> src/wrapper/wrap_cl.hpp: In function ‘pyopencl::event*
> pyopencl::enqueue_nd_range_kernel(pyopencl::command_queue&,
> pyopencl::kernel&, boost::python::api::object, boost::python::api::object,
> boost::python::api::object, boost::python::api::object)’:
> src/wrapper/wrap_cl.hpp:2207: warning: comparison between signed and
> unsigned integer expressions
> src/wrapper/wrap_cl.hpp:2220: warning: comparison between signed and
> unsigned integer expressions
> src/wrapper/wrap_cl.cpp: In function ‘void init_module__cl()’:
> src/wrapper/wrap_cl.cpp:83: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:87: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:88: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:89: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp: In function ‘void init_module__cl()’:
> src/wrapper/wrap_cl.cpp:83: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:87: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:88: warning: deprecated conversion from string
> constant to ‘char*’
> src/wrapper/wrap_cl.cpp:89: warning: deprecated conversion from string
> constant to ‘char*’
> /usr/bin/g++-4.2 -L/opt/local/lib -bundle -undefined dynamic_lookup
> build/temp.macosx-10.6-i386-2.6/src/wrapper/wrap_cl.o -L/usr/local/lib
> -lboost_python -lboost_thread -o
> build/lib.macosx-10.6-i386-2.6/pyopencl/_cl.so -arch i386 -arch x86_64
> -isysroot /Developer/SDKs/MacOSX10.6.sdk -Wl,-framework,OpenCL
> ld: warning: in
> /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libboost_python.dylib, file is
> not of required architecture
> ld: warning: in
> /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libboost_thread.dylib, file is
> not of required architecture
> running install_lib
> copying build/lib.macosx-10.6-i386-2.6/pyopencl/_cl.so ->
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencl
> running install_egg_info
> Removing
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencl-0.91.4-py2.6.egg-info
> Writing
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencl-0.91.4-py2.6.egg-info
>
> It seems to me that it was successfully compiled, because there were only
> warnings. Also, I can't understand where the errors from ld come from:
>
> ld: warning: in
> /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libboost_python.dylib, file is
> not of required architecture
> ld: warning: in
> /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libboost_thread.dylib, file is
> not of required architecture
>
> Because the specified directory contain libboost_python.dylib and
> libboost_python.a compiled on the Snow Leopard system.
>
> After that I run python and I've got error:
>
> alexandr-kuzmins-macbook:pyopencl-0.91.4 shurik$ /opt/local/bin/python2.6
> Python 2.6.4 (r264:75706, Jan 24 2010, 02:46:32)
> [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] 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 "pyopencl/__init__.py", line 3, in <module>
>     import pyopencl._cl as _cl
> ImportError: No module named _cl
> >>> quit()
>
> Please if anybody knows the solution or any ideas - spend a few minutes and
> write to this email-list. I spent a few days dealing with it but no results
> at all...
>
> Thank you,
> Alex
>
> _______________________________________________
> PyOpenCL mailing list
> [email protected]
> http://host304.hostmonster.com/mailman/listinfo/pyopencl_tiker.net
>
>
>
_______________________________________________
PyOpenCL mailing list
[email protected]
http://host304.hostmonster.com/mailman/listinfo/pyopencl_tiker.net

Reply via email to