Lawrence iviani <[email protected]> writes: > I'm trying to run a mediawiki and a mw serve on my virtual macchine > but i get always the message whe i try to export pdf. > Below some information, > thanks in advance for any help > > Lawrence > > > An error occured on the render server: RuntimeError: RuntimeError: > command failed with returncode 256: ['mw-zip', '-o', '/tmp/mwcache/d6/ > d66b1989055dfa28/collection.zip', '-m', '/tmp/mwcache/d6/ > d66b1989055dfa28/metabook.json', '--status', 'qserve://localhost:14311/ > d66b1989055dfa28:makezip', '--template-blacklist', 'MediaWiki:PDF > Template Blacklist', '--template-exclusion-category', 'Exclude in > print', '--print-template-prefix', 'Print', '--print-template- > pattern', '$1/Print'] Last Output: 2012-01-15T22:16:49 > mwlib.options.warn >> Both --print-template-pattern and --print- > template-prefix (deprecated) specified. Using --print-template-pattern > only. 1% creating nuwiki in u'/tmp/mwcache/d6/d66b1989055dfa28/ > tmpQXCPLC/nuwiki' removing tmpdir u'/tmp/mwcache/d6/d66b1989055dfa28/ > tmpQXCPLC' memory used: res=10.2 virt=16.2 1% error Traceback (most > recent call last): File "/usr/local/bin/mw-zip", line 9, in <module> > load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')() File > "/usr/local/lib/python2.6/dist-packages/mwlib/apps/buildzip.py", line > 151, in main make_zip(output, options, env.metabook, > podclient=podclient, status=status) File "/usr/local/lib/python2.6/ > dist-packages/mwlib/apps/buildzip.py", line 50, in make_zip > make_nuwiki(fsdir, metabook=metabook, options=options, > podclient=podclient, status=status) File "/usr/local/lib/python2.6/ > dist-packages/mwlib/apps/make_nuwiki.py", line 152, in make_nuwiki > assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" % > (x.wikiident, x) AssertionError: no wikiconf for None (<article
that's https://github.com/pediapress/Collection/issues/1, which also contains a workaround. > > > My configuration > mediawiki 1.18, > mwlib: 0.13.3 () > mwlib.rl: 0.12.10 > mwlib.ext: 0.12.4 > > > I start the rendering server with a script: > mw-qserve & > sleep 3 > nslave.py --cachedir=$CACHE_PATH/ --numprocs=1 & > sleep 3 > nserve.py & > > LocalSettings.php > require_once("$IP/extensions/Collection/Collection.php"); > $wgCollectionFormats = array('rl' => 'PDF'); > $wgCollectionContentTypeToFilename = array('application/pdf' => > 'collection.pdf'); > $wgCollectionPortletFormats=array('rl'); > $wgEnableWriteAPI = true; > $wgCollectionMWServeURL = "http://mediawiki:8899"; > > > > During startup i get this message, but the server seems to start. > > Traceback (most recent call last): > File "/usr/local/bin/mw-serve", line 5, in <module> > from pkg_resources import load_entry_point > File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2659, > in <module> > parse_requirements(__requires__), Environment() > File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, > in resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: mwlib==0.12.14 You're trying to start mw-serve here, which has been removed from mwlib. -- Cheers Ralf -- 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.
