andrewning / sortphotos

SortPhotos is a Python script that organizes photos and videos into folders using date/time information
1.05k stars 311 forks source link

Script failed on Raspberry Pi #75

Open JKarthaus opened 8 years ago

JKarthaus commented 8 years ago

I'm not a Python Guy but it seems there is a strange Date parsing Issue on RPI. I hava a Test JPG that run correctly on my Ubuntu Notebook

on a RPI the Script cannot parse the Exif Data

python sortphotos.py -t -r /root/test/src/ /root/test/dest/ --use-only-groups EXIF

Preprocessing with ExifTool.  May take a while for a large number of files.
    1 directories scanned
    1 image files read
[{
  "SourceFile": "/root/test/src/DSC_0013_12.JPG",
  "EXIF:ModifyDate": "2016:07:11 06:59:16",
  "EXIF:DateTimeOriginal": "2016:07:11 06:59:16",
  "EXIF:CreateDate": "2016:07:11 06:59:16",
  "EXIF:SubSecTime": 599354,
  "EXIF:SubSecTimeOriginal": 599354,
  "EXIF:SubSecTimeDigitized": 599354
}]
{ready}

[1/1](TEST - no files are being moved/copied) Source: /root/test/src/DSC_0013_12.JPG No valid dates were found using the specified tags. File will remain where it is.

eirism commented 8 years ago

What python version are you running?

JKarthaus commented 8 years ago

I use the OMV Distribution on the PI.

python --version give

Python 2.7.3

eirism commented 8 years ago

Can you try running this script on the PI? It is the date parsing code from this project. If will crash if the date parsing doesn't work.

greymatter13 commented 6 years ago

Any update on this bugs? I can't get it to work. I test using the script by eirism, its work fine. However using the sortphotos, I have the exact problem as JKaurthaus, I use Python 2.7.13.

eirism commented 6 years ago

Does it work if you use all groups, i.e. drop the --use-only-groups EXIF argument?

greymatter13 commented 6 years ago

I managed to solve it by having a work around. I am running this sortphotos.py inside another program, so instead of running sortphotos.py straightaway, i let my other python program to wait for some seconds before it execute sortphotos.py. Now my photo sorting works.