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.

Problem: "Could not load file test.mp3. Maybe it is not a supported file format? Error is No audio I/O backend is available.."

See original GitHub issue

❓ Questions

Windows 10 64, Anaconda 3.7 The previous version worked fine for me but I can’t make the latest version run. =(

python.exe -m pip install -U demucs

This seems to pass successfully: “Successfully installed demucs-2.0.0 diffq-0.1.0 julius-0.2.3 lameenc-1.3.1 torch-1.8.1 torchaudio-0.8.1 typing-extensions-3.7.4.3”

python.exe -m demucs.separate -d cpu test.mp3

C:\Users\Vita\Anaconda3\lib\site-packages\torchaudio\extension\extension.py:13: UserWarning: torchaudio C++ extension is not available. warnings.warn(‘torchaudio C++ extension is not available.’) C:\Users\Vita\Anaconda3\lib\site-packages\torchaudio\backend\utils.py:89: UserWarning: No audio backend is available. warnings.warn(‘No audio backend is available.’) Separated tracks will be stored in C:\Users\Vita\music-separation\demucs2021\separated\demucs_quantized Separating track test.mp3 Could not load file test.mp3. Maybe it is not a supported file format? Error is No audio I/O backend is available…

I get the same error message with other files (mp3 or wav) and/or full path too. Any suggestions what’s wrong? Do the warnings matter? (The previous version of demucs does not display any.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
adefossezcommented, Apr 30, 2021

Doing pip install soundfile should fix the issue 😃

1reaction
vitaconcommented, Apr 30, 2021

I changed it mostly to reduce the number of dependencies,

I see.

Sorry for the disturbance! It is really hard to support properly all OSes.

I totally understand that.

As a temporary fix, you should still be able to save as mp3s files with the --mp3 flag.

It’s a nice paradox but it really worked! =)

Doing pip install soundfile should fix the issue 😃

And it really does! The installation even did not take 2 hour 😉 and saving to .wav works now.

Thanks a lot! =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot import torch audio ' No audio backend is available.'
I tried to install PySoundFile from conda distribution conda install -c conda-forge pysoundfile but it doesn't work. conda install -c conda- ...
Read more >
How to Fix the Audio Codec Not Supported Error? - YouTube
In this video, we'll take a closer look at the “ audio codec not supported ” problem. We have explained different methods that'll...
Read more >
Full Text Bug Listing - Red Hat Bugzilla
Open Firefox, and try to play back an MP3 file with it. ... and the site shows a message that my browser does...
Read more >
PulseAudio - ArchWiki
PulseAudio is a general purpose sound server intended to run as a middleware between your applications and your hardware devices, ...
Read more >
Bug listing with status RESOLVED with resolution TEST ...
Bug:233 - "Emacs segfaults when merged through the sandbox." status:RESOLVED resolution:TEST-REQUEST severity:critical · Bug:3888 - "yenta_socket module not ...
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