Ok, nevermind. Just read through all threads and found the answer.
It was indeed a problem with Python's version and setuptools. Removing
setuptools and using PyOpenCL from the git repo solved the problem.
Best regards,
Ricardo Ferreira
On Wed, Nov 11, 2009 at 12:37 PM, Ricardo Ferreira <ricardo(a)dazzledminds.net
wrote:
Hi!
I'm having troubles installing pyopencl on Ubuntu 9.10. I have successfully
built it on 9.04 though. I think it might have to do with Python's version?
On 9.10 I have 2.6.4 and on 9.04 I have 2.6.2...
When I run:
$python configure.py \
--boost-inc-dir=/usr/include \
--boost-lib-dir=/usr/lib \
--boost-python-libname=boost_python-mt \
--boost-thread-libname=boost_thread-mt \
--cl-inc-dir=/opencl-install-location/include \
--cl-lib-dir=/opencl-install-location/lib \
--cl-libname=OpenCL
$sudo make install
I get the following error:
ctags -R src || true
/bin/sh: ctags: not found
/usr/bin/python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.6/dist-packages/ appears to support
.pth files
running bdist_egg
running egg_info
writing requirements to pyopencl.egg-info/requires.txt
writing pyopencl.egg-info/PKG-INFO
writing top-level names to pyopencl.egg-info/top_level.txt
writing dependency_links to pyopencl.egg-info/dependency_links.txt
reading manifest file 'pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'src/cl/*.hpp'
writing manifest file 'pyopencl.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/pyopencl
copying pyopencl/__init__.py -> build/lib.linux-x86_64-2.6/pyopencl
copying pyopencl/version.py -> build/lib.linux-x86_64-2.6/pyopencl
running build_ext
----------------------------------------------------------------------------
Sorry, your build failed. Try rerunning configure.py with different
options.
----------------------------------------------------------------------------
Traceback (most recent call last):
File "setup.py", line 162, in <module>
main()
File "setup.py", line 154, in main
extra_link_args=conf["LDFLAGS"],
File "/home/rfer/Desktop/pyopencl-0.91.3/aksetup_helper.py", line 12, in
setup
setup(*args, **kwargs)
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/install.py",
line 76, in run
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/install.py",
line 96, in do_egg_install
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/bdist_egg.py",
line 174, in run
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/bdist_egg.py",
line 161, in call_command
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/install_lib.py",
line 20, in run
File "/usr/lib/python2.6/distutils/command/install_lib.py", line 113, in
build
self.run_command('build_ext')
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 46, in run
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in
run
self.build_extensions()
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 449, in
build_extensions
self.build_extension(ext)
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 175, in build_extension
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 460, in
build_extension
ext_path = self.get_ext_fullpath(ext.name)
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 637, in
get_ext_fullpath
filename = self.get_ext_filename(ext_name)
File
"/usr/local/lib/python2.6/dist-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 85, in get_ext_filename
KeyError: '_cl'
make: *** [install] Error 1
I saw someone with the same problem, but there was no reply so I have no
idea if he ever got to solve this...
Best regards,
Ricardo Ferreira