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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ModuleNotFoundError: No module named 'preferredsoundplayer' #19
Comments
Yeah about that, preferred-sound-player is not in the AUR. In the meantime you can install it by this command:
|
Why is this a mandatory module which leads to a crash when missing instead of being optional with a note when booting? Based on the name this module looks like bloat for those who don't care about having sound be played by python. |
I agree. I don't need sound. |
I was using playsound but somehow it's not working on linux anymore... So the alternative..... which seemed to work just fine
Hmm, ig I'll add a parameter such as |
Requiring a parameter to not crash doesn't feel good to me. Consider automatically detecting the lack of sound modules and entering mute mode on top of having opt-in or opt-out for sound. |
No I am not suggesting this as an alternative to crashing. Crashing was due to the reason that the sound module was not packaged for the AUR.
I don't see how this is feasible. The sound gets installed along with termtyper. As far as I know, python does not have method for 'optional' installation (something like rust does) |
I got this same crash with git clone, cd, install, cd ~, termtyper on Ubuntu 22.04. It's not AUR specific. |
I see. Can you add any pictures? |
I initially fixed this with the suggested
I can at a later date say if things differ after a clean system install as I'm going to reformat my drive. |
This is the same traceback that I got when I opened this issue. |
Copy the following and replace it -->>> "play_keysound.py" from threading import Thread from ..utils import Parser SOUNDS_LOC = path.join(path.dirname(file), "..", "sounds") def get_sound_location(sound: str) -> str: def play(sound_file: str) -> None: def play_keysound() -> None: def play_failed() -> None: |
My bad, I just ran the test file without actually installing it with pip.. I've pushed the updates |
The error has been fixed and a |
Describe the bug 馃悰
I've installed termtpye via the AUR. I had to choose between the repository or the AUR package for python-playsound and chose the repository version. When starting termtype I get the following error:
To Reproduce 馃悾
See bug description.
Expected behavior 馃
It should work after installing the package.
Screenshots 馃
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): 馃
Additional context 馃摑
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: