Hi,

I'm running on May 4th's TOT mwlib.  I created a cdb database with an
old English Wikipedia database dump I had:

$ mw-buildcdb --input ~/corpora/en/enwiktionary-20080613-pages-
articles.xml --output ~/nlp/mwlib/en.cdb

Then, using the wikiconf.txt inside the newly created en.cdb, I tried
to render the NASA page in XHTML:

$ mw-render -c wikiconf.txt -w xhtml -x  -o test.html "NASA"

And I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/mw-render", line 8, in <module>
    load_entry_point('mwlib==0.11.0.dev', 'console_scripts', 'mw-
render')()
  File "/Library/Python/2.5/site-packages/mwlib-0.11.0.dev-py2.5-
macosx-10.5-i386.egg/mwlib/apps/render.py", line 222, in main
    return Main()()
  File "/Library/Python/2.5/site-packages/mwlib-0.11.0.dev-py2.5-
macosx-10.5-i386.egg/mwlib/apps/render.py", line 182, in __call__
    env = self.get_environment()
  File "/Library/Python/2.5/site-packages/mwlib-0.11.0.dev-py2.5-
macosx-10.5-i386.egg/mwlib/apps/render.py", line 108, in
get_environment
    self.zip_filename = hack(output=self.options.keep_zip,
options=self.options, env=env, status=self.status,
keep_tmpfiles=self.options.keep_tmpfiles)
  File "/Library/Python/2.5/site-packages/mwlib-0.11.0.dev-py2.5-
macosx-10.5-i386.egg/mwlib/apps/buildzip.py", line 49, in hack
    base_url = env.wiki.api_helper.base_url
AttributeError: 'WikiDB' object has no attribute 'api_helper'

When I use :en as the config, I don't get the same problem:

$ mw-render -c :en -w xhtml -x  -o test.html "NASA"

This appears to be the same problem that Grego describes in the second
post on 
http://groups.google.com/group/mwlib/browse_thread/thread/11f59cd2a739a95c
(some recent regression in the dev version?)

– Brent


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
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