ie it doesn't work.
- Luke
On Jan 28, 2009, at 10:43 AM, Joshua Bronson wrote:
[also responding on the melkjug.org-feedback list]
Hey Nick,
Thanks for the heads up. As for the first problem, here's what's
happening: we are fetching the resource at http://feeds.wired.com/wired/politics
, getting back a text/xml document (which we identif as a feed), and
passing it to feedparser. However feedparser is choking on parsing
the feed. From the log on the live site:
2009-01-28 09:57:11,122 ERROR [melkjug.controllers.feed] Error
locating feeds in http://feeds.wired.com/wired/politics:
Traceback (most recent call last):
File "/usr/local/melk/deploy/0.4.1/src/melkjug/melkjug/controllers/
feed.py", line 134, in _find_feeds_in_url
ff, response, content = self._check_for_feed(url)
File "/usr/local/melk/deploy/0.4.1/src/melkjug/melkjug/controllers/
feed.py", line 170, in _check_for_feed
ff = feedparser.parse(content, url)
File "/usr/local/melk/deploy/0.4.1/src/melk.feedparser/melk/
feedparser/parser.py", line 52, in parse
melkify(ff, url)
File "/usr/local/melk/deploy/0.4.1/src/melk.feedparser/melk/
feedparser/parser.py", line 74, in melkify
e['melk_id'] = identify_entry(e, url)
File "/usr/local/melk/deploy/0.4.1/src/melk.feedparser/melk/
feedparser/parser.py", line 93, in identify_entry
return melk_id(eid, normalize_feed_url(feed_url))
File "/usr/local/melk/deploy/0.4.1/src/melk.util/melk/util/
hash.py", line 63, in melk_id
hash.update(iid)
UnicodeEncodeError: 'ascii' codec can't encode characters in
position 29-32: ordinal not in range(128)
I will look into this further and get back to you.
As for the second issue, Luke can probably tell you more.
Josh
On Wed, Jan 28, 2009 at 9:58 AM, Nick Grossman
<[email protected]> wrote:
Update: it doesn't seem to be just melkjug feeds; this feed (http://feeds.wired.com/wired/politics
) gave me the same result.
Nick
On Jan 28, 2009, at 9:55 AM, Nick Grossman wrote:
Hey there,
I ran into trouble today importing one melkjug feed into another --
is that expected behavior? Here's what I did:
* From my jug: http://melkjug.org/nickyg/good_morning, I went to
add a feed, and entered http://melkjug.org/toppdzn/jug
* instead of adding the feed, I got a "no feeds found" error (see
http://skitch.com/nickyg/bniw1/melkjug-good-morning)
* then, I tried exporting the OPML file from http://melkjug.org/toppdzn/jug
as a workaround, and importing it to my jug. When I did that, I
got an "error extracting feeds" message (see http://skitch.com/nickyg/bniin/melkjug-good-morning)
Thanks,
Nick
--
Nick Grossman
The Open Planning Project -- http://theopenplanningproject.org
[email protected]
(917) 825-6590