Hi.

I am running mw-lib on a 150,000 page sample of the German Wikipedia.
Nice results, thanks a million!

Is an error rate (almost all of the AttributeError type reported below) of 
2% expected
or am I messing up things?

...
mw-render -c de/wikiconf.txt -o xhtml/193 -w xhtml "Apple"
...

 0% parsing Apple
0% error Apple
Traceback (most recent call last):
  File "/usr/local/bin/mw-render", line 9, in <module>
    load_entry_point('mwlib==0.12.17', 'console_scripts', 'mw-render')()
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/apps/render.py",
 
line 218, in main
    return Main()()
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/apps/render.py",
 
line 181, in __call__
    writer(env, output=tmpout, status_callback=self.status, 
**writer_options)
  File 
"/usr/local/lib/python2.7/site-packages/mwlib.xhtml-0.1.0-py2.7.egg/mwlib/xhtmlwriter.py",
 
line 708, in xhtmlwriter
    book = writerbase.build_book(env, status_callback=buildbook_status)
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/writerbase.py",
 
line 43, in build_book
    a = wiki.getParsedArticle(title=item.title, revision=item.revision)
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/nuwiki.py",
 
line 412, in getParsedArticle
    return uparser.parseString(title=title, raw=raw, wikidb=self, 
lang=self.siteinfo["general"]["lang"])
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/refine/uparser.py",
 
line 34, in parseString
    input = te.expandTemplates(True)
  File "evaluate.py", line 295, in 
mwlib.templ.evaluate.Expander.expandTemplates (mwlib/templ/evaluate.c:5930)
  File "evaluate.py", line 282, in mwlib.templ.evaluate.Expander._expand 
(mwlib/templ/evaluate.c:5567)
  File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1103)
  File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1134)
  File "nodes.py", line 210, in mwlib.templ.nodes.Template.flatten 
(mwlib/templ/nodes.c:4619)
  File "nodes.py", line 291, in mwlib.templ.nodes.Template._flatten 
(mwlib/templ/nodes.c:5976)
  File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1103)
  File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1134)
  File "nodes.py", line 41, in mwlib.templ.nodes.IfNode.flatten 
(mwlib/templ/nodes.c:1644)
  File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1103)
  File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten 
(mwlib/templ/evaluate.c:1134)
  File "nodes.py", line 210, in mwlib.templ.nodes.Template.flatten 
(mwlib/templ/nodes.c:4619)
  File "nodes.py", line 277, in mwlib.templ.nodes.Template._flatten 
(mwlib/templ/nodes.c:5777)
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/templ/magics.py",
 
line 563, in __call__
    res = m(args) or ''  # FIXME: catch TypeErros
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/templ/magics.py",
 
line 444, in IFEXIST
    exists = 
bool(self.wikidb.normalize_and_get_image_path(name.split(":")[1]))
  File 
"/usr/local/lib/python2.7/site-packages/mwlib-0.12.17-py2.7-linux-x86_64.egg/mwlib/nuwiki.py",
 
line 330, in __getattr__
    raise AttributeError()
AttributeError

Sven

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/mwlib/-/M9bEq5uy4sAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to