WindowsError: [Error 2] The system cannot find the file specified
See original GitHub issuePlex && bw_plex environment: Windows 10 Pro 1809 Plex Server for windows Version 1.14.1.5488 latest pip update from bw_plex git watching plex playback on firefox 65.0.1
The file being read / passed to ffmpeg contains spaces. So this possibly is related to ticket: #54
bw_plex was launched via powershell with admin rights with the following input:
bw_plex --username [user] --password [pass] --servername [servername] --url [url] watch
I get the title error after starting up bw_plex, relevant log details below;
2019-02-24 10:01:58,007 :: bw_plex :: INFO :: __init__.py:162 :: default folder set to C:\Users\<user>/.config/bw_plex
2019-02-24 10:02:03,513 :: bw_plex :: DEBUG :: misc.py:64 :: Getting server <server>
2019-02-24 10:02:03,513 :: bw_plex :: DEBUG :: misc.py:625 :: Getting hashtable
2019-02-24 10:02:03,605 :: bw_plex :: INFO :: misc.py:711 :: Loading existing files in db
2019-02-24 10:02:06,016 :: bw_plex :: DEBUG :: misc.py:640 :: Files in the hashtable
Watching for media on <server>
2019-02-24 10:02:13,710 :: bw_plex :: DEBUG :: plex.py:1024 :: Failed to find ratingkey 4867 in the db
2019-02-24 10:02:13,726 :: bw_plex :: DEBUG :: plex.py:897 :: Found <episode>
2019-02-24 10:02:13,726 :: bw_plex :: DEBUG :: plex.py:902 :: Download the first 10 minutes of <episode> as .wav
2019-02-24 10:02:13,726 :: bw_plex :: DEBUG :: plex.py:727 :: Checking if we can reach <episode> directly
2019-02-24 10:02:13,726 :: bw_plex :: DEBUG :: plex.py:738 :: Found S:\Plex\TV\<show>\<season>\<episode>.mkv
2019-02-24 10:02:13,730 :: bw_plex :: DEBUG :: misc.py:380 :: calling ffmpeg with ffmpeg -i "S:\Plex\TV\<show>\<season>\<episode>.mkv" -ac 1 -ar 11025 -ss 0 -t 600 -acodec pcm_s16le c:\users\<user>\appdata\local\temp\offset_5gwnrl.wav
2019-02-24 10:02:13,734 :: bw_plex :: ERROR :: plex.py:48 :: There was an exception in task
Traceback (most recent call last):
File "c:\users\<user>\src\bw-plex\bw_plex\plex.py", line 43, in inner
return func(*args)
File "c:\users\<user>\src\bw-plex\bw_plex\plex.py", line 904, in task
trim=CONFIG['tv'].get('check_for_theme_sec', 600))
File "c:\users\<user>\src\bw-plex\bw_plex\misc.py", line 385, in convert_and_trim
psox = subprocess.Popen(cmd, stderr=subprocess.PIPE)
File "c:\python27\lib\subprocess.py", line 394, in __init__
errread, errwrite)
File "c:\python27\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
"WindowsError: [Error 2] The system cannot find the file ...
First, you can't just use python as the executable. On your system, you've got python on the %PATH% , and it's the right...
Read more >“Python WindowsError: [Error 2] The system cannot find the file ...
You are trying to access a file that does not exist (or is not in the indicated path). You should use some method...
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 >Re: "WindowsError: [Error 2] The system cannot find the file ...
I can launch FF by entering firefox or firefox.exe in the Run box, but neither work in a command prompt and Se2L lauches...
Read more >[Error 2] The system cannot find the file specified" sometimes ...
Hey, thanks Loic for reporting that bug! I think this is a race condition, because we are asking to stop the background downloads...
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
Thanks. Ill fix that bug. Closing this as the original bug was fixed. Let me know if you have any more issues
Thanks for the catch. It’s a bug. I have fixed it.