I had the same problem I think: http://groups.google.com/group/mwlib/browse_thread/thread/349ff9560f02e8b1?hl=en
I upgraded to the dev branch of mwlib and that seemed to address is. There's a problem w/ the authentication in the 11.2 release. I think this may have worked in 0.10.4 too but I just went w/ the newest. On Jul 11, 5:31 am, Frank Kalmbach <[email protected]> wrote: > Maybe somebody can have a look on my problem and can explain it to me. > > Produkt Version > MediaWiki 1.15.0 > PHP 5.2.6-1+lenny3 (apache2handler) > MySQL 5.0.51a-24+lenny1 > Collection (Version 1.1 [r48415]) > > I use a private wiki with group permissions set to: > > $wgGroupPermissions['*']['edit'] = false; > $wgGroupPermissions['*']['createaccount'] = false; > $wgGroupPermissions['*']['read'] = false; > $wgWhitelistRead = array("Spezial:Userlogin"); > $wgGroupPermissions['*']['read'] = false; > > I set the $wgCollectionMWServeCredentials = "USER:PASSWORD"; as well > in my LocalSettings.php. > > I get everything working if i enter $wgGroupPermissions['*']['read'] = > true; into my api.php. My understanding is that since version 1.14 tis > should work without modiffication in api.php > > my test is: > mw-render --config=http://localhost/kalmiwiki/--login=USER:PASSWORD - > w rl -o /home/kalmbach/frank.pdf frank --logfile=/home/kalmbach/tt.log > > The resulting log is: > font not found: arphic/uming.ttc > font not found: ttf-sil-ezra/SILEOT.ttf > font not found: ttf-farsiweb/nazli.ttf > font not found: unfonts/UnBatang.ttf > font not found: ttf-thai-arundina/ArundinaSans.ttf > font not found: ttf-telugu-fonts/lohit_te.ttf > font not found: ttf-devanagari-fonts/Sarai_07.ttf > font not found: ttf-indic-fonts-core/lohit_pa.ttf > font not found: ttf-oriya-fonts/lohit_or.ttf > font not found: ttf-malayalam-fonts/AnjaliOldLipi.ttf > font not found: ttf-kannada-fonts/Kedage-n.ttf > font not found: ttf-bengali-fonts/LikhanNormal.ttf > font not found: ttf-indic-fonts-core/lohit_ta.ttf > font not found: linux-libertine/LinLibertine_Re.ttf > 1% 2009-07-11T11:27:17 mwlib.utils.info >> fetching 'http://localhost/ > kalmiwiki/api.php' > 2009-07-11T11:27:17 mwlib.utils.info >> fetching 'http://localhost/ > kalmiwiki/api.php?action=query&meta=siteinfo&format=json' > 2009-07-11T11:27:18 mwlib.utils.info >> fetching 'http://localhost/ > kalmiwiki/api.php' > Traceback (most recent call last): > Failure: exceptions.RuntimeError: You need read permission to use this > module > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.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 "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/buildzip.py", line 105, in hack > reactor.run() > File "/usr/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux- > i686.egg/twisted/internet/base.py", line 1128, in run > self.mainLoop() > File "/usr/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux- > i686.egg/twisted/internet/base.py", line 1137, in mainLoop > self.runUntilCurrent() > --- <exception caught here> --- > File "/usr/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux- > i686.egg/twisted/internet/base.py", line 757, in runUntilCurrent > call.func(*call.args, **call.kw) > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/twisted_api.py", line 734, in dispatch > reactor.stop() > File "/usr/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-linux- > i686.egg/twisted/internet/base.py", line 527, in stop > "Can't stop reactor that isn't running.") > twisted.internet.error.ReactorNotRunning: Can't stop reactor that > isn't running. > fatal: could not get siteinfo [[Failure instance: Traceback (failure > with no frames): <type 'exceptions.RuntimeError'>: You need read > permission to use this module > ]] > > done > removing '/tmp/nuwiki-0GY-Q1' > 1% error Traceback (most recent call last): > File "/usr/bin/mw-render", line 8, in <module> > load_entry_point('mwlib==0.11.2', 'console_scripts', 'mw-render') > () > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 222, in main > return Main()() > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 182, in __call__ > env = self.get_environment() > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 117, in get_environment > env = wiki.makewiki(self.zip_filename) > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/wiki.py", line 268, in makewiki > script_extension=script_extension, > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/wiki.py", line 218, in _makewiki > res.images = res.wiki = nuwiki.Adapt(zf) > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/nuwiki.py", line 202, in __init__ > self.nuwiki = nuwiki(path_or_instance) > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/nuwiki.py", line 39, in __init__ > self.nshandler = nshandling.nshandler(self.siteinfo) > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/nshandling.py", line 55, in __init__ > self.capitalize = self.siteinfo['general'].get('case') == 'first- > letter' > KeyError: 'general' --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
