tblancher / pymazon

Automatically exported from code.google.com/p/pymazon
Other
0 stars 0 forks source link

Fails to download an album while hanging on "Connecting..." #56

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run pymazon from the terminal
2. Select desired music to download and click "Download".
3. Check error message in terminal.

What is the expected output? What do you see instead?
Expected output is pymazon connects to amazon and downloads the desired album. 
Instead, the graphical interface will hang on "Connecting" and return the 
following error on the command line.

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/downloader.py", line 59, in do_work
    handle = self._connect(obj)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/downloader.py", line 81, in _connect
    self.parent.update(self.node)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/downloader.py", line 150, in update
    self.update(node.parent)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/downloader.py", line 148, in update
    self.update_cb(node)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/gtk/ui.py", line 278, in update_cb
    self.update_album_info()
  File "/usr/local/lib/python2.6/dist-packages/pymazon/gtk/ui.py", line 297, in update_album_info
    self.update_album_art()
  File "/usr/local/lib/python2.6/dist-packages/pymazon/gtk/ui.py", line 301, in update_album_art
    img = self.current_album.image
  File "/usr/local/lib/python2.6/dist-packages/pymazon/core/item_model.py", line 100, in image
    return url_image_cache.get(self.image_url)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/util/image.py", line 51, in get
    return self.cache.setdefault(url, self._factory(url))
  File "/usr/local/lib/python2.6/dist-packages/pymazon/util/image.py", line 45, in _factory
    pixbuf = self._download(url)
  File "/usr/local/lib/python2.6/dist-packages/pymazon/util/image.py", line 38, in _download
    handle = urllib2.urlopen(url)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 383, in open
    protocol = req.get_type()
  File "/usr/lib/python2.6/urllib2.py", line 244, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: 

What version of the product are you using? On what operating system?
Pymazon 0.9.1
Debian Squeeze 6.0.5

Please provide any additional information below.

Original issue reported on code.google.com by root.pac...@gmail.com on 1 Oct 2012 at 1:26

GoogleCodeExporter commented 8 years ago
This might be covered under Issue 53. That thread contains a patch that looks 
like it'll cover the issue for now.

Original comment by jsphs...@gmail.com on 8 Oct 2012 at 9:56

GoogleCodeExporter commented 8 years ago
I installed the source version linked in Issue 53 Comment 15 and it resolved 
this error for me. Ubuntu 11.

Original comment by alex...@gmail.com on 2 Dec 2012 at 5:00

GoogleCodeExporter commented 8 years ago
Hi,

The patch on issue 53 solved this for me too.  

Any chance this could be integrated into the main code base?

Thanks.

Steve

Original comment by stephen....@gmail.com on 7 Jun 2013 at 4:00