Dear Mac-Pycuda users
did someone of you encounter a
error: invalid command 'bdist_egg'
during sudo make install ?
below my setup and more details of the error,
thanks a million in advance for your help,
cheers, Daniel
My Setup :
============
Mac Snow Leopard 10.6.2
Boost 1.39
Enthought distribution:
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
pycuda 0.93
My Problem:
===========
sudo make install
crashes with
error: invalid command 'bdist_egg'
/private/tmp/easy_install-xIzsvF/pytools-10/setuptools-0.6c9-py2.6.egg-info
already exists
error: Setup script exited with 1
I installed setup tools with sudo python ez_setup.py
and followed the recipes on
I cleaned the /private/tmp/ before sudo make install and followed the
steps on
http://wiki.tiker.net/PyCuda/Installation/Mac
Complete Screen output:
======================
[hal:~/pool/pycuda-0.93] dkubas% sudo make install
ctags -R src || true
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python
setup.py install
/Users/dkubas/pool/include/boost-1_39/ /boost/ python .hpp
/Users/dkubas/pool/lib/ / lib boost_python-xgcc42-mt .so
/Users/dkubas/pool/lib/ / lib boost_python-xgcc42-mt .dylib
/Users/dkubas/pool/lib/ / lib boost_thread-xgcc42-mt .so
/Users/dkubas/pool/lib/ / lib boost_thread-xgcc42-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 install
running bdist_egg
running egg_info
writing requirements to pycuda.egg-info/requires.txt
writing pycuda.egg-info/PKG-INFO
writing top-level names to pycuda.egg-info/top_level.txt
writing dependency_links to pycuda.egg-info/dependency_links.txt
reading manifest file 'pycuda.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pycuda.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-i386/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.6-i386-2.6
creating build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/__init__.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/autoinit.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/compiler.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/cumath.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/curandom.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/driver.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/elementwise.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/gpuarray.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/reduction.py -> build/lib.macosx-10.6-i386-2.6/pycuda
copying pycuda/tools.py -> build/lib.macosx-10.6-i386-2.6/pycuda
creating build/lib.macosx-10.6-i386-2.6/pycuda/gl
copying pycuda/gl/__init__.py -> build/lib.macosx-10.6-i386-2.6/pycuda/gl
copying pycuda/gl/autoinit.py -> build/lib.macosx-10.6-i386-2.6/pycuda/gl
running build_ext
building '_driver' 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/cpp
creating build/temp.macosx-10.6-i386-2.6/src/wrapper
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -O3
-DNDEBUG -pipe -Isrc/cpp -I/Users/dkubas/pool/include/boost-1_39/
-I/usr/local/cuda/include
-I/Library/Python/2.6/site-packages/numpy-1.3.0-py2.6-macosx-10.6-universal.egg/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c src/cpp/cuda.cpp -o build/temp.macosx-10.6-i386-2.6/src/cpp/cuda.o
-m32 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -O3
-DNDEBUG -pipe -Isrc/cpp -I/Users/dkubas/pool/include/boost-1_39/
-I/usr/local/cuda/include
-I/Library/Python/2.6/site-packages/numpy-1.3.0-py2.6-macosx-10.6-universal.egg/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c src/cpp/bitlog.cpp -o
build/temp.macosx-10.6-i386-2.6/src/cpp/bitlog.o -m32 -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -O3
-DNDEBUG -pipe -Isrc/cpp -I/Users/dkubas/pool/include/boost-1_39/
-I/usr/local/cuda/include
-I/Library/Python/2.6/site-packages/numpy-1.3.0-py2.6-macosx-10.6-universal.egg/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c src/wrapper/wrap_cudadrv.cpp -o
build/temp.macosx-10.6-i386-2.6/src/wrapper/wrap_cudadrv.o -m32
-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386
src/wrapper/wrap_cudadrv.cpp: In function ‘void init_module__driver()’:
src/wrapper/wrap_cudadrv.cpp:443: warning: deprecated conversion from
string constant to ‘char*’
src/wrapper/wrap_cudadrv.cpp:447: warning: deprecated conversion from
string constant to ‘char*’
src/wrapper/wrap_cudadrv.cpp:448: warning: deprecated conversion from
string constant to ‘char*’
src/wrapper/wrap_cudadrv.cpp:449: warning: deprecated conversion from
string constant to ‘char*’
src/wrapper/wrap_cudadrv.cpp:450: warning: deprecated conversion from
string constant to ‘char*’
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -O3
-DNDEBUG -pipe -Isrc/cpp -I/Users/dkubas/pool/include/boost-1_39/
-I/usr/local/cuda/include
-I/Library/Python/2.6/site-packages/numpy-1.3.0-py2.6-macosx-10.6-universal.egg/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c src/wrapper/mempool.cpp -o
build/temp.macosx-10.6-i386-2.6/src/wrapper/mempool.o -m32 -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386
g++-4.2 -Wl,-F. -bundle -undefined dynamic_lookup
build/temp.macosx-10.6-i386-2.6/src/cpp/cuda.o
build/temp.macosx-10.6-i386-2.6/src/cpp/bitlog.o
build/temp.macosx-10.6-i386-2.6/src/wrapper/wrap_cudadrv.o
build/temp.macosx-10.6-i386-2.6/src/wrapper/mempool.o
-L/Users/dkubas/pool/lib/ -L/usr/local/cuda/lib -lboost_python-xgcc42-mt
-lboost_thread-xgcc42-mt -lcuda -o
build/lib.macosx-10.6-i386-2.6/pycuda/_driver.so -m32 -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386
creating build/bdist.macosx-10.6-i386
creating build/bdist.macosx-10.6-i386/egg
creating build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/__init__.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/_driver.so ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/autoinit.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/compiler.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/cumath.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/curandom.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/driver.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/elementwise.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
creating build/bdist.macosx-10.6-i386/egg/pycuda/gl
copying build/lib.macosx-10.6-i386-2.6/pycuda/gl/__init__.py ->
build/bdist.macosx-10.6-i386/egg/pycuda/gl
copying build/lib.macosx-10.6-i386-2.6/pycuda/gl/autoinit.py ->
build/bdist.macosx-10.6-i386/egg/pycuda/gl
copying build/lib.macosx-10.6-i386-2.6/pycuda/gpuarray.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/reduction.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
copying build/lib.macosx-10.6-i386-2.6/pycuda/tools.py ->
build/bdist.macosx-10.6-i386/egg/pycuda
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/__init__.py to
__init__.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/autoinit.py to
autoinit.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/compiler.py to
compiler.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/cumath.py to
cumath.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/curandom.py to
curandom.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/driver.py to
driver.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/elementwise.py to
elementwise.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/gl/__init__.py to
__init__.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/gl/autoinit.py to
autoinit.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/gpuarray.py to
gpuarray.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/reduction.py to
reduction.pyc
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/tools.py to
tools.pyc
creating stub loader for pycuda/_driver.so
byte-compiling build/bdist.macosx-10.6-i386/egg/pycuda/_driver.py to
_driver.pyc
installing package data to build/bdist.macosx-10.6-i386/egg
running install_data
creating build/bdist.macosx-10.6-i386/egg/include
creating build/bdist.macosx-10.6-i386/egg/include/cuda
copying src/cuda/pycuda-helpers.hpp ->
build/bdist.macosx-10.6-i386/egg/include/cuda
creating build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/PKG-INFO ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/SOURCES.txt ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/dependency_links.txt ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/not-zip-safe ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/requires.txt ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
copying pycuda.egg-info/top_level.txt ->
build/bdist.macosx-10.6-i386/egg/EGG-INFO
writing build/bdist.macosx-10.6-i386/egg/EGG-INFO/native_libs.txt
creating 'dist/pycuda-0.93-py2.6-macosx-10.6-i386.egg' and adding
'build/bdist.macosx-10.6-i386/egg' to it
removing 'build/bdist.macosx-10.6-i386/egg' (and everything under it)
Processing pycuda-0.93-py2.6-macosx-10.6-i386.egg
removing
'/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg'
(and everything under it)
creating
/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg
Extracting pycuda-0.93-py2.6-macosx-10.6-i386.egg to
/Library/Python/2.6/site-packages
pycuda 0.93 is already the active version in easy-install.pth
Installed
/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg
Processing dependencies for pycuda==0.93
Searching for pytools>=8
Reading http://pypi.python.org/simple/pytools/
Reading http://mathema.tician.de/software/pytools
Best match: pytools 10
Downloading
http://pypi.python.org/packages/source/p/pytools/pytools-10.tar.gz#md5=57efeca513abbeeb9feb5d24ea9b02c8
Processing pytools-10.tar.gz
Running pytools-10/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-xIzsvF/pytools-10/egg-dist-tmp-eyk2F7
Scanning installed packages
Setuptools installation detected at
/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg
Egg installation
Patching...
Renaming /Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg
into
/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg.OLD.1267894388.77
Patched done.
Relaunching...
Scanning installed packages
Setuptools installation detected at
/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg
Egg installation
Already patched.
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.4.tar.gz
Extracting in /tmp/tmpjEvsRc
Now working in /tmp/tmpjEvsRc/distribute-0.6.4
Building a Distribute egg in /private/tmp/easy_install-xIzsvF/pytools-10
Creating
/private/tmp/easy_install-xIzsvF/pytools-10/setuptools-0.6c9-py2.6.egg-info
Creating /private/tmp/easy_install-xIzsvF/pytools-10/setuptools.pth
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
::
error: invalid command 'bdist_egg'
/private/tmp/easy_install-xIzsvF/pytools-10/setuptools-0.6c9-py2.6.egg-info
already exists
error: Setup script exited with 1
make: *** [install] Error 1
_______________________________________________
PyCUDA mailing list
[email protected]
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net