I noticed that myself. Here's the permissions on api.php. Read
permission looks fine.

-rw-r--r-- 1 apache apache 3321 May  5  2009 api.php

When running mw-render from a shell I get a different error. I know
the username and password are fine, they're my username and password.
I've tried several others as well. It appears to fail when grabbing
the license php from 
http://en.wikipedia.org/w/index.php?title=Help:Books/License&action=raw&templates=expand.
I'm not sure where I can change this though. There's really not a lot
of documentation for setting up mwlib.

r...@renderserver:~$ mw-render -w rl -o test.pdf http://mywiki.com
"Article" --username=myusername --password=mypassword --
domain=mydomain -c :en

font not found: ttf-sil-ezra/SILEOT.ttf
font not found: arphic/uming.ttc
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
creating nuwiki in '/tmp/tmpPiI5Xa/nuwiki'
2010-01-11T09:21:32 mwlib.utils.info >> fetching 'http://
en.wikipedia.org/w/index.php?title=Help:Books/
License&action=raw&templates=expand'
Fatal error: login failed: login failed: {u'login': {u'result':
u'NotExists'}}
removing tmpdir '/tmp/tmpPiI5Xa'
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-
linux-i686.egg/twisted/web/client.py", line 158, in handleResponse
    self.factory.page(response)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-
linux-i686.egg/twisted/web/client.py", line 323, in page
    self.deferred.callback(page)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 238, in callback
    self._startRunCallbacks(result)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 307, in
_startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 323, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/net/mwapi.py", line 198, in got_page
    raise RuntimeError("login failed: %r" % (res, ))
exceptions.RuntimeError: login failed: {u'login': {u'result':
u'NotExists'}}
Traceback (most recent call last):
  File "/usr/local/bin/mw-render", line 8, in <module>
    load_entry_point('mwlib==0.12.12', 'console_scripts', 'mw-render')
()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 210, in main
    return Main()()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 169, in __call__
    env = self.get_environment()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 101, in get_environment
    self.zip_filename = make_zip(output=self.options.keep_zip,
options=self.options, metabook=env.metabook, status=self.status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/apps/buildzip.py", line 58, in make_zip
    make_nuwiki(fsdir, metabook=metabook, options=options,
podclient=podclient, status=status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-
linux-i686.egg/mwlib/apps/make_nuwiki.py", line 171, in make_nuwiki
    raise RuntimeError(str(val))
RuntimeError: [Failure instance: Traceback: <type
'exceptions.RuntimeError'>: login failed: {u'login': {u'result':
u'NotExists'}}
/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-linux-
i686.egg/twisted/web/client.py:158:handleResponse
/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-linux-
i686.egg/twisted/web/client.py:323:page
/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:238:callback
/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:307:_startRunCallbacks
--- <exception caught here> ---
/usr/local/lib/python2.6/dist-packages/Twisted-9.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:323:_runCallbacks
/usr/local/lib/python2.6/dist-packages/mwlib-0.12.12-py2.6-linux-
i686.egg/mwlib/net/mwapi.py:198:got_page



RuntimeError: [Failure instance: Traceback: <type
'exceptions.RuntimeError'>: login failed: {u'login': {u'result':
u'WrongPass'}}




On Jan 11, 4:26 am, Ralf Schmitt <[email protected]> wrote:
> evil1dwk <[email protected]> writes:
> > Running my own render server against a private wiki.
> > ...
> > exceptions.RuntimeError: You need read permission to use this module:
>
> looks like a configuration issue with your mediawiki installation.
>
> regards,
> - 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.


Reply via email to