elodie icon indicating copy to clipboard operation
elodie copied to clipboard

Final source and destination path should not be identical

Open navaneeth opened this issue 7 years ago • 4 comments

I have imported some photos. (elodie.py is in PATH)

cd ~
elodie.py import --album-from-folder --destination ~/Pictures /tmp/my-album

As expected, this created the following structure.

~ tree ~/Pictures/2017
/Users/navaneethkn/Pictures/2017
└── November
    └── my-album
        └── 2017-11-18_07-26-16-nkn_3455_5085-super-heroes-stage.jpg

Now, I am trying to update location info into the file.

~ elodie.py update --location=Bangalore ~/Pictures/2017/November/my-album

This fails with the following error:

Final source and destination path should not be identical
{"source":"/Users/navaneethkn/Pictures/2017/November/my-album/2017-11-18_07-26-16-nkn_3455_5085-super-heroes-stage.jpg", "destination":"None"}
****** ERROR DETAILS ******
File
-----------------------------------------------------------------------------------------------------------
/Users/navaneethkn/Pictures/2017/November/my-album/2017-11-18_07-26-16-nkn_3455_5085-super-heroes-stage.jpg


****** SUMMARY ******
Metric      Count
--------  -------
Success         0
Error           1

When I look at the image, it has the location info added. But the command was showing it as a failure.

navaneeth avatar Nov 24 '17 12:11 navaneeth

I went through the code. Looks like this is just a warning. Actual processing has happened

navaneeth avatar Nov 24 '17 13:11 navaneeth

It's a valid bug. The error is because despite the EXIF changes it does not change the destination folder because the album name trumps the location which in turn thinks the operation failed. It should not report an error. Since it returns before the end of the function there are lines of code which do not execute.

Thanks for reporting.

jmathai avatar Nov 26 '17 05:11 jmathai

Hi, I'm having the same problem today. For example I want to rename the location folder and it show the same error.

./elodie.py update --location="Utrera, Sevilla" /Folder/Unkown location/

Final source and destination path should not be identical

crishnakh avatar Nov 01 '20 17:11 crishnakh

Well, if you config MapQuest developer api, the error disappeared

crishnakh avatar Nov 01 '20 18:11 crishnakh