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

can't find '__main__' module #119

Open
ralf3u opened this issue Mar 15, 2024 · 3 comments
Open

can't find '__main__' module #119

ralf3u opened this issue Mar 15, 2024 · 3 comments

Comments

@ralf3u
Copy link

ralf3u commented Mar 15, 2024

In Lubuntu 23.04 nerd-dicaction worked, but in Lubuntu 23.10 nerd-dictation does not work.

In Lubuntu 23.04 this worked when installing vosk in the terminal:
pip3 install vosk
But in Lubuntu 23.10 it does not work, so I had to do this in the terminal:

sudo apt install pipx
pipx ensurepath

close terminal
reopen terminal

pipx install vosk
vosk-transcriber -h

the answer was: command not found
I restarted the computer and then this line worked:
vosk-transcriber -h

It says that my PATH is in .local/bin/

in the terminal I did:

git clone https://github.com/ideasman42/nerd-dictation.git

then I created in nerd-dictation a new folder called model;
in this model I pasted the content of vosk-model-en-us-0.42-gigaspeech

in the terminal I did:
sudo apt install xdotool

in the terminal I did:
python3 nerd-dictation begin

the answer is:
/usr/bin/python3: can't find main module in '/home/t/nerd-dictation'

There should be just a small mistake somewhere, but I don't know where.

Thank you very much for your help in advance.

@ralf3u
Copy link
Author

ralf3u commented Mar 15, 2024

This works in the terminal:
vosk-transcriber -i 1.ogg -o test1.txt
So, vosk is working.

@ralf3u
Copy link
Author

ralf3u commented Mar 15, 2024

Also this works in the terminal:
vosk-transcriber -m /home/t/nerd-dictation/model-en/ -i 1.ogg -o test1.txt

@ralf3u
Copy link
Author

ralf3u commented Mar 23, 2024

The program nerd-dictation does not work because as I mentioned in the report I couldn't install
pip3 install vosk
so I had to continue the installation of vosk like this:
sudo apt install pipx

Is there still a possibility to run nerd-dictation even if I installed vosk with the command above?

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

No branches or pull requests

1 participant