folders2flickr icon indicating copy to clipboard operation
folders2flickr copied to clipboard

Error creating sets.

Open apsco opened this issue 10 years ago • 4 comments

I deleted the history file, remove the logs and wiped everything from flickr. My config has the following: only_sub_sets = false full_folder_tags = true

I go to upload 4 pictures in 2 different directories. ./archive1/Quebec City, Sept 2005: IMG_7876.JPG IMG_7877.JPG ./archive1/Sterwart Park, Perth: IMG_7872.JPG IMG_7873.JPG

I get the following script output: using uploadr.ini file "/root/folders2flickr/uploadr.ini" 2014-08-26 23:57:07,441 Uploading image /share/photos/test/archive1/Quebec City, Sept 2005/IMG_7876.JPG with tags #/archive1/Quebec#City,#Sept#2005/IMG_7876.JPG "" "archive1" "Quebec City, Sept 2005" 2014-08-26 23:57:15,966 Uploading image /share/photos/test/archive1/Quebec City, Sept 2005/IMG_7877.JPG with tags #/archive1/Quebec#City,#Sept#2005/IMG_7877.JPG "" "archive1" "Quebec City, Sept 2005" 2014-08-26 23:57:30,395 Uploading image /share/photos/test/archive1/Sterwart Park, Perth/IMG_7872.JPG with tags #/archive1/Sterwart#Park,#Perth/IMG_7872.JPG "" "archive1" "Sterwart Park, Perth" 2014-08-26 23:57:39,393 Uploading image /share/photos/test/archive1/Sterwart Park, Perth/IMG_7873.JPG with tags #/archive1/Sterwart#Park,#Perth/IMG_7873.JPG "" "archive1" "Sterwart Park, Perth" Generating set archive1 Quebec City, Sept 2005 with 2 pictures 2014-08-26 23:57:51,178 tags2set: Cannot edit set archive1 Quebec City, Sept 2005 2014-08-26 23:57:51,179 mismatched tag: line 162, column 2 2014-08-26 23:57:51,180 <class 'xml.parsers.expat.ExpatError'> Generating set archive1 Quebec City, Sept 2005 with 2 pictures Generating set archive1 Sterwart Park, Perth with 2 pictures

At the end of the debug.log I see: 2014-08-26 23:57:47,735 DEBUG tags2set: Started tags2set 2014-08-26 23:57:48,846 DEBUG tags2set: Adding image /archive1/Quebec City, Sept 2005/IMG_7876.JPG 2014-08-26 23:57:48,846 DEBUG tags2set: Adding image /archive1/Quebec City, Sept 2005/IMG_7877.JPG 2014-08-26 23:57:48,848 DEBUG Generating set archive1 Quebec City, Sept 2005 with 2 pictures 2014-08-26 23:57:48,849 DEBUG tags2set: create set archive1 Quebec City, Sept 2005 with photo <Flickr Photo 14863030469> 2014-08-26 23:57:49,859 DEBUG tags2set: created new set archive1 Quebec City, Sept 2005 2014-08-26 23:57:51,178 ERROR tags2set: Cannot edit set archive1 Quebec City, Sept 2005 2014-08-26 23:57:51,179 ERROR mismatched tag: line 162, column 2 2014-08-26 23:57:51,180 ERROR <class 'xml.parsers.expat.ExpatError'> 2014-08-26 23:57:51,181 DEBUG tags2set: ...added 2 photos 2014-08-26 23:57:51,182 DEBUG tags2set: Adding image /archive1/Sterwart Park, Perth/IMG_7872.JPG 2014-08-26 23:57:51,183 DEBUG tags2set: Adding image /archive1/Sterwart Park, Perth/IMG_7873.JPG 2014-08-26 23:57:51,186 DEBUG Generating set archive1 Quebec City, Sept 2005 with 2 pictures 2014-08-26 23:57:51,186 DEBUG tags2set: create set archive1 Quebec City, Sept 2005 with photo <Flickr Photo 14863030469> 2014-08-26 23:57:52,069 DEBUG tags2set: created new set archive1 Quebec City, Sept 2005 2014-08-26 23:57:53,565 DEBUG tags2set: ...added 2 photos 2014-08-26 23:57:53,567 DEBUG Generating set archive1 Sterwart Park, Perth with 2 pictures 2014-08-26 23:57:53,568 DEBUG tags2set: create set archive1 Sterwart Park, Perth with photo <Flickr Photo 15049401662> 2014-08-26 23:57:54,475 DEBUG tags2set: created new set archive1 Sterwart Park, Perth 2014-08-26 23:57:56,003 DEBUG tags2set: ...added 2 photos

Whats wrong?

thanks

apsco avatar Aug 27 '14 04:08 apsco

Were the sets created in flickr? I guess not (or you wouldn't report the issue!) but the log is a bit inconclusive - ERROR on the one hand then "added" later. I'll see if I can reproduce the problem. Maybe the "," in the set name is annoying it somehow.

richq avatar Aug 27 '14 09:08 richq

Yes they were created in Flickr. Two for the quebec City and one for the Perth. I deleted everything (history file, and all the logs) and removed everything from flickr again and reran.

This time no error, but once again two entries for Quebec City and one for Perth.

using uploadr.ini file "/root/folders2flickr/uploadr.ini" 2014-08-27 20:52:36,962 Uploading image /share/photos/test/archive1/Quebec City, Sept 2005/IMG_7876.JPG with tags #/archive1/Quebec#City,#Sept#2005/IMG_7876.JPG "" "archive1" "Quebec City, Sept 2005" 2014-08-27 20:52:44,197 Uploading image /share/photos/test/archive1/Quebec City, Sept 2005/IMG_7877.JPG with tags #/archive1/Quebec#City,#Sept#2005/IMG_7877.JPG "" "archive1" "Quebec City, Sept 2005" 2014-08-27 20:52:53,671 Uploading image /share/photos/test/archive1/Sterwart Park, Perth/IMG_7872.JPG with tags #/archive1/Sterwart#Park,#Perth/IMG_7872.JPG "" "archive1" "Sterwart Park, Perth" 2014-08-27 20:53:06,700 Uploading image /share/photos/test/archive1/Sterwart Park, Perth/IMG_7873.JPG with tags #/archive1/Sterwart#Park,#Perth/IMG_7873.JPG "" "archive1" "Sterwart Park, Perth" Generating set archive1 Quebec City, Sept 2005 with 2 pictures Generating set archive1 Quebec City, Sept 2005 with 2 pictures Generating set archive1 Sterwart Park, Perth with 2 pictures

Looking in Flickr, I just have the three sets, but I'm expecting just the two.

Daryl

apsco avatar Aug 28 '14 00:08 apsco

Any idea why I get three sets created when I should only have the two? The Quebec City set gets created twice.

apsco avatar Sep 02 '14 18:09 apsco

It creates some sets multiple times

in this log http://paste.ubuntu.com/9477776/

you can see that it creates the following sets multiple times "AGM 2005" "BBQ 3rd june 07"

I have done a little bit of investigation:

  • grabNewImages only returns the photos once
  • it only uploads the photos once
  • only the set itself is created twice

lozbrown avatar Dec 11 '14 16:12 lozbrown