Help! Identical code doesn't work in Wing IDE but does in Komodo.

fyleow fyleow at gmail.com
Thu Apr 20 03:54:10 EDT 2006


I create a new Python file with the following using Wing IDE.

import feedparser
d = feedparser.parse("http://feedparser.org/docs/examples/atom10.xml")
print d.feed.title

I get this error when I debug.

AssertionError:

Traceback (innermost last):

File "c:\Documents and Settings\abc\Application Data\Wing IDE
2\untitled-1.py", line 1, in ?
  import feedparser
File "c:\Documents and Settings\abc\Application Data\Wing IDE
2\untitled-1.py", line 2, in ?
  d =
feedparser.parse("http://feedparser.org/docs/examples/atom10.xml")
File "C:\Python24\Lib\feedparser.py", line 2611, in parse
  saxparser.parse(source)
File "C:\Python24\Lib\xml\sax\expatreader.py", line 107, in parse
  xmlreader.IncrementalParser.parse(self, source)
File "C:\Python24\Lib\xml\sax\xmlreader.py", line 123, in parse
  self.feed(buffer)
File "C:\Python24\Lib\xml\sax\expatreader.py", line 207, in feed
  self._parser.Parse(data, isFinal)
File "C:\Python24\Lib\xml\sax\expatreader.py", line 639, in EndElement
File "C:\Python24\Lib\xml\sax\expatreader.py", line 348, in
end_element_ns
  self._cont_handler.endElementNS(pair, None)
File "C:\Python24\Lib\feedparser.py", line 1403, in endElementNS
  self.unknown_endtag(localname)
File "C:\Python24\Lib\feedparser.py", line 476, in unknown_endtag
  method()
File "C:\Python24\Lib\feedparser.py", line 1193, in _end_title
  value = self.popContent('title')
File "C:\Python24\Lib\feedparser.py", line 700, in popContent
  value = self.pop(tag)
File "C:\Python24\Lib\feedparser.py", line 685, in pop
  contentparams = copy.deepcopy(self.contentparams)
File "C:\Python24\Lib\copy.py", line 193, in deepcopy
  rv = reductor(2)
File "C:\Python24\Lib\feedparser.py", line 233, in __getattr__
  assert not key.startswith('_')

With the exact same line of code in Komodo I get the correct output
which is "Sample Feed"

Any idea what's wrong?




More information about the Python-list mailing list