> 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?
I'm pretty sure it's a bug, not a feature.
>
> ...
> mw-render -c de/wikiconf.txt -o xhtml/193 -w xhtml "Apple"
> ...
>
> "/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]))
it looks like your wikidb doesn't have a normalize_and_get_image_path
attribute. Are you using cdbwiki?
Wed, 14 Dec 2011 11:52:18 +0100, ralf wrote:
>> 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?
>
> I'm pretty sure it's a bug, not a feature.
Good news ...
>> ...
>> mw-render -c de/wikiconf.txt -o xhtml/193 -w xhtml "Apple"
>> ...
>>
>> "/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]))
>
> it looks like your wikidb doesn't have a normalize_and_get_image_path
> attribute. Are you using cdbwiki?
Yes.
Sven
Sorry for my ignorance:
What kind of solution does your question and my answer imply? :-)
>>> it looks like your wikidb doesn't have a normalize_and_get_image_path
>>> attribute. Are you using cdbwiki?
>>
>> Yes.
>
> Sorry for my ignorance:
> What kind of solution does your question and my answer imply? :-)
Can you provide a patch? We (pediapress) don't use it anymore. I nearly
removed cdbwiki some time ago.
--
Cheers
Ralf
> We (pediapress) don't use it anymore. I nearly
> removed cdbwiki some time ago.
Oh, I see.
What other backend is recommended, especially for
batch processing of large Wikipedia dumps?
Sven