Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Dec 7, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 1 Oct 2012 at 1:26

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Oct 2012 at 9:56

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 2 Dec 2012 at 5:00

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 7 Jun 2013 at 4:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant