savbell / whisper-writer

💬📝 A small dictation app using OpenAI's Whisper speech recognition model.
GNU General Public License v3.0
244 stars 40 forks source link

Missing requirements: pycairo PyGObject #43

Closed faspie closed 1 month ago

faspie commented 1 month ago

1) First startup of WhsiperWriter fails Starting WhisperWriter... Traceback (most recent call last): File "/home/fabian/whisper-writer/src/main.py", line 7, in <module> from audioplayer import AudioPlayer File "/home/fabian/whisper-writer/venv/lib/python3.10/site-packages/audioplayer/__init__.py", line 12, in <module> from .audioplayer_linux import AudioPlayerLinux as AudioPlayer File "/home/fabian/whisper-writer/venv/lib/python3.10/site-packages/audioplayer/audioplayer_linux.py", line 7, in <module> import gi ModuleNotFoundError: No module named 'gi' 2) I solved the problem by adding some dependencies according to https://stackoverflow.com/questions/71369726/no-module-named-gi

sudo apt install libcairo2-dev libxt-dev libgirepository1.0-dev pip install pycairo PyGObject 3) Now the startup fails because I am not root --> https://github.com/savbell/whisper-writer/issues/42

savbell commented 1 month ago

Hi, thanks for the bug report! The application was built for Python 3.11, but I noticed in your error message you were attempting to run it with 3.10. That may be causing some of your issues. If you receive the same error again when running with 3.11, please open another issue and I will see if something needs to be added to the dependencies!

Cheers, Sav

robcxyz commented 2 weeks ago

I can confirm that on ubuntu with python 3.11 that additional deps are needed per this issue.

sudo apt install libcairo2-dev libxt-dev libgirepository1.0-dev 
pip install pycairo PyGObject