Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A valid Caffe installation was not found on your system. Use the envvar CAFFE_ROOT to indicate a valid installation. #1107

Closed
sangthian opened this issue Sep 22, 2016 · 7 comments
Labels

Comments

@sangthian
Copy link

sangthian commented Sep 22, 2016

# when I input ./digits-devserver, an error occur,

# this is the error information, my caffe is in /home/mx/caffe/

A valid Caffe installation was not found on your system.
Use the envvar CAFFE_ROOT to indicate a valid installation.
Traceback (most recent call last):
File "./digits-devserver", line 8, in
import digits.config
File "/home/mx/digits/digits/config/init.py", line 7, in
from . import caffe
File "/home/mx/digits/digits/config/caffe.py", line 227, in
executable, version, flavor = load_from_path()
File "/home/mx/digits/digits/config/caffe.py", line 51, in load_from_path
raise ValueError('Caffe executable not found in PATH')
ValueError: Caffe executable not found in PATH

@gheinrich
Copy link
Contributor

Hello, with #1091 merged now you need to use environment variables to configure DIGITS. The environment variables are listed there. In your case you need to set the CAFFE_ROOT variable: export CAFFE_ROOT=/home/mx/caffe/.

@sangthian
Copy link
Author

Thanks very much ,but every time I use digits,I must input CAFFE_ROOT=/home/mx/caffe/ in terminal,
maybe I should write the environment variables into a file, how to do it?

@lukeyeager lukeyeager changed the title an error when installing digits A valid Caffe installation was not found on your system. Use the envvar CAFFE_ROOT to indicate a valid installation. Sep 22, 2016
@lukeyeager
Copy link
Member

# These instructions are for bash
$ echo $SHELL
/bin/bash

# Check the current value of your envvar
$ echo $CAFFE_ROOT

# Add the envvar to ~/.profile so it will load automatically when you login
$ echo "export CAFFE_ROOT=/home/username/caffe/" >> ~/.profile

# Load the new configuration
$ source ~/.profile

# Check the new envvar value
$ echo $CAFFE_ROOT
/home/username/caffe/

If you need more help or if you use a different shell, you can probably find what you need via Google. Setting environment variables is a good skill to learn.

@drcrook1
Copy link

I am having the same problem, however I have completed these steps and I have CAFFE_ROOT pointing to the correct place. #1390

@lukeyeager
Copy link
Member

Did you install with a deb package? If so, please follow these instructions for changing the configuration:
https://github.com/NVIDIA/DIGITS/blob/digits-5.0/docs/UbuntuInstall.md#troubleshooting

@jcAxe
Copy link

jcAxe commented Jul 31, 2017

In my case, when I try to set a CAFFE_ROOT value, it says my path is not valid for some reason.
And CAFFE_ROOT is empty. I installed my caffe through aptitude dependencies of CUDA, and I need to upgrade it to 0.16v in order to fix a GPU memory error.

@ericdhillon
Copy link

ericdhillon commented Nov 14, 2018

I have installed all of the prerequisites. I have the CAFFE_ROOT in /home/user/caffe which is a path.

| _ / | | / |
| |) | | ( || | | | _
|/|| || |___/ 6.1.1

A valid Caffe installation was not found on your system.
Use the envvar CAFFE_ROOT to indicate a valid installation.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/mikulis/digits/digits/main.py", line 70, in
main()
File "/home/mikulis/digits/digits/main.py", line 53, in main
import digits.config
File "digits/config/init.py", line 7, in
from . import ( # noqa
File "digits/config/caffe.py", line 230, in
executable, version, flavor = load_from_path()
File "digits/config/caffe.py", line 54, in load_from_path
raise ValueError('Caffe executable not found in PATH')
ValueError: Caffe executable not found in PATH

thank you so much,
eric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants