Page MenuHomePhabricator

PDF export returns error
Closed, ResolvedPublic

Description

Author: dictumwiki

Description:
PDF export returns permanent error since a few months on pl.wikisource.org.

For example on this page: http://pl.wikisource.org/wiki/Wyspa_tajemnicza/ca%C5%82o%C5%9B%C4%87 error is:

RuntimeError: command failed with returncode 256: ['mw-render', '-w', 'rl', '-c', 'cache/30/30259bd5a747415b/collection.zip', '-o', 'cache/30/30259bd5a747415b/output.rl', '--status', 'qserve://localhost:14311/30259bd5a747415b:render-rl', '--language', 'pl'] Last Output: MISSING FONTS: 'Gujarati' 1% reading /tmp/tmp-mw-renderYlshYn/tmp7_lCRX/revisions-1.txt set locale to 'pl_PL.UTF-8' based on the language 'pl' 1% laying out 0% error removing '/tmp/tmp-mw-renderYlshYn/tmp7_lCRX' Traceback (most recent call last): File "/home/pp/local/bin/mw-render", line 9, in <module> load_entry_point('mwlib==0.15.10', 'console_scripts', 'mw-render')() File "/home/pp/local/lib/python2.6/site-packages/mwlib/apps/render.py", line 241, in main return Main()() File "/home/pp/local/lib/python2.6/site-packages/mwlib/apps/render.py", line 206, in call writer(env, output=tmpout, status_callback=self.status, writer_options) File "/home/pp/local/lib/python2.6/site-packages/mwlib/rl/rlwriter.py", line 2191, in writer r.writeBook(output=output, coverimage=coverimage, status_callback=status_callback) File "/home/pp/local/lib/python2.6/site-packages/mwlib/rl/rlwriter.py", line 470, in writeBook art = self.buildArticle(item) File "/home/pp/local/lib/python2.6/site-packages/mwlib/rl/rlwriter.py", line 359, in buildArticle revision=item.revision) File "/home/pp/local/lib/python2.6/site-packages/mwlib/nuwiki.py", line 418, in getParsedArticle return uparser.parseString(title=title, raw=raw, wikidb=self, lang=self.siteinfo["general"]["lang"], expandTemplates=expandTemplates) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/uparser.py", line 62, in parseString a = compat.parse_txt(input, title=title, wikidb=wikidb, nshandler=nshandler, lang=lang, magicwords=magicwords, uniquifier=uniquifier, expander=te) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/compat.py", line 193, in parse_txt sub = core.parse_txt(raw, kwargs) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/core.py", line 1037, in parse_txt combined_parser(parsers)(tokens, xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/core.py", line 646, in call p(x, xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/core.py", line 762, in init tokens[i] = m(name, vlist, inner or u"", xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib/refine/core.py", line 879, in create_pages pages = expander.db.select(s, e) AttributeError: 'DictDB' object has no attribute 'select' in function system, file /home/pp/local/lib/python2.6/site-packages/mwlib/nslave.py, line 64


Version: master
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=47575

Details

Reference
bz52108

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:52 AM
bzimport added a project: Collection.
bzimport set Reference to bz52108.
bzimport added a subscriber: Unknown Object (MLST).

dictumwiki: Thanks for taking the time to report this!

Confirming.
After clicking "Pobierz jako PDF" it gets stuck at 1.00% and throws an error.

Does this also happen with other articles?
Wondering if there's some pattern...

dictumwiki wrote:

Andre: I could not find any working article at pl.wikisource.org. Tested on old articles as well as on new articles listed at http://pl.wikisource.org/wiki/Szablon:Nowe

Stacktraces are different, but also see bug 47575

ralf_wikimedia wrote:

*** This bug has been marked as a duplicate of bug 47575 ***

ralf_wikimedia wrote:

it's the same bug.