kbingham / folders2flickr-google-import

Automatically exported from code.google.com/p/folders2flickr
1 stars 0 forks source link

"No image in flickr with tags #\directory\name.jpg" for all files to upload #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unpack folder2flickr for Windows 7 machine
2. Authenticate with flickr and setup .ini file with a directory
3. Run uploadr

What is the expected output? What do you see instead?

For each file that should be uploaded, the program gives the error "No image in 
Flickr with tags #\directory\name.jpg (possibly deleted in Flickr by user)"

---
What version of the product are you using? On what operating system?

Windows 7
Downloaded folders2flickr on May 18, 2011

Please provide any additional information below.

ini file below:
[DEFAULT]

#
# Location to scan for new images
#
imagedir=c:/users/ken/pictures/family_photos/2004_1034_files_579_Meg

#
#   File we keep the history of uploaded images in.
#
history_file=history

#visible 1, invisible 0
public= 0
friend = 1
family = 1

DEBUG file shown below:
2011-05-18 23:36:28,871 DEBUG Started
2011-05-18 23:37:41,625 DEBUG Started flickr2history
2011-05-18 23:37:41,980 DEBUG 62789956@N08
2011-05-18 23:37:41,986 DEBUG 62789956@N08
2011-05-18 23:37:42,516 ERROR No image in Flickr with tags 
#\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0002.jpg (possibly deleted in Flickr by 
user)
2011-05-18 23:37:42,517 DEBUG \2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0002.jpg
2011-05-18 23:37:42,520 DEBUG 62789956@N08
2011-05-18 23:37:42,966 ERROR No image in Flickr with tags 
#\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0005.jpg (possibly deleted in Flickr by 
user)

ERRORS file shown below:
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0002.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0005.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0006.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0007.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0008.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0009.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0010.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0011.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0012.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0013.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0025.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0027.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0028.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0029.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0030.jpg 
(possibly deleted in Flickr by user)
No image in Flickr with tags #\2004_ANNIKAS_NEW_YEARS_PARTY\B2004-0031.jpg 
(possibly deleted in Flickr by user)

Original issue reported on code.google.com by kenboo...@gmail.com on 19 May 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Actually, it is just badly reported warning message, that your picture(s) is 
not uploaded yet... I am removing the error from being reported in next version.

Original comment by pkola...@gmail.com on 29 May 2011 at 11:46

GoogleCodeExporter commented 9 years ago
However it is giving me this message too, but it is not uploading these files 
either throwing some exceptions.

No image in Flickr with tags #\Sooke\P5145264_im.jpg (possibly deleted in 
Flickr by user)
(<type 'exceptions.MemoryError'>, MemoryError(), <traceback object at 
0x02642378>)
(<type 'exceptions.IndexError'>, IndexError('list index out of range',), 
<traceback object at 0x02642238>)

Original comment by andrey....@gmail.com on 29 May 2011 at 7:12

GoogleCodeExporter commented 9 years ago
In the end I have sets with some images uploaded and some dont. I just uploaded 
a fresh set and out of 66 images only 37 made to flickr. I also noticed my 
other sets have missing photos now. History file does not have these and the 
log has may of these out of range exceptions. What could be wrong? 

Original comment by andrey....@gmail.com on 29 May 2011 at 7:15

GoogleCodeExporter commented 9 years ago
it is exif.py crashing  :(

Original comment by andrey....@gmail.com on 29 May 2011 at 8:08

GoogleCodeExporter commented 9 years ago
Ok. The fix is to replace     if v[0] not in a or v[2] not in b:  line 665 or 
close in exif.py with try/catch. The problem is that v sometimes does not have 
v[2] in the list.

    try:
        if v[0] not in a or v[2] not in b:
            return v
    except:
        return v

P.S. Please if you could let a know to exif.py developers and fix this in you 
app. Althout it seems to affect olympus camearas only. Poka.

Original comment by andrey....@gmail.com on 29 May 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Another one of the same  line 1356 in exif.py

                        if count != 0 and count < (2**31):
                            self.file.seek(self.offset + offset)
                            values = self.file.read(count)
                            #print values
                            # Drop any garbage after a null.
                            values = values.split('\x00', 1)[0]
                        else:
                            values = ''

needs to be

                    try:
                        if count != 0 and count < (2**31):
                            self.file.seek(self.offset + offset)
                            values = self.file.read(count)
                            #print values
                            # Drop any garbage after a null.
                            values = values.split('\x00', 1)[0]
                        else:
                            values = ''
                    except:
                        value = ''   

Original comment by andrey....@gmail.com on 30 May 2011 at 12:03

GoogleCodeExporter commented 9 years ago
it gives me the same error (possibly deleted in Flickr by user). btw, it is a 
shame the development has stopped:( such a good app!

Original comment by onl...@gmail.com on 31 May 2013 at 5:11