Hi Jeff, I am also trying to setup wikimedia render server as download pdf is not working with default option. I am unable to install mwlib.rl . How did you install the package on fedora?
Are you able to fix all issues. I would appreciate if you could share the steps. Thanks, San On Thursday, June 22, 2017 at 3:54:47 PM UTC-4, Jeff Saltzman wrote: > > I'm not able to get a pdf out :( Mediawiki is running on a server on our > LAN so can't use the public renderer. > > When I click "Download as PDF" on the Special:Book page, I get a "Book > rendering failed" page. > > Where can I find a log or any details on the error? > > Any help would be appreciated! > > > Details: > > I installed mwlib and mwlib.rl and the test worked: > > http://mwlib.readthedocs.io/en/latest/installation.html#testing-the-installation > > BUT... > To get the mw-zip command to work, I needed to replace references to > gevent.coros with gevent.lock, per > https://github.com/pediapress/mwlib/issues/63. > To get the mw-render command to work, I had to edit > mwlib/ext/reportlab/lib/utils.py to replace im.tostring() with im.tobytes, > per https://groups.google.com/d/msg/mwlib/OYaUXWiX16M/a1eN8UH8AwAJ. > > The page on running a render server > <http://mwlib.readthedocs.io/en/latest/renderserver.html> didn't work but > this > thread <https://groups.google.com/d/msg/mwlib/xYx2cfY3Rjs/mZfE44DXyx0J> > helped: I ran the commands in a different order; currently I'm running each > one as root from different shells (testing...:). > > > More details: > > Fedora 25 > MediaWiki version 1.27.3 > PHP version 7.0.19 > Collections extension version 1.7.0 > > From LocalSettings.php: > # Collection extension > require_once("$IP/extensions/Collection/Collection.php"); > $wgCollectionMWServeURL = "http://fedora:8899"; > $wgServer = "http://fedora"; > $wgCollectionMWServeCert = 'null'; > $wgEnableAPI = true; > $wgEnableWriteAPI = true; > $wgCollectionFormats = array('rl' => 'PDF', 'odf' => 'ODT'); > > > -- You received this message because you are subscribed to the Google Groups "mwlib" group. To unsubscribe from this group and stop receiving emails from it, send an email to mwlib+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.