this one helps. In my case, if the file isn't being found when using python - check for special non-printing characters in the filename. Remove all Carriage returns and Newlines and Linefeeds from the filename and you can check for other characters on linux with ls -b to see what needs to be escaped.
Python subprocess File not found
By : TJP
Date : March 29 2020, 07:55 AM
this will help I am trying to find the file type using file with subprocess , Add space between 'file' and fileinput