Hi

On 06/14/2011 12:39 AM, Gaver wrote:
Hello is there i quick and dirty trick to configure pediapress ?

De renderserver gaf de volgende foutmelding: RuntimeError:
RuntimeError: command failed with returncode 256: ['mw-zip', '-o',
u'cache/91/912f5c7faca4b89a/collection.zip', '-m', u'cache/
91/912f5c7faca4b89a/metabook.json', '--status', u'qserve://localhost:
14311/912f5c7faca4b89a:makezip', '--config', u'http://stasegem.be/
wha', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--
template-exclusion-category', u'Weglaten bij afdrukken', '--print-
template-prefix', u'Afdruk', '--print-template-pattern', u'$1/
Afdrukken'] Last Output: k.py:226: DeprecationWarning: deprecated
__getitem__ ['mw_license_url'] url = l['mw_license_url']
2011-06-13T22:15:34 mwlib.utils.info>>  fetching u'http://
en.wikipedia.org/w/index.php?
title=Wikipedia:Text_of_the_GNU_Free_Documentation_License&action=raw&templates=expand'
 /
home/tools/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-
x86_64.egg/mwlib/metabook.py:250: DeprecationWarning: deprecated call
get('name') retval.append(license(title=l.get('name', u'License'),
Unhandled error in Deferred: Traceback (most recent call last):
Failure: exceptions.RuntimeError: could not get collection params
fatal: could not get collection params [[Failure instance: Traceback:
<type 'exceptions.ValueError'>: No JSON object could be decoded
The problem is the following (simplified) request:

http://stasegem.be/wha/api.php?action=query&meta=siteinfo&format=json

mwlib tries to parse the result as a json string. Unfortunately the result starts with:

<source lang="php">
</source>

This is where things break. The comparison to http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=json leads me to the assumption that your wiki/api might not be configured correctly.

The answer might be "exportnowrap": http://www.mail-archive.com/[email protected]/msg01700.html

Regards,
Volker

--
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/

--
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