flickasa icon indicating copy to clipboard operation
flickasa copied to clipboard

Further Ubuntu Error: "url none"?

Open flickerfly opened this issue 14 years ago • 5 comments

I'm receiving this error several times. I'm guessing it is once for every photo. Also, when it downloads says 'at url "None"' for each of the files it downloads. I imagine that if I had a better grasp of python, this would be obvious. Sorry.

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/threadpool-1.2.7-py2.6.egg/threadpool.py", line 156, in run
    result = request.callable(*request.args, **request.kwds)
  File "flickasa/flickasa.py", line 234, in move_photo
    (filename, headers) = urlretrieve(photo_url, filename, download_callback)
  File "/usr/lib/python2.6/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.6/urllib.py", line 227, in retrieve
    url = unwrap(toBytes(url))
  File "/usr/lib/python2.6/urllib.py", line 1034, in unwrap
    url = url.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

I also see this one once before the others line up.

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/threadpool-1.2.7-py2.6.egg/threadpool.py", line 156, in run
    result = request.callable(*request.args, **request.kwds)

Is there something that isn't getting the proper URL to download from or something else? Thanks!

flickerfly avatar Sep 24 '11 19:09 flickerfly

I'll try to patch it now, stay tuned for my next commit, update and give it a try, since I have no way of replicating it (already moved all my pics and not really going back to flickr now)

gubatron avatar Sep 24 '11 20:09 gubatron

Please do a pull and let me know if it behaves any better.

Thanks for reporting this.

gubatron avatar Sep 24 '11 21:09 gubatron

Looks like an improvement. I received a bunch of "Could not get photo url, skipping" and then the following error.

Could not get photo url, skipping.
Exception in thread Thread-4 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/local/lib/python2.6/dist-packages/threadpool-1.2.7-py2.6.egg/threadpool.py", line 148, in run

flickerfly avatar Sep 25 '11 11:09 flickerfly

did the program keep running or did it shutdown after that exception?

gubatron avatar Sep 25 '11 14:09 gubatron

It shut down immediately after.

flickerfly avatar Sep 25 '11 17:09 flickerfly