php - Issue with Books on MediaWiki -
i trying mediawiki export pdf format using books/collection, has issues rendering.
i found useful article good, when to:
$ mw-render --config http:/.localhost/ --username='user' --password='password' --output /path/file.pdf --writer rl
i issue. stick user name , password in, change path, following error:
/usr/local/lib/python2.7/dist-packages/mwlib/ext/reportlab/pdfbase/pdfmetrics.py:35: userwarning: pyfribidi not installed - rtl not supported warnings.warn('pyfribidi not installed - rtl not supported') /usr/local/lib/python2.7/dist-packages/mwlib/ext/reportlab/pdfgen/textobject.py:23: userwarning: pyfribidi not installed - rtl not supported warnings.warn('pyfribidi not installed - rtl not supported') missing fonts: 'ar pl uming hk','nazli','unbatang','arundina serif','lohit telugu','sarai','gujarati','lohit punjabi','lohit oriya','anjalioldlipi','kedage','likhannormal','lohit tamil','khmer' traceback (most recent call last): file "/usr/local/bin/mw-render", line 9, in <module> load_entry_point('mwlib==0.15.14', 'console_scripts', 'mw-render')() file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/apps/render.py", line 243, in main return main()() file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/apps/render.py", line 194, in __call__ env = self.get_environment() file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/apps/render.py", line 120, in get_environment env = self.parser.makewiki() file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/options.py", line 114, in makewiki env = wiki.makewiki(**kw) file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/wiki.py", line 213, in makewiki res = _makewiki(config, metabook=metabook, **kw) file "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-i686.egg/mwlib/wiki.py", line 187, in _makewiki raise runtimeerror("could not read config file %r" % (conf,)) runtimeerror: not read config file u'http:localhost/'
anyone know issue is?
if anyone's having issues "coros" module not being found mwlib, downgrading gevent library helps. coros module has been deprecated , later removed in newer versions.
i'm not sure latest gevent version has coros module, following resolved issue me:
pip install gevent==1.1
this downgrades gevent library version 1.1. version 1.0 not work because of protocol_sslv3.
Comments
Post a Comment