-
Notifications
You must be signed in to change notification settings - Fork 54
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
ModuleNotFoundError: No module named 'keyboard' #41
Comments
Hi Patrick, Did you follow all the directions in the Installation part of the Readme, including creating and activating a virtual Python environment? My guess would be you haven't run the command Please let me know if you have followed all the directions and run all the commands and are still encountering this issue. If that's the case, please also let me know what platform you are running WhisperWriter on and which version of Python you are using. Thanks, |
Hi Savbell, ERROR: Cannot install -r requirements.txt (line 14) and av==10.0.0 because these package versions have conflicting dependencies. The conflict is caused by: Any suggestion ? thanks, patrick |
Hi Patrick, Thanks for your response! What you're encountering is an error that has since been fixed in the latest commits. Try running Cheers, |
Hi Sav, Pip install -r requirements.txt report this warning : WARNING: Generating metadata for package evdev produced metadata for project name unknown. Fix your #egg=evdev fragments. Then when running python3 run.py Starting WhisperWriter... Sorry not to be able to understand these. thanks, patrick |
Hi Patrick, It looks like the error is indicating the PortAudio library is either not installed or can't be found. You can try installing the PortAudio development package:
And then reinstalling
Hopefully that resolves your issue! Please let me know if it doesn't. Thanks, |
Hi Sav, I encounter this error after pip install -r requirements.txt : Using cached lit-18.1.4-py3-none-any.whl (96 kB) × Building wheel for evdev (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. Thanks for any suggestion, |
Hi Patrick, I'm sorry you're running into so many errors trying to install the packages! This error seems to be due to a missing
And then you can try installing the packages again. I hope that helps! Cheers, |
Hey, ...
Collecting numba==0.57.0 (from -r requirements.txt (line 40))
Downloading numba-0.57.0.tar.gz (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 4.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed Siddiqui\AppData\Local\Temp\pip-build-env-hk1l7p6h\overlay\Lib\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed Siddiqui\AppData\Local\Temp\pip-build-env-hk1l7p6h\overlay\Lib\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "C:\Users\Ahmed Siddiqui\AppData\Local\Temp\pip-build-env-hk1l7p6h\overlay\Lib\site-packages\setuptools\build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Ahmed Siddiqui\AppData\Local\Temp\pip-build-env-hk1l7p6h\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup
exec(code, locals())
File "<string>", line 51, in <module>
File "<string>", line 48, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.12.1; only versions >=3.8,<3.12 are supported.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. So I created a virtual environment with Python 3.10 using uv, an "extremely fast Python package installer and resolver" and then I could install all the requirements. However, I'm still missing the ➜ python run.py
Starting WhisperWriter...
Traceback (most recent call last):
File "C:\dev\whisper-writer\.venv\lib\site-packages\sounddevice.py", line 71, in <module>
raise OSError('PortAudio library not found')
OSError: PortAudio library not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\dev\whisper-writer\src\main.py", line 10, in <module>
from result_thread import ResultThread
File "C:\dev\whisper-writer\src\result_thread.py", line 4, in <module>
import sounddevice as sd
File "C:\dev\whisper-writer\.venv\lib\site-packages\sounddevice.py", line 80, in <module>
import _sounddevice_data
ModuleNotFoundError: No module named '_sounddevice_data' System Information:
|
Hello,
I try to run whisper-writer, but this message comes up : ModuleNotFoundError: No module named 'keyboard'
pv@portpat:~/whisper-writer$ python3 run.py
Starting WhisperWriter...
Traceback (most recent call last):
File "/home/pv/whisper-writer/src/main.py", line 6, in
import keyboard
ModuleNotFoundError: No module named 'keyboard'
Any idea to help ?
thanks, patrick
The text was updated successfully, but these errors were encountered: