Discussion:
[PyCUDA] What do I have to do in order to correctly install PyCUDA?
Marco Ippolito
2014-10-08 16:19:18 UTC
Permalink
Hi all,

in my Ubuntu 14.04 I'm trying to install PyCUDA, but I have this
error's message:

utente at utente-All-Series:~$ sudo pip install pycuda
Downloading/unpacking pycuda
Downloading pycuda-2014.1.tar.gz (1.6MB): 1.6MB downloaded
Running setup.py (path:/tmp/pip_build_root/pycuda/setup.py) egg_info
for package pycuda
*** WARNING: nvcc not in path.
*************************************************************
*** I have detected that you have not run configure.py.
*************************************************************
*** Additionally, no global config files were found.
*** I will go ahead with the default configuration.
*** In all likelihood, this will not work out.
***
*** See README_SETUP.txt for more information.
***
*** If the build does fail, just re-run configure.py with the
*** correct arguments, and then retry. Good luck!
*************************************************************
*** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT
*************************************************************
Continuing in 1 seconds... ..
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pycuda/setup.py", line 216, in <module>
main()
File "/tmp/pip_build_root/pycuda/setup.py", line 88, in main
conf["CUDA_INC_DIR"] = [join(conf["CUDA_ROOT"], "include")]
File "/usr/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Complete output from command python setup.py egg_info:
*** WARNING: nvcc not in path.

*************************************************************

*** I have detected that you have not run configure.py.

*************************************************************

*** Additionally, no global config files were found.

*** I will go ahead with the default configuration.

*** In all likelihood, this will not work out.

***

*** See README_SETUP.txt for more information.

***

*** If the build does fail, just re-run configure.py with the

*** correct arguments, and then retry. Good luck!

*************************************************************

*** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT

*************************************************************

Continuing in 1 seconds...

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip_build_root/pycuda/setup.py", line 216, in <module>

main()

File "/tmp/pip_build_root/pycuda/setup.py", line 88, in main

conf["CUDA_INC_DIR"] = [join(conf["CUDA_ROOT"], "include")]

File "/usr/lib/python2.7/posixpath.py", line 77, in join

elif path == '' or path.endswith('/'):

AttributeError: 'NoneType' object has no attribute 'endswith'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
/tmp/pip_build_root/pycuda

What do I have to do in order to correctly install PyCUDA?

Looking forward to your kind helpfull hints.
Kind regards.
Marco
Andreas Kloeckner
2014-10-08 16:58:15 UTC
Permalink
Dear Marco,

the easiest thing to do is to have nvcc in your $PATH--that should then
enable PyCUDA to automatically find the rest of CUDA.

Andreas
Post by Marco Ippolito
Hi all,
in my Ubuntu 14.04 I'm trying to install PyCUDA, but I have this
utente at utente-All-Series:~$ sudo pip install pycuda
Downloading/unpacking pycuda
Downloading pycuda-2014.1.tar.gz (1.6MB): 1.6MB downloaded
Running setup.py (path:/tmp/pip_build_root/pycuda/setup.py) egg_info
for package pycuda
*** WARNING: nvcc not in path.
*************************************************************
*** I have detected that you have not run configure.py.
*************************************************************
*** Additionally, no global config files were found.
*** I will go ahead with the default configuration.
*** In all likelihood, this will not work out.
***
*** See README_SETUP.txt for more information.
***
*** If the build does fail, just re-run configure.py with the
*** correct arguments, and then retry. Good luck!
*************************************************************
*** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT
*************************************************************
Continuing in 1 seconds... ..
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pycuda/setup.py", line 216, in <module>
main()
File "/tmp/pip_build_root/pycuda/setup.py", line 88, in main
conf["CUDA_INC_DIR"] = [join(conf["CUDA_ROOT"], "include")]
File "/usr/lib/python2.7/posixpath.py", line 77, in join
AttributeError: 'NoneType' object has no attribute 'endswith'
*** WARNING: nvcc not in path.
*************************************************************
*** I have detected that you have not run configure.py.
*************************************************************
*** Additionally, no global config files were found.
*** I will go ahead with the default configuration.
*** In all likelihood, this will not work out.
***
*** See README_SETUP.txt for more information.
***
*** If the build does fail, just re-run configure.py with the
*** correct arguments, and then retry. Good luck!
*************************************************************
*** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT
*************************************************************
Continuing in 1 seconds...
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pycuda/setup.py", line 216, in <module>
main()
File "/tmp/pip_build_root/pycuda/setup.py", line 88, in main
conf["CUDA_INC_DIR"] = [join(conf["CUDA_ROOT"], "include")]
File "/usr/lib/python2.7/posixpath.py", line 77, in join
AttributeError: 'NoneType' object has no attribute 'endswith'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
/tmp/pip_build_root/pycuda
What do I have to do in order to correctly install PyCUDA?
Looking forward to your kind helpfull hints.
Kind regards.
Marco
_______________________________________________
PyCUDA mailing list
PyCUDA at tiker.net
http://lists.tiker.net/listinfo/pycuda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20141008/1698b7f4/attachment.sig>
Andreas Kloeckner
2014-10-08 22:55:52 UTC
Permalink
Hi Andreas,
thanks for helping.
https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables
export $PATH=/usr/local/cuda-6.5/bin/nvcc
Actually,

export PATH=$PATH:/usr/local/cuda-6.5/bin

Also, please keep the list cc'd.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20141008/e5e29e48/attachment.sig>
Loading...