I can't make PDF-Files (or other formats) with the Collection-extension on 
my new MediaWiki installation under http://wiki.johanngruendl.at. I am 
using the pediapress server, but also tried to get a PDF with my local 
mwlib installation. The wiki is hosted on my webspace provider. All other 
extensions (Validator, Semantic Media Wiki, WikiEditor, ParserFunctions) 
work. This is my config:

$wgScriptPath       = "";
$wgScriptExtension  = ".php";

$wgEnableAPI = true;

$wgServer           = "http://wiki.johanngruendl.at";;

# Collection
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/";;
$wgCollectionMWServeCert = null;
$wgCollectionMWServeCredentials = "Gast:myPassword";
$wgCollectionFormats = array(
           'rl' => 'PDF',
           'odf' => 'ODT',
       'xhtml' => 'XHTML',
       'docbook' => 'XML'
       );
$wgCollectionPortletFormats = array('rl', 'odf', 'xhtml', 'docbook');
$wgCollectionArticleNamespaces = array(
      NS_MAIN,
      NS_TALK,
      NS_USER,
      NS_USER_TALK,
      NS_PROJECT,
      NS_PROJECT_TALK,
      NS_MEDIAWIKI,
      NS_MEDIAWIKI_TALK,
      NS_CATEGORY,
      100,
      101,
      102,
      103,
      104,
      105,
      106,
      107,
      108,
      109,
      110,
      111
);
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['autoconfirmed']['collectionsaveascommunitypage'] = 
true;

I tried it without an username and read-Rights for * and with Username and 
Password. It had always the same effect. I had this problem of course: 
https://github.com/pediapress/Collection/issues/1 It was this Error-Message:

Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: 
RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 
'/home/pp/cache/06/062a3eda4a271a3b/collection.zip', '-m', 
'/home/pp/cache/06/062a3eda4a271a3b/metabook.json', '--status', 
'qserve://localhost:14311/062a3eda4a271a3b:makezip', 
'--template-blacklist', 'MediaWiki:PDF Template Blacklist', 
'--template-exclusion-category', u'Vom Druck ausschlie\xdfen', 
'--print-template-prefix', 'Drucken', '--print-template-pattern', 
'$1/Druck', '--username', 'gast', '--password', '{OMITTED}'] Last Output: 
2012-10-14T15:27:05 mwlib.options.warn >> Both --print-template-pattern and 
--print-template-prefix (deprecated) specified. Using 
--print-template-pattern only. 1% creating nuwiki in 
u'/home/pp/cache/06/062a3eda4a271a3b/tmpLUHNKJ/nuwiki' removing tmpdir 
u'/home/pp/cache/06/062a3eda4a271a3b/tmpLUHNKJ' memory used: res=16.4 
virt=123.1 1% error Traceback (most recent call last): File 
"/home/pp/local/bin/mw-zip", line 9, in <module> 
load_entry_point('mwlib==0.13.10', 'console_scripts', 'mw-zip')() File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
155, in main make_zip(output, options, env.metabook, podclient=podclient, 
status=status) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, 
podclient=podclient, status=status) File 
"/home/pp/local/lib/python2.7/site-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 
{'_env': <mwlib.wiki.Environment object at 0x2b8e810>, 'content_type': 
u'text/x-wiki', 'title': u'Hauptseite', 'timestamp': u'1349947329', 'type': 
'article', 'revision': u'1'}>) in function system, file ./bin/nslave.py, 
line 64 in function qaddw, file 
/home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66

I tried codedave's workaround and l13t's workaround. The errormessage 
changed then:

