Feedparser problem

2009-06-04 Thread Jonathan Nelson
I'm trying to add a feedreader element to my django project.  I'm
using Mark Pilgrim's great feedparser library.  I've used it before
without any problems.  I'm getting a TypeError I can't figure out.
I've tried searching google, bing, google groups to no avail.

Here's the dpaste of what I'm trying to do and the result I'm
getting:

http://dpaste.com/51406/

I've tried checking my firewall settings.  I'm using Windows 7 and
Python 2.6.  Win 7 is allowing other Python programs through.  I've
tried several different RSS urls with the same result.

Any thoughts would be greatly appreciated.
-- 
http://mail.python.org/mailman/listinfo/python-list


Feedparser Problem

2009-06-05 Thread Jonathan Nelson
I'm working with Feedparser on months old install of Windows 7, and
now programs that ran before are broken, and I'm getting wierd
messages that are rather opaque to me.   Google, Bing, News groups
have all left me empty handed.

I was wondering if I could humbly impose upon the wizards of
comp.lang.python to lend me their wisdom and insight to this problem
that is too difficult for my little mind.

Here's what I'm going through:

>>>from feedparser import parse
>>>url='http://feeds.nytimes.com/nyt/rss/Technology'
>>>url2='http://feeds.washingtonpost.com/wp-dyn/rss/technology/index_xml'
>>>d = parse(url)
>>>d2= parse(url2)
>>>d
{'bozo':1,
'bozo_exception': TypeError("__init__() got an unexpected keyword
argument 'timeout'",),
'encoding': 'utf-8',
'entries': [],
'feed':{},
'version': None}
>>>d2
{'bozo': 1,
 'bozo_exception': TypeError("__init__() got an unexpected keyword
argument 'timeout'",),
 'encoding': 'utf-8',
 'entries': [],
 'feed': {},
 'version': None}

I've checked my firewall settings, and python is allowed.  Other
python programs can get data from the web.  I know that the 'bozo' is
for malformed xml.  I've searched through both of those rss feeds, and
I can't find the argument 'timeout' anywhere in them.

Any ideas, thoughts or directions in which I might go?

Thanks to all in advance,
Jonathan
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Feedparser Problem

2009-06-05 Thread Jonathan Nelson
Thanks for the responses.  I've tried the same script on a Server 2003
install, and Python 2.5 and it ran without a hitch.  So, it's either a
problem with Python 2.6 or with Windows 7.

Thanks for all the responses.  You've been great.

Best,
Jonathan

On Jun 5, 7:39 am, Jonathan Nelson  wrote:
> I'm working with Feedparser on months old install of Windows 7, and
> now programs that ran before are broken, and I'm getting wierd
> messages that are rather opaque to me.   Google, Bing, News groups
> have all left me empty handed.
>
> I was wondering if I could humbly impose upon the wizards of
> comp.lang.python to lend me their wisdom and insight to this problem
> that is too difficult for my little mind.
>
> Here's what I'm going through:
>
> >>>from feedparser import parse
> >>>url='http://feeds.nytimes.com/nyt/rss/Technology'
> >>>url2='http://feeds.washingtonpost.com/wp-dyn/rss/technology/index_xml'
> >>>d = parse(url)
> >>>d2= parse(url2)
> >>>d
>
> {'bozo':1,
> 'bozo_exception': TypeError("__init__() got an unexpected keyword
> argument 'timeout'",),
> 'encoding': 'utf-8',
> 'entries': [],
> 'feed':{},
> 'version': None}>>>d2
>
> {'bozo': 1,
>  'bozo_exception': TypeError("__init__() got an unexpected keyword
> argument 'timeout'",),
>  'encoding': 'utf-8',
>  'entries': [],
>  'feed': {},
>  'version': None}
>
> I've checked my firewall settings, and python is allowed.  Other
> python programs can get data from the web.  I know that the 'bozo' is
> for malformed xml.  I've searched through both of those rss feeds, and
> I can't find the argument 'timeout' anywhere in them.
>
> Any ideas, thoughts or directions in which I might go?
>
> Thanks to all in advance,
> Jonathan

-- 
http://mail.python.org/mailman/listinfo/python-list