ImportError: No module named centralDefault

88 views
Skip to first unread message

gaurav

unread,
May 30, 2016, 3:24:46 PM5/30/16
to expresso-users
Hi all,
       i have done the caffe installation and expresso installation as mentioned in the instructions.
when i run sh run_expresso.sh it shows following error

None ROOT
Traceback (most recent call last):
  File "/home/gaurav/expresso/src/main/main.py", line 43, in <module>
    import centralDefault
ImportError: No module named centralDefault

any idea why it is not running?

Jaley Dholakiya

unread,
May 30, 2016, 3:40:13 PM5/30/16
to expresso-users
It is because environment variable $EXPRESSO_ROOT is not properly set. Refer to previous errors. 

Jaley Dholakiya

unread,
May 30, 2016, 3:41:28 PM5/30/16
to expresso-users
It seems that your EXPRESSO_ROOT and CAFFE_ROOT variables are not set. Add it in your ~/.bashrc file+source it as per your installation instructions and restart your PC. echo $EXPRESSO_ROOT after that. If it still gives blank line, inform me . . .

gaurav

unread,
May 30, 2016, 4:17:19 PM5/30/16
to expresso-users
I did not get any error while installing expresso.
echo $EXPRESSO_ROOT and echo CAFFE_ROOT is giving correct path.

I have edited ~/.bashrc file with following lines

CAFFE_ROOT='/home/gaurav/caffe'

EXPRESSO_ROOT='/home/gaurav/expresso'

HTTP_PROXY=https://user:pa...@202.141.80.80:3128

can you tell me the content which needs to add in ~/.bashrc file. I'll reinstall it.

Jaley Dholakiya

unread,
May 31, 2016, 12:37:23 AM5/31/16
to expresso-users
ping me the exact stack of error log.

tm.n...@digeiz.com

unread,
Aug 5, 2016, 11:13:37 AM8/5/16
to expresso-users
I did get the same error when i run python main.py, any solution published yet?

Jaley Dholakiya

unread,
Aug 5, 2016, 12:24:51 PM8/5/16
to expresso-users
running main.py won't work if environment variables are not properly set.  If you open any view file, the imports are with respect to $EXPRESSO_ROOT env variable. All I would suggest is try to set environment variable properly. The easy way to verify if the env variables are set is by typing "echo $EXPRESSO_ROOT" and "echo $CAFFE_ROOT" from terminal.
Reply all
Reply to author
Forward
0 new messages