Skip to content

nvcc compiler not found on #16

@josephmisiti

Description

@josephmisiti

I just launched your AMI, logged in and saw the following error:

(venv)ubuntu@ip-172-31-30-194:~$ python -c 'import theano'
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.

I tried to fix this myself using the following command:

echo -e "\nexport PATH=/usr/local/cuda-7.0/bin:$PATH\n\nexport LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64" >> .bashrc
source ~/.bashrc

But now I see the following:

(venv)ubuntu@ip-172-31-30-194:~$ python -c 'import theano'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ubuntu/venv/src/theano/theano/__init__.py", line 52, in <module>
    from theano.gof import (
  File "/home/ubuntu/venv/src/theano/theano/gof/__init__.py", line 38, in <module>
    from theano.gof.cc import \
  File "/home/ubuntu/venv/src/theano/theano/gof/cc.py", line 13, in <module>
    import numpy
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
    from . import add_newdocs
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
    from .linalg import *
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

So then I executed:

sudo apt-get install libopenblas-base

And then saw the following error:

(venv)ubuntu@ip-172-31-30-194:~$ python -c 'import theano'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ubuntu/venv/src/theano/theano/__init__.py", line 52, in <module>
    from theano.gof import (
  File "/home/ubuntu/venv/src/theano/theano/gof/__init__.py", line 38, in <module>
    from theano.gof.cc import \
  File "/home/ubuntu/venv/src/theano/theano/gof/cc.py", line 14, in <module>
    import numpy
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
    from . import add_newdocs
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
    from .linalg import *
  File "/home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /home/ubuntu/venv/local/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so: undefined symbol: zgelsd_

Of which, this stack overflow answer is telling me to upgrade numpy (but it is already upgraded)

I was able to follow these directions to get numpy reinstalled and the error went away but now I am seeing the following error:

(venv)ubuntu@ip-172-31-30-194:~/neural_artistic_style$ python -c 'import theano'
ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: libcublas.so.7.0: cannot open shared object file: No such file or directory
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available  (error: cuda unavilable)

But I couldnt resolve this one ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions