Package: rawdog
Version: 2.12.dfsg.1-2
Severity: important

When attempting to add a feedburner RSS feed on my debian system, I get
errors like so:

jonathan@mammon:~$ rawdog -a 
http://feeds.feedburner.com/RockPaperShotgun?format=xml
Traceback (most recent call last):
  File "/usr/bin/rawdog", line 31, in <module>
    launch()
  File "/usr/bin/rawdog", line 24, in launch
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/pymodules/python2.6/rawdoglib/rawdog.py", line 1703, in main
    add_feed("config", a, rawdog, config)
  File "/usr/lib/pymodules/python2.6/rawdoglib/rawdog.py", line 862, in add_feed
    feeds = feedfinder.feeds(url)
  File "/usr/lib/pymodules/python2.6/rawdoglib/fakefinder.py", line 34, in feeds
    parser.feed(urllib.urlopen(uri).read())
  File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib/python2.6/HTMLParser.py", line 156, in goahead
    k = self.parse_declaration(i)
  File "/usr/lib/python2.6/markupbase.py", line 96, in parse_declaration
    return self.parse_marked_section(i)
  File "/usr/lib/python2.6/markupbase.py", line 161, in parse_marked_section
    self.unknown_decl(rawdata[i+3: j])
  File "/usr/lib/python2.6/HTMLParser.py", line 361, in unknown_decl
    self.error("unknown declaration: %r" % (data,))
  File "/usr/lib/python2.6/HTMLParser.py", line 115, in error
    raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: unknown declaration: 'CDATA[RockPaperShotgun', at 
line 20, column 15

This appears to be due to a change Debian makes to 
/usr/share/pyshared/rawdoglib/rawdog.py

This is what the Debian version of the file looks like (line 40):

try:
        # Debian feedfinder replacement
        import fakefinder as feedfinder
except: 
        feedfinder = None

If I revert the import statement to what upstream provides:
        import feedfinder 

Then I can add the feed:
jonathan@mammon:~$ rawdog -a
http://feeds.feedburner.com/RockPaperShotgun?format=xml 
Adding feed http://feeds.feedburner.com/RockPaperShotgun?format=xml

And everything works correctly.  (This is why my rawdog.py shows
changes).


Jonathan

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.28-xenU (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages rawdog depends on:
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-support          1.0.10           automated rebuilding support for P

rawdog recommends no packages.

rawdog suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pyshared/rawdoglib/rawdog.py (from rawdog 
package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to