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.

FileNotFoundError: [WinError 2] The system cannot find the file specified

See original GitHub issue

I am trying to open an mp3 file with the following command: Here is the code

from pydub import AudioSegment finish = AudioSegment.from_mp3("ayat\\001001.mp3") It used to work then I added something to PATH yesterday and today it is not working at all. I’ve tried everything: Change Path, add AudioSegment.converter = r"C:\\ffmpeg\\bin\\ffmpeg.exe" and it still doesn’t work

  • Python version: Python 3.6.5
  • Pydub version: AudioSegment.converter = r"C:\ffmpeg\bin\ffmpeg.exe"
  • ffmpeg/avlib version: not sure

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

1reaction
Axel-Erfurtcommented, Aug 13, 2018

can you try the full path to 001001.mp3

“ayat\001001.mp3” look wrong to me

0reactions
tt-thomacommented, Dec 3, 2022

There are also quite a few issues from this error: https://github.com/jiaaro/pydub/issues?q=Couldn't+find+ffmpeg+or+avconv

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileNotFoundError: [WinError 2] The system cannot find the file ...
As written you're looking for a file named 0.jpg in the working directory. You want to be looking in the directory you pass...
Read more >
FileNotFoundError: [WinError 2] The system cannot find the file ...
Hello guys, I am trying to run the script below in python and I keep getting this error [FileNotFoundError: [WinError 2] The system...
Read more >
FileNotFoundError: [WinError 2] the System Cannot Find the ...
When you get the FileNotFoundError: [WinError 2] The system cannot find the file specified error message, it means that Windows Explorer has ...
Read more >
[WinError 2] The system cannot find the file specified' mean in ...
I think it is saying that in your function check_output you referenced a file. Does that file exist at the file path location...
Read more >
Fix 'FileNotFoundError: [Winerror 2] the System Cannot find ...
Windows might be blocking the IDE from executing the program due to security reasons. Ensure that you disable the built-in firewall and ...
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