hughperkins / DeepCL

OpenCL library to train deep convolutional neural networks
Mozilla Public License 2.0
866 stars 200 forks source link

Python install failing on Ubuntu 16.04. #64

Closed chasep255 closed 8 years ago

chasep255 commented 8 years ago

I am using python3 on Ubuntu 16.04. I am trying to install the python library with the folllowing command. chase@chase-pc:~/Desktop/DeepCL/python$ sudo python3 setup.py install

I get the following error ... PyDeepCL.cxx:251:32: fatal error: CppRuntimeBoundary.h: No such file or directory

I also get it when I run with pip3.

hughperkins commented 8 years ago

Please make sure to run source ../dist/bin/activate.sh first:

ubuntu@peach:~/git/tmp/DeepCL/python$ virtualenv -p python3 ../dist/env
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /data/norep/git/tmp/DeepCL/dist/env/bin/python3
Also creating executable in /data/norep/git/tmp/DeepCL/dist/env/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
ubuntu@peach:~/git/tmp/DeepCL/python$ source ../dist/env/bin/activate
(env) ubuntu@peach:~/git/tmp/DeepCL/python$ python setup.py install
version:  
/data/norep/git/tmp/DeepCL/dist/env/lib/python3.5/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version
running install
running bdist_egg
running egg_info
creating DeepCL.egg-info
writing top-level names to DeepCL.egg-info/top_level.txt
writing DeepCL.egg-info/PKG-INFO
writing dependency_links to DeepCL.egg-info/dependency_links.txt
writing manifest file 'DeepCL.egg-info/SOURCES.txt'
reading manifest file 'DeepCL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'version.txt'
writing manifest file 'DeepCL.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'PyDeepCL' extension
creating build
creating build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/data/norep/git/tmp/DeepCL/dist/env/include/python3.5m -c PyDeepCL.cxx -o build/temp.linux-x86_64-3.5/PyDeepCL.o -std=c++0x -g -Wno-unused-function -Wno-unneeded-internal-declaration -Wno-strict-prototypes -DUSE_CLEW
cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
PyDeepCL.cxx:251:32: fatal error: CppRuntimeBoundary.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
(env) ubuntu@peach:~/git/tmp/DeepCL/python$ source ../dist/bin/activate.sh 
(env) ubuntu@peach:~/git/tmp/DeepCL/python$ python setup.py install
version:  
/data/norep/git/tmp/DeepCL/dist/env/lib/python3.5/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version
running install
running bdist_egg
running egg_info
writing DeepCL.egg-info/PKG-INFO
writing top-level names to DeepCL.egg-info/top_level.txt
writing dependency_links to DeepCL.egg-info/dependency_links.txt
reading manifest file 'DeepCL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'version.txt'
writing manifest file 'DeepCL.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'PyDeepCL' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/data/norep/git/tmp/DeepCL/dist/env/include/python3.5m -c PyDeepCL.cxx -o build/temp.linux-x86_64-3.5/PyDeepCL.o -std=c++0x -g -Wno-unused-function -Wno-unneeded-internal-declaration -Wno-strict-prototypes -DUSE_CLEW
cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: unrecognized command line option ‘-Wno-unneeded-internal-declaration’
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/data/norep/git/tmp/DeepCL/dist/env/include/python3.5m -c CyWrappers.cpp -o build/temp.linux-x86_64-3.5/CyWrappers.o -std=c++0x -g -Wno-unused-function -Wno-unneeded-internal-declaration -Wno-strict-prototypes -DUSE_CLEW
cc1plus: warning: command line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: unrecognized command line option ‘-Wno-unneeded-internal-declaration’
creating build/lib.linux-x86_64-3.5
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -L/home/ubuntu/git/tmp/DeepCL/dist/lib -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/PyDeepCL.o build/temp.linux-x86_64-3.5/CyWrappers.o -L../dist/lib -L../dist/lib/import -Wl,--enable-new-dtags,-R. -lclBLAS -lEasyCL -lDeepCL -o build/lib.linux-x86_64-3.5/PyDeepCL.cpython-35m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.5/PyDeepCL.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for PyDeepCL.cpython-35m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/PyDeepCL.py to PyDeepCL.cpython-35.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.5
copying and adjusting test_deepcl.py -> build/scripts-3.5
copying and adjusting test_lowlevel.py -> build/scripts-3.5
changing mode of build/scripts-3.5/test_deepcl.py from 664 to 775
changing mode of build/scripts-3.5/test_lowlevel.py from 664 to 775
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.5/test_lowlevel.py -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.5/test_deepcl.py -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/test_lowlevel.py to 775
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/test_deepcl.py to 775
copying DeepCL.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying DeepCL.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying DeepCL.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying DeepCL.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.PyDeepCL.cpython-35: module references __file__
creating dist
creating 'dist/DeepCL-0.0.0-py3.5-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing DeepCL-0.0.0-py3.5-linux-x86_64.egg
creating /data/norep/git/tmp/DeepCL/dist/env/lib/python3.5/site-packages/DeepCL-0.0.0-py3.5-linux-x86_64.egg
Extracting DeepCL-0.0.0-py3.5-linux-x86_64.egg to /data/norep/git/tmp/DeepCL/dist/env/lib/python3.5/site-packages
Adding DeepCL 0.0.0 to easy-install.pth file
Installing test_lowlevel.py script to /data/norep/git/tmp/DeepCL/dist/env/bin
Installing test_deepcl.py script to /data/norep/git/tmp/DeepCL/dist/env/bin

Installed /data/norep/git/tmp/DeepCL/dist/env/lib/python3.5/site-packages/DeepCL-0.0.0-py3.5-linux-x86_64.egg
Processing dependencies for DeepCL==0.0.0
Finished processing dependencies for DeepCL==0.0.0