-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help request: No files to parse or invalid data #112
Comments
I have the same issue that it kept showing 'No files to parse or invalid data'. I tried to change the path of src_dir and dest_dir, then it worked! Try 'python sortphotos.py dest_dir dest_dir'. |
The error comes about if exiftool (a 3rd party dependency) has a failure. I don't have much control over that, but if I had some example files that caused problems maybe I could figure something out. |
@andrewning: Perhaps I can provide you with some not working testing files (images and movies) which are maybe corrupted after recovery from 'photorec' tool from an overridden HDD. I have to check first with my customer that it is ok for him to send you some of these files. |
Did anyone figure out how to get around this? |
I just found out what my problem was. I had downloaded all my pictures (300+ gb) from google photos, and i tried to sort them after my preference. |
Hi, having the same error and wondering if this is to do with files in the cloud which are not downloaded onto my laptop so they are not seen. (I have tried downloading a few of them and then the script runs). Any ideas on how to solve this (I really don't want to download over 150 gb of photos)? |
What are you trying to solve? |
@AMacleod79 this script can only organize local files. It cannot organize files in the cloud. |
I had the same problem, in the end it was due to an ä in the name of the folder following the evaluated file. Renaming solved it. Poor umlaut-users of the world... |
root cause seems to be incorrect (?) escaping of path- and filenames in exiftools as surmised by @andrewning. workaround: ensure paths included no characters that needed escaping (also would apply to @nicbehr's issue). The issue occured to me for various JPGs, but the files itself were unconspicious. I first assumed that the binary EXIF comments might be the cause or other vendor-specific code in the EXIF timestamps ( However, they were located in a nested folder with spaces ( Besides - sortphotos.py saved me days of work, so thanks a lot :-)
|
Not sure about all the cases, but at least the issue I encountered resulting in this error is in the python code of the script, not in exiftool. The script always tries to parse json output of exiftool using the fixed buffer of size 4096. If a multibyte unicode character happen to be split and has its bytes in different slices the utf-8 decoding of the buffer fails. |
Setting the fixed buffer to 8192 can help to reduce the odds to observe this issue. |
Hello,
while parsing my chaotic image library, i sometimes get the message: 'No files to parse or invalid data'. I get the point that some image files may be corrupt, but it would be nice if the script would just skip them instead of stopping completely.
I have over 100k images and i never made it to the point where the script is actually moving the files into folder...
Is there already an option to skip those corrupt files or do i need to make a feature request?
Regards
The text was updated successfully, but these errors were encountered: