[PyCUDA] pycuda make error

Nicolas Pinto pinto at mit.edu
Mon Nov 2 21:06:02 PST 2009


Dwight,

I think you need to use Distribute instead of setuptools [1]. This has been
corrected in Andreas's repos [2].

Best,

N

[1] http://tarekziade.wordpress.com/2009/10/03/python-2-6-3-and-distribute/
[2] http://git.tiker.net/?p=pycuda.git;a=summary
git clone http://git.tiker.net/trees/pycuda.git

On Mon, Nov 2, 2009 at 11:53 PM, Dwight Bell <dbelll at yahoo.com> wrote:

> I'm trying to install pycuda on Max OS X 10.6.1 and got the following
> error:
>
> dbmacpro:make -j 4
> ctags -R src || true
> ctags: illegal option -- R
> usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
> /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
> setup.py build
> /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module
> pkg_resources was already imported from
> /Users/dbelll/src/pycuda-0.93/pkg_resources.pyc, but
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg
> is being added to sys.path
>   import pkg_resources
> /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module site was
> already imported from
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc,
> but
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg
> is being added to sys.path
>   import pkg_resources
> /Users/dbelll/local/include/boost-1_39 /boost/  python .hpp
> /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .so
> /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .dylib
> /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .so
> /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .dylib
> /usr/local/cuda /bin/  nvcc
> /usr/local/cuda/include /  cuda .h
> /usr/local/cuda/lib / lib cuda .so
> /usr/local/cuda/lib / lib cuda .dylib
> running build
> running build_py
> running build_ext
> --------------------------------------------------------------------------
> Sorry, your build failed. Try rerunning configure with different options.
> --------------------------------------------------------------------------
> Traceback (most recent call last):
>   File "setup.py", line 325, in <module>
>     main()
>   File "setup.py", line 317, in main
>     ("include/cuda", glob.glob("src/cuda/*.hpp"))
>   File "/Users/dbelll/src/pycuda-0.93/aksetup_helper.py", line 12, in setup
>     setup(*args, **kwargs)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
> line 152, in setup
>     dist.run_commands()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
> line 975, in run_commands
>     self.run_command(cmd)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
> line 995, in run_command
>     cmd_obj.run()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py",
> line 134, in run
>     self.run_command(cmd_name)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py",
> line 333, in run_command
>     self.distribution.run_command(command)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
> line 995, in run_command
>     cmd_obj.run()
>   File "/Users/dbelll/src/pycuda-0.93/setuptools/command/build_ext.py",
> line 46, in run
>     _build_ext.run(self)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
> line 340, in run
>     self.build_extensions()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
> line 449, in build_extensions
>     self.build_extension(ext)
>   File "/Users/dbelll/src/pycuda-0.93/setuptools/command/build_ext.py",
> line 175, in build_extension
>     _build_ext.build_extension(self,ext)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
> line 460, in build_extension
>     ext_path = self.get_ext_fullpath(ext.name)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
> line 637, in get_ext_fullpath
>     filename = self.get_ext_filename(ext_name)
>   File "/Users/dbelll/src/pycuda-0.93/setuptools/command/build_ext.py",
> line 85, in get_ext_filename
>     ext = self.ext_map[fullname]
> KeyError: '_driver'
> make: *** [all] Error 1
> dbmacpro:
>
>
>
> My siteconf.py is:
>
> BOOST_INC_DIR = ['/Users/dbelll/local/include/boost-1_39']
> BOOST_LIB_DIR = ['/Users/dbelll/local/lib']
> BOOST_COMPILER = 'gcc43'
> BOOST_PYTHON_LIBNAME = ['boost_python-xgcc40-mt']
> BOOST_THREAD_LIBNAME = ['boost_thread-xgcc40-mt']
> CUDA_TRACE = False
> CUDA_ROOT = '/usr/local/cuda'
> CUDA_ENABLE_GL = False
> CUDADRV_LIB_DIR = []
> CUDADRV_LIBNAME = ['cuda']
> CXXFLAGS = []
> LDFLAGS = []
>
>
> Has anyone run into this same problem?  Any suggestions on what to try
> would be appreciated.
>
> ... Dwight Bell
>
>
>
> _______________________________________________
> PyCUDA mailing list
> PyCUDA at tiker.net
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>
>


-- 
Nicolas Pinto
Ph.D. Candidate, Brain & Computer Sciences
Massachusetts Institute of Technology, USA
http://web.mit.edu/pinto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20091103/47e98056/attachment-0001.htm>


More information about the PyCUDA mailing list