l13t's solution led to this errormessage:

Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: 
RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 
'/home/pp/cache/fb/fbe1f22945d827c9/collection.zip', '-m', 
'/home/pp/cache/fb/fbe1f22945d827c9/metabook.json', '--status', 
'qserve://localhost:14311/fbe1f22945d827c9:makezip', '--config', 
'http://wiki.johanngruendl.at', '--template-blacklist', 'MediaWiki:PDF 
Template Blacklist', '--template-exclusion-category', u'Vom Druck 
ausschlie\xdfen', '--print-template-prefix', 'Drucken', 
'--print-template-pattern', '$1/Druck', '--username', 'gast', '--password', 
'{OMITTED}'] Last Output: 2012-10-14T15:29:31 mwlib.options.warn >> Both 
--print-template-pattern and --print-template-prefix (deprecated) 
specified. Using --print-template-pattern only. 1% creating nuwiki in 
u'/home/pp/cache/fb/fbe1f22945d827c9/tmpOGHkZm/nuwiki' ERR: No JSON object 
could be decoded: line 1 column 0 (char 0) ERR: No JSON object could be 
decoded: line 1 column 0 (char 0) ERR: No JSON object could be decoded: 
line 1 column 0 (char 0) ERR: No JSON object could be decoded: line 1 
column 0 (char 0) Traceback (most recent call last): File 
"/home/pp/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, 
in run result = self._run(*self.args, **self.kwargs) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 120, in run self.fetch_pages_from_metabook(api) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 60, in fetch_pages_from_metabook fetch_images=not 
self.options.noimages) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 269, 
in __init__ siteinfo = self.get_siteinfo_for(self.api) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 418, 
in get_siteinfo_for return m.get_siteinfo() File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/sapi.py", line 169, 
in get_siteinfo raise RuntimeError("could not get siteinfo") RuntimeError: 
could not get siteinfo <Greenlet at 0x146ae10: <bound method 
start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 
0x14cb050>>> failed with RuntimeError removing tmpdir 
u'/home/pp/cache/fb/fbe1f22945d827c9/tmpOGHkZm' memory used: res=17.5 
virt=131.8 1% error Traceback (most recent call last): File 
"/home/pp/local/bin/mw-zip", line 9, in <module> 
load_entry_point('mwlib==0.13.10', 'console_scripts', 'mw-zip')() File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
155, in main make_zip(output, options, env.metabook, podclient=podclient, 
status=status) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, 
podclient=podclient, status=status) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 193, in make_nuwiki pool.join(raise_error=True) File 
"/home/pp/local/lib/python2.7/site-packages/gevent/pool.py", line 99, in 
join raise greenlet.exception RuntimeError: could not get siteinfo in 
function system, file ./bin/nslave.py, line 64 in function qaddw, file 
/home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66

codedave's solution gives something very similar:

Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: 
RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 
'/home/pp/cache/77/770f4ed39aa13008/collection.zip', '-m', 
'/home/pp/cache/77/770f4ed39aa13008/metabook.json', '--status', 
'qserve://localhost:14311/770f4ed39aa13008:makezip', '--config', 
'http://wiki.johanngruendl.at', '--template-blacklist', 'MediaWiki:PDF 
Template Blacklist', '--template-exclusion-category', u'Vom Druck 
ausschlie\xdfen', '--print-template-prefix', 'Drucken', 
'--print-template-pattern', '$1/Druck', '--username', 'Gast', '--password', 
'{OMITTED}'] Last Output: 2012-10-14T18:30:51 mwlib.options.warn >> Both 
--print-template-pattern and --print-template-prefix (deprecated) 
specified. Using --print-template-pattern only. 1% creating nuwiki in 
u'/home/pp/cache/77/770f4ed39aa13008/tmpoI9EtV/nuwiki' ERR: No JSON object 
could be decoded: line 1 column 0 (char 0) ERR: No JSON object could be 
decoded: line 1 column 0 (char 0) ERR: No JSON object could be decoded: 
line 1 column 0 (char 0) ERR: No JSON object could be decoded: line 1 
column 0 (char 0) Traceback (most recent call last): File 
"/home/pp/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, 
in run result = self._run(*self.args, **self.kwargs) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 120, in run self.fetch_pages_from_metabook(api) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 60, in fetch_pages_from_metabook fetch_images=not 
self.options.noimages) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 269, 
in __init__ siteinfo = self.get_siteinfo_for(self.api) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 418, 
in get_siteinfo_for return m.get_siteinfo() File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/net/sapi.py", line 169, 
in get_siteinfo raise RuntimeError("could not get siteinfo") RuntimeError: 
could not get siteinfo <Greenlet at 0x29c8e10: <bound method 
start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 
0x2a29050>>> failed with RuntimeError removing tmpdir 
u'/home/pp/cache/77/770f4ed39aa13008/tmpoI9EtV' memory used: res=17.5 
virt=131.8 1% error Traceback (most recent call last): File 
"/home/pp/local/bin/mw-zip", line 9, in <module> 
load_entry_point('mwlib==0.13.10', 'console_scripts', 'mw-zip')() File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
155, in main make_zip(output, options, env.metabook, podclient=podclient, 
status=status) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, 
podclient=podclient, status=status) File 
"/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
line 193, in make_nuwiki pool.join(raise_error=True) File 
"/home/pp/local/lib/python2.7/site-packages/gevent/pool.py", line 99, in 
join raise greenlet.exception RuntimeError: could not get siteinfo in 
function system, file ./bin/nslave.py, line 64 in function qaddw, file 
/home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66

http://wiki.johanngruendl.at/api.php?action=query&meta=siteinfo seems to 
work fine. I don't know what to look for now.

-- 
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/-/_p2dI3Pwi1wJ.
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