tblancher / pymazon

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

Error upon hitting download button ubuntu 12.04 x64 #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On my machine, load the file, hit download. The first three songs say 
"downloading" but do nothing.
2.
3.

What is the expected output? What do you see instead?
In terminal window used to launch pymazon, the following error message occurs:

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

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 63, in do_work
    data = self._download(obj, handle)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 92, in _download
    fs = int(obj.filesize)
ValueError: invalid literal for int() with base 10: ''

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 63, in do_work
    data = self._download(obj, handle)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/downloader.py", line 92, in _download
    fs = int(obj.filesize)
ValueError: invalid literal for int() with base 10: ''

What version of the product are you using? On what operating system?
0.9.1 on Ubuntu 12.04 x64

Please provide any additional information below.

Original issue reported on code.google.com by dbre...@insightpd.com on 13 Nov 2012 at 3:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is a known issue, but it can be fixed, for now, by using the code in 
either my or michaelstrecke's clone repo:

$ sudo apt-get install mercurial
$ hg clone https://code.google.com/r/jsphslgr-pymazon/ # or 
michaelstrecke-pymazon
$ cd jsphslgr-pymazon
$ python setup.py install

That last line may need a sudo, or you can install it on a per-user basis by 
adding "--user" at the end

Original comment by jsphs...@gmail.com on 28 Nov 2012 at 6:15