I'd tried to upgrade to a newer mwlib at some point and it looks like
the python libs got out of whack.  I removed mwlib, mwlib.ext and
mwlib.rl and re-installed so I think it's clean.  Now I get the
following error from the render command you posted:


-----------------
mw-render -o foo.pdf -w rl -c http://my.server.com "PAGE" --
login=user:pass:local
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
2009-07-08T15:46:17 mwlib.utils.info >> fetching 'http://my.server.com/
api.php'
2009-07-08T15:46:17 mwlib.utils.info >> fetching 'http://my.server.com/
api.php?action=query&meta=siteinfo&format=json'
2009-07-08T15:46:18 mwlib.utils.info >> fetching 'http://my.server.com/
api.php'
Traceback (most recent call last):
Failure: exceptions.RuntimeError: Unrecognized value for parameter
'action': query
fatal: could not get siteinfo [[Failure instance: Traceback (failure
with no frames): exceptions.RuntimeError: Unrecognized value for
parameter 'action': query
]]
3/3/3 jobs -- 0/20 running
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-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.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/buildzip.py", line 105, in hack
    reactor.run()
  File "/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-
i686.egg/twisted/internet/base.py", line 1128, in run
    self.mainLoop()
  File "/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-
i686.egg/twisted/internet/base.py", line 1137, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-
i686.egg/twisted/internet/base.py", line 757, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/twisted_api.py", line 734, in dispatch
    reactor.stop()
  File "/usr/lib/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-
i686.egg/twisted/internet/base.py", line 526, in stop
    raise error.ReactorNotRunning(
twisted.internet.error.ReactorNotRunning: Can't stop reactor that
isn't running.
done
removing '/tmp/nuwiki-xEykVd'
Traceback (most recent call last):
  File "/usr/bin/mw-render", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/render.py", line 222, in main
    return Main()()
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/render.py", line 182, in __call__
    env = self.get_environment()
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/render.py", line 117, in get_environment
    env = wiki.makewiki(self.zip_filename)
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/wiki.py", line 268, in makewiki
    script_extension=script_extension,
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/wiki.py", line 218, in _makewiki
    res.images = res.wiki = nuwiki.Adapt(zf)
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/nuwiki.py", line 202, in __init__
    self.nuwiki = nuwiki(path_or_instance)
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/nuwiki.py", line 39, in __init__
    self.nshandler = nshandling.nshandler(self.siteinfo)
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/nshandling.py", line 55, in __init__
    self.capitalize = self.siteinfo['general'].get('case') == 'first-
letter'
KeyError: 'general'
--------------------

in the /cache/dir/whatever i've got an error.rl:
-----------------
traceback
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/render.py", line 182, in __call__
    env = self.get_environment()
  File "/usr/lib/python2.4/site-packages/mwlib-0.11.2-py2.4-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.4/site-packages/mwlib-0.11.2-py2.4-linux-
i686.egg/mwlib/apps/buildzip.py", line 114, in hack
    sys.exit(10)
SystemExit: 10
----------------------------------------




On Jul 8, 5:56 am, Johannes Beigel <[email protected]>
wrote:
> On 25.06.2009, at 02:26, Bill wrote:
>
>
>
> > We're using the mwlib.cgi to perform the rendering and it seems to
> > never return after starting the pdf print.  I look in the log output
> > for the cgi and I see:
>
> > ....
> > 2009-06-24T17:18:11 mwlib.serve.info >> render_status a70c4d3897945083
> > rl
> > 2009-06-24T17:18:11 mwlib.wsgi.info >> request took 0.006124 s
> > 2009-06-24T17:18:12 mwlib.serve.info >> render_status a70c4d3897945083
> > rl
> > 2009-06-24T17:18:12 mwlib.wsgi.info >> request took 0.002621 s
> > 2009-06-24T17:18:14 mwlib.serve.info >> render_status a70c4d3897945083
> > rl
> > 2009-06-24T17:18:14 mwlib.wsgi.info >> request took 0.000997 s
> > 2009-06-24T17:18:15 mwlib.serve.info >> render_status a70c4d3897945083
> > rl
> > 2009-06-24T17:18:15 mwlib.wsgi.info >> request took 0.000984 s
> > ...
>
> > but I get nothing back on the wiki.
>
> Most probably, mw-render can't be executed for some reason. Are there  
> any errors in the log? Can you execute mw-render manually on the  
> command line?
>
> $ mw-render -o test.pdf -w rl -chttp://yourwikis/base/url"Some  
> Article Name"
>
> Are there any log or error files in the "collection directory"? The  
> name of the directory is constructed from the collection ID (the  
> cryptic alpha-numeric string in the log above) like this:
>
>    /path/to/your/cache/dir/a/a7/a70c4d3897945083
>
> (i.e. first the path to your --cache-dir, then the first letter of the  
> collection ID, then the first two letters of the collection ID, then  
> the whole collection ID.)
>
> -- Johannes
--~--~---------~--~----~------------~-------~--~----~
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