alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

ImportError: No module named repository #13

Closed mosherayman closed 9 years ago

mosherayman commented 9 years ago

I get the following error when i try to start the sample worker

moshe@cloud-server-04:~/kaldi-gstreamer-server/trunk$ uname -a Linux cloud-server-04 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux moshe@cloud-server-04:~/kaldi-gstreamer-server/trunk$ python kaldigstserver/worker.py -u ws://localhost:8888/worker/ws/speech -c sample_worker.yaml Traceback (most recent call last): File "kaldigstserver/worker.py", line 9, in from gi.repository import GObject ImportError: No module named repository

thanks

alumae commented 9 years ago

Try installing the python-gi package, let me know if it helps.

mosherayman commented 9 years ago

Did that and reinstalled it as well

thanks, Moshe On May 7, 2015 9:25 AM, "Tanel Alumäe" notifications@github.com wrote:

Try installing the python-gi package, let me know if it helps.

— Reply to this email directly or view it on GitHub https://github.com/alumae/kaldi-gstreamer-server/issues/13#issuecomment-99735770 .

alumae commented 9 years ago

So it works for you now?

mosherayman commented 9 years ago

No, same error

thanks, Moshe On May 7, 2015 10:23 AM, "Tanel Alumäe" notifications@github.com wrote:

So it works for you now?

— Reply to this email directly or view it on GitHub https://github.com/alumae/kaldi-gstreamer-server/issues/13#issuecomment-99753539 .

alumae commented 9 years ago

Try installing the package python-gobject, if not already installed.

mosherayman commented 9 years ago

no luck, already installed

alumae commented 9 years ago

Do you have many versions of python installed? What is the output of command which python?

mosherayman commented 9 years ago

i am new to python, and decided that I must have messed up the install

so I started form scratch, and now the onlinegmmdecodefaster is working, thanks for your help and patients

all I needed to do is apt-get install python-gi

and I see that is in the README

just a few comments, you should mention in your README.md that when compiling kaldi, you should use the --shared flag in configure.

Also to install ws4py pip install ws4py==3.2.0 does not work

it should be pip install ws4py==0.3.2

On Fri, May 8, 2015 at 9:53 AM, Tanel Alumäe notifications@github.com wrote:

Do you have many versions of python installed? What is the output of command which python?

— Reply to this email directly or view it on GitHub https://github.com/alumae/kaldi-gstreamer-server/issues/13#issuecomment-100126399 .