BitcasaFileLister icon indicating copy to clipboard operation
BitcasaFileLister copied to clipboard

AttributeError: 'exceptions.TypeError' object has no attribute 'strerror'

Open SoySoy22 opened this issue 12 years ago • 6 comments

Hi,

I pulled the last update

remote: Counting objects: 65, done. remote: Compressing objects: 100% (56/56), done. remote: Total 65 (delta 46), reused 28 (delta 9) Unpacking objects: 100% (65/65), done. From https://github.com/rxsegrxup/BitcasaFileLister f7acd5e..097de8a master -> origin/master 9b3c07b..b45c157 dev -> origin/dev Updating f7acd5e..097de8a Fast-forward README.md | 21 +++-- python/getfiles.py | 250 +++++++++++++++++++++++++++------------------------- 2 files changed, 142 insertions(+), 129 deletions(-)

and changed the API stuff.

Now I can't download anymore...

10/28/2014 03:18:45 [logger][INFO]: Thread [0]: IMG_2795.JPG already exists. Skipping 10/28/2014 03:18:45 [logger][INFO]: Thread [19]: MVI_2716.THM size 27.16 KB 10/28/2014 03:18:45 [logger][INFO]: Thread [0]: IMG_2805.JPG already exists. Skipping 10/28/2014 03:18:45 [logger][ERROR]: Thread [19]: error downloading MVI_2716.THM via wget 10/28/2014 03:18:45 [logger][INFO]: Thread [0]: MVI_2725.MOV already exists. Skipping 10/28/2014 03:18:45 [logger][WARNING]: Thread [19]: Couldn't clean up file /home/XXX/BitcasaDownload2/XXX/2011-04-22 XXX2011/MVI_2716.THM Exception in thread Thread-19: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "getfiles.py", line 116, in run log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune.strerror)) AttributeError: 'exceptions.TypeError' object has no attribute 'strerror'

10/28/2014 03:18:45 [logger][INFO]: Thread [0]: IMG_2771.JPG already exists. Skipping 10/28/2014 03:18:45 [logger][INFO]: Thread [0]: IMG_2797.JPG already exists. Skipping 10/28/2014 03:18:45 [logger][INFO]: Thread [20]: MVI_2725.THM size 26.82 KB 10/28/2014 03:18:45 [logger][INFO]: Thread [0]: IMG_2789.JPG already exists. Skipping 10/28/2014 03:18:45 [logger][ERROR]: Thread [20]: error downloading MVI_2725.THM via wget 10/28/2014 03:18:45 [logger][INFO]: Thread [21]: MVI_2716.MOV size 1.02 GB 10/28/2014 03:18:45 [logger][WARNING]: Thread [20]: Couldn't clean up file /home/XXX/BitcasaDownload2/XXX/2011-04-22 XXX2011/MVI_2725.THM Exception in thread Thread-20: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "getfiles.py", line 116, in run log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune.strerror)) AttributeError: 'exceptions.TypeError' object has no attribute 'strerror'

10/28/2014 03:18:45 [logger][ERROR]: Thread [21]: error downloading MVI_2716.MOV via wget 10/28/2014 03:18:45 [logger][WARNING]: Thread [21]: Couldn't clean up file /home/XXX/BitcasaDownload2/XXX/2011-04-22 XXX2011/MVI_2716.MOV Exception in thread Thread-21: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "getfiles.py", line 116, in run log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune.strerror)) AttributeError: 'exceptions.TypeError' object has no attribute 'strerror'

Any ideas?

SoySoy22 avatar Oct 28 '14 14:10 SoySoy22

Did you pull this from dev or master? I will be pushing an update shortly to fix this. If you need to fix it asap than change the following on line 122:

log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune.strerror))

to

log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune))

This also needs to be done on line 174:

log.error("Thread [%s]: Error processing file %s\n%s" % (tthdnum, nm, e.strerror))

to

log.error("Thread [%s]: Error processing file %s\n%s" % (tthdnum, nm, e))

Let me know if that works

reallistic avatar Oct 28 '14 20:10 reallistic

10/28/2014 11:00:45 [logger][WARNING]: Thread [21]: Couldn't clean up file /home/XXX/BitcasaDownload2/XXX/2011-04-22 XXX2011/IMG_2714.JPG Exception in thread Thread-21: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "getfiles.py", line 122, in run log.error("Thread [%s]: Download failed %s\n%s" % (tthdnum, tmppath, rune)) AttributeError: 'exceptions.TypeError' object has no attribute 'strerror'

SoySoy22 avatar Oct 28 '14 22:10 SoySoy22

So.., no

SoySoy22 avatar Oct 28 '14 22:10 SoySoy22

Hey fella, what version of python are you using?

instagrim-dev avatar Oct 29 '14 00:10 instagrim-dev

Just pushed a HUGE number of changes and fixes. Please try the new version and let me know if that fixes it. At the least, (and I do mean the least), you will not get that TypeError.

reallistic avatar Oct 29 '14 06:10 reallistic

This was likely a api limit issue that was poorly handled. Closing this as fixed by c663c0733ca63e835507f7a6a3305de30dd9efdf

reallistic avatar Oct 29 '14 21:10 reallistic