question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ModuleNotFoundError: No module named 'preferredsoundplayer'

See original GitHub issue

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:

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:closed
  • Created a year ago
  • Reactions:5
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kraanzucommented, Jul 18, 2022

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:

pip install preferredsoundplayer
0reactions
kraanzucommented, Jul 27, 2022

The error has been fixed and a quiet mode flag feature has been added in this commit

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found