FileNotFoundError: [WinError 2] The system cannot find the file specified
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:2
- Comments:9
Top 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 >
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

can you try the full path to 001001.mp3
“ayat\001001.mp3” look wrong to me
There are also quite a few issues from this error: https://github.com/jiaaro/pydub/issues?q=Couldn't+find+ffmpeg+or+avconv