CSTR-Edinburgh / merlin

This is now the official location of the Merlin project.
http://www.cstr.ed.ac.uk/projects/merlin/
Apache License 2.0
1.31k stars 440 forks source link

ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.7 or higher required) #418

Closed mythilisharan closed 5 years ago

mythilisharan commented 5 years ago

I have installed the following tools but still, I am getting the above error when I am running slt_arctic /s1 run_demo.sh please help me to solve this issue... and its not using the nvidia 1050 graphic card please help me in this issue...

PATH: 2018-12-29 12:32:31,821 INFO main : /usr/local/cuda-10.0/bin 2018-12-29 12:32:31,821 INFO main : /usr/local/HTS-2.3/bin 2018-12-29 12:32:31,821 INFO main : /media/vak/ubuntu_bin/tts/htk/HTKTools 2018-12-29 12:32:31,821 INFO main : /media/vak/ubuntu_bin/tts/festival/bin 2018-12-29 12:32:31,821 INFO main : /media/vak/ubuntu_bin/kaldi-master/tools/python 2018-12-29 12:32:31,821 INFO main : /usr/local/texlive/2016/bin/i386-linux 2018-12-29 12:32:31,821 INFO main : /home/vak/bin 2018-12-29 12:32:31,821 INFO main : /home/vak/.local/bin 2018-12-29 12:32:31,821 INFO main : /usr/local/sbin 2018-12-29 12:32:31,821 INFO main : /usr/local/bin 2018-12-29 12:32:31,821 INFO main : /usr/sbin 2018-12-29 12:32:31,821 INFO main : /usr/bin 2018-12-29 12:32:31,821 INFO main : /sbin 2018-12-29 12:32:31,821 INFO main : /bin 2018-12-29 12:32:31,821 INFO main : /usr/games 2018-12-29 12:32:31,821 INFO main : /usr/local/games 2018-12-29 12:32:31,821 INFO main : /snap/bin 2018-12-29 12:32:31,821 INFO main : /media/vak/ubuntu_bin/kaldi-master/tools/irstlm/bin 2018-12-29 12:32:31,822 INFO main : /media/vak/ubuntu_bin/kaldi-master/tools/srilm/bin 2018-12-29 12:32:31,822 INFO main : /media/vak/ubuntu_bin/kaldi-master/tools/srilm/bin/i686-m64 2018-12-29 12:32:31,822 INFO main : LD_LIBRARY_PATH: 2018-12-29 12:32:31,822 INFO main : /usr/local/cuda/lib64 2018-12-29 12:32:31,822 INFO main : /media/vak/ubuntu_bin/kaldi-master/tools/liblbfgs-1.10/lib/.libs 2018-12-29 12:32:31,822 INFO main : /home/vak/.local/lib 2018-12-29 12:32:31,822 INFO main : /home/vak/.local/lib 2018-12-29 12:32:31,822 INFO main : /home/vak/.local/lib 2018-12-29 12:32:31,822 INFO main : /home/vak/.local/lib 2018-12-29 12:32:31,822 INFO main : Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] 2018-12-29 12:32:31,822 INFO main : PYTHONPATH: 2018-12-29 12:32:31,822 INFO main : Numpy version: 1.15.4 2018-12-29 12:32:31,822 INFO main : Theano version: 1.0.3 2018-12-29 12:32:31,822 INFO main : THEANO_FLAGS: mode=FAST_RUN,device=cuda0,cuda.root=/usr/local/cuda,floatX=float32,on_unused_input=ignore 2018-12-29 12:32:31,822 INFO main : device: cuda0 Git is available in the working directory: 2018-12-29 12:31:46,471 INFO main : Merlin version: b'Merlin_V0-227-g6ab3ccc' 2018-12-29 12:31:46,476 INFO main : branch: b'master' 2018-12-29 12:31:46,482 INFO main : diff to Merlin version: 2018-12-29 12:31:46,483 INFO main : M egs/slt_arctic/s1/run_demo.sh 2018-12-29 12:31:46,483 INFO main : M egs/slt_arctic/s1/scripts/submit.sh 2018-12-29 12:31:46,483 INFO main : M requirements.txt 2018-12-29 12:31:46,483 INFO main : M src/run_merlin.py 2018-12-29 12:31:46,483 INFO main : M src/setup_env.sh 2018-12-29 12:31:46,483 INFO main : (all diffs logged in feed_forward_4_tanh_12_31PM_December_29_2018.log.gitdiff) 2018-12-29 12:31:46,503 INFO main : Execution information: 2018-12-29 12:31:46,506 INFO main : HOSTNAME: ubuntu.ubuntu-domain 2018-12-29 12:31:46,506 INFO main : USER: vak 2018-12-29 12:31:46,506 INFO main : PID: 11459 2018-12-29 12:31:46,538 INFO main : Input label dimension is 416 2018-12-29 12:31:46,539 INFO main : preparing label data (input) using standard HTS style labels

Yablon commented 5 years ago

I think you can try to import pygpu in a python script. Solve the problems if any, and then try again.

brendanruff commented 5 years ago

Hi. Did you manage to fix this ? I just installed latest theano1.0.3 with latest Conda using python 3.7 and since the upgrade I get the same pygpu version 0.7 or higher problem. Also I could not directly import pygpu as the module is not found. All help appreciated

brendanruff commented 5 years ago

ah it is theano.gpuarray rather than pygpu. I wonder why it has two different names ? Maybe pygpu is a class within gpuarray, in either case you cannot import pygpu as such.