[BUG] ModuleNotFoundError: No module named 'preferredsoundplayer'
See original GitHub issueDescribe 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:
Traceback (most recent call last):
File "/usr/bin/termtyper", line 5, in <module>
from termtyper.__init__ import main
File "/usr/lib/python3.10/site-packages/termtyper/__init__.py", line 1, in <module>
from .ui import TermTyper
File "/usr/lib/python3.10/site-packages/termtyper/ui/__init__.py", line 1, in <module>
from .tui import TermTyper
File "/usr/lib/python3.10/site-packages/termtyper/ui/tui.py", line 12, in <module>
from termtyper.ui.settings_options import MenuSlide
File "/usr/lib/python3.10/site-packages/termtyper/ui/settings_options.py", line 11, in <module>
from termtyper.ui.widgets import banners
File "/usr/lib/python3.10/site-packages/termtyper/ui/widgets/__init__.py", line 2, in <module>
from .race_hud import RaceHUD
File "/usr/lib/python3.10/site-packages/termtyper/ui/widgets/race_hud.py", line 10, in <module>
from ...utils import Parser
File "/usr/lib/python3.10/site-packages/termtyper/utils/__init__.py", line 3, in <module>
from .play_keysound import play_keysound, play_failed
File "/usr/lib/python3.10/site-packages/termtyper/utils/play_keysound.py", line 2, in <module>
from preferredsoundplayer import playsound
ModuleNotFoundError: No module named 'preferredsoundplayer'
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): 🤖
- OS: Manjaro
Additional context 📝 Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:13 (6 by maintainers)
Top Results From Across the Web
[Bug] ModuleNotFoundError: No module named 'torch.ao' #68
Following setup instructions at present will lead to an error on the model import. Specifically, torchvision needs to be pinned to a version ......
Read more >How to fix the bug "ModuleNotFoundError: No module named ...
1 Answer 1 · 1) Open the docx.py · 2) You'll find this: row | code 25 | try: 26 | from PIL....
Read more >preferredsoundplayer - PyPI
PreferredSoundPlayer. This is my preferential player when I need to play various sound files in a project. It is multi-platform and has no...
Read more >ModuleNotFoundError: no module named Python Error [Fixed]
When you try to import a module in a Python file, Python tries to resolve this module in several ways. Sometimes, Python throws...
Read more >Error: “ModuleNotFoundError: No Module Named... - Intel
Encountered the following error: from openvino.model_zoo.model_api.performance_metrics import PerformanceMetrics ModuleNotFoundError: No module named ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah about that, preferred-sound-player is not in the AUR. So I am not so sure how to approach this. Ig I’ll add a pip command in pkgbuild, tho I don’t prefer this 😦
In the meantime you can install it by this command:
The error has been fixed and a
quiet mode
flag feature has been added in this commit