[Python-apps-team] Bug#506041: clive: uncaught exception CliveNoMediaError

Ben Finney ben+debian at benfinney.id.au
Mon Nov 17 22:41:33 UTC 2008


Package: clive
Version: 0.4.18-1
Severity: normal

Using ‘clive’ on some URLs can result in a ‘no media’ error; these are
usually caught and reported correctly.

The following error, though, is not caught and propagates up to the
interpreter, resulting in a traceback printed to the terminal.

=====
$ clive 'http://au.youtube.com/watch?v=OMvAXpq7Xj4'
clive 0.4.18 20080715  [Linux]
http://au.youtube.com/watch?v=OMvAXpq7Xj4&fmt=18                           100%
warn: no-media: switched to low quality
error: Traceback (most recent call last):
  File "/usr/bin/clive", line 28, in <module>
    Clive().main()
  File "/usr/lib/python2.5/site-packages/clive/main.py", line 50, in main
    Nomad().run(self.opts, self.args, self._say)
  File "/usr/lib/python2.5/site-packages/clive/nomad.py", line 108, in run
    self._check_raw_urls(raw_urls)
  File "/usr/lib/python2.5/site-packages/clive/nomad.py", line 277, in _check_raw_urls
    self._check_url(url, (index,len(raw_urls)))
  File "/usr/lib/python2.5/site-packages/clive/nomad.py", line 377, in _check_url
    self._found_urls, self._get_proxy())
  File "/usr/lib/python2.5/site-packages/clive/parse.py", line 103, in parse
    length = url_data['file_length_callb'](xurl)
  File "/usr/lib/python2.5/site-packages/clive/nomad.py", line 422, in _callb_check_file_len
    raise CliveNoMediaError # Try low quality
CliveNoMediaError: error: no media (http/415)
=====

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (90, 'unstable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.25-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clive depends on:
ii  python                       2.5.2-2     An interactive high-level object-o
ii  python-central               0.6.8       register and build utility for Pyt
ii  python-feedparser            4.1-11      Universal Feed Parser for Python
ii  python-newt                  0.52.2-11.3 A NEWT module for Python
ii  python-urlgrabber            3.1.0-4     A high-level cross-protocol url-gr

clive recommends no packages.

Versions of packages clive suggests:
pn  ffmpeg                        <none>     (no description available)

-- no debconf information

-- 
 \     “If you ever teach a yodeling class, probably the hardest thing |
  `\      is to keep the students from just trying to yodel right off. |
_o__)                         You see, we build to that.” —Jack Handey |
Ben Finney <ben at benfinney.id.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20081118/d23c8e74/attachment.pgp 


More information about the Python-apps-team mailing list