Skip to content
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

Error: module 'sounddevice' has no attribute 'OutputStream' #50

Closed
leeyanhuilyh opened this issue Jan 8, 2025 · 2 comments
Closed

Error: module 'sounddevice' has no attribute 'OutputStream' #50

leeyanhuilyh opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@leeyanhuilyh
Copy link

leeyanhuilyh commented Jan 8, 2025

Before continuing with the bug report, does updating to the latest version fix this issue? No

Describe the bug
When choosing preview, sounddevice encounters an error

ERROR    module 'sounddevice' has no attribute 'OutputStream'

I'm using Python 3.10.15, sounddevice v0.5.1, and PyMusicLooper v3.4.2

Debugging Information
Copy the command-line arguments used and the error message / stack trace if applicable. For ERROR messages, try to re-run the command with debugging enabled using the -d/--debug flag (e.g. pymusiclooper -i --debug play test.mp3) and provide the traceback output if available.

Optionally, include some brief information about the file(s) being loaded if relevant (e.g. file type/extension, file size, length, does the audio have an obvious loop point that algorithm failed to find?)

Expected behavior
Expected some music to be played, but honestly the preview feature has never worked for me before

Environment Information (please complete the following information):

  • OS: Ubuntu 20
  • PyMusicLooper version being used (execute pymusiclooper --version in the terminal if unsure): v3.4.2
  • Is FFmpeg installed and working? (execute ffmpeg --version in the terminal if unsure): Yes. v4.2.7-0ubuntu0.1

Additional context
Is there a way to debug in VSCode instead of using the --debug flag?

@leeyanhuilyh leeyanhuilyh added the bug Something isn't working label Jan 8, 2025
@arkrow
Copy link
Owner

arkrow commented Jan 11, 2025

It seems you don't have libportaudio installed. The error is a bit obtuse at the moment (till #49 is merged), but to resolve this, running sudo apt-get install libportaudio2 should be enough.

@leeyanhuilyh
Copy link
Author

Installing libportaudio2 worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants