Hi,
unfortunately en.planet updates are still being stuck.
https://bugzilla.wikimedia.org/show_bug.cgi?id=45806
The issue is in feedparser.py
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 32:
ordinal not in range(128)
I would really appreciate help on this from somebody more familiar
with Python/Django template/parsing feeds/ unicode problems.
Thanks
---
INFO:planet.runner:Loading cached data
Traceback (most recent call last):
File "/usr/bin/planet", line 138, in <module>
splice.apply(doc.toxml('utf-8'))
File "/usr/lib/pymodules/python2.7/planet/splice.py", line 118, in apply
output_file = shell.run(template_file, doc)
File "/usr/lib/pymodules/python2.7/planet/shell/__init__.py", line 66, in run
module.run(template_resolved, doc, output_file, options)
File "/usr/lib/pymodules/python2.7/planet/shell/tmpl.py", line 254, in run
for key,value in template_info(doc).items():
File "/usr/lib/pymodules/python2.7/planet/shell/tmpl.py", line 193, in
template_info
data=feedparser.parse(source)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 3525,
in parse
feedparser.feed(data)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 1662,
in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.7/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.7/sgmllib.py", line 143, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/sgmllib.py", line 320, in parse_endtag
self.finish_endtag(tag)
File "/usr/lib/python2.7/sgmllib.py", line 360, in finish_endtag
self.unknown_endtag(tag)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 569, in
unknown_endtag
method()
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 1512,
in _end_content
value = self.popContent('content')
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 849, in
popContent
value = self.pop(tag)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 764, in
pop
mfresults = _parseMicroformats(output, self.baseuri, self.encoding)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 2219,
in _parseMicroformats
p.vcard = p.findVCards(p.document)
File "/usr/lib/pymodules/python2.7/planet/vendor/feedparser.py", line 2161,
in findVCards
sVCards += '\n'.join(arLines) + '\n'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 32:
ordinal not in range(128)
----
--
Daniel Zahn <dzahn(a)wikimedia.org>
Operations Engineer