I get this:<br><br>>>> dump = xmlreader.XmlDump("kwwiki-20100926-pages-meta-history.xml.bz2")<br>>>> parser=dump.parse()<br>Reading XML dump...<br>>>> print parser<br><generator object new_parse at 0xb7782b94><br>
>>> <br><br>Very weird.<br><br><div class="gmail_quote">2010/10/6 Russell Blau <span dir="ltr"><<a href="mailto:russblau@hotmail.com">russblau@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">"emijrp" <<a href="mailto:emijrp@gmail.com">emijrp@gmail.com</a>> wrote in message<br>
</div>news:AANLkTi=A-=HYv03T+xyhvFurJqCYA-bCjfMhx6N13pGD@mail.gmail.com...<br>
<div class="im"><br>
> I have tested your code, with the bz2 and 7z dumps, and I get titles<br>
> with None value. The first one is the same error that apperas in my code.<br>
><br>
> Reading XML dump...<br>
> None 2004-10-10T04:24:14Z<br>
><br>
> I have the last version of pywikipediabot and Python 2.6.5 (r265:79063,<br>
> Apr 16 2010, 13:09:56). Probably, it can be a error of Python or<br>
> cElementTree.<br>
> What are your versions?<br>
<br>
</div>Pywikipedia [svn+ssh] (r8609, 2010/10/05, 16:21:42)<br>
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]<br>
<br>
However, I retried the same tests under Python 2.6.5 and got the same<br>
results.<br>
<br>
Try the following and see if your result is different than mine:<br>
<br>
>>> import xmlreader<br>
>>> dump = xmlreader.XmlDump("kwwiki-20100926-pages-meta-history.xml.bz2")<br>
>>> parser = dump.parse()<br>
Reading XML dump...<br>
>>> print parser<br>
<generator object new_parse at 0x0132A968><br>
<br>
If you get <generator object regex_parse ...> instead of new_parse, then you<br>
don't have elementtree available, although since it is supposed to be<br>
standard since Python 2.5 that would be somewhat surprising.<br>
<br>
Russ<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
</div></div></blockquote></div><br>