https://bugzilla.wikimedia.org/show_bug.cgi?id=47575

       Web browser: ---
            Bug ID: 47575
           Summary: Generating PDFs for books with more than one page
                    fails horribly at pl.wikisource
           Product: MediaWiki extensions
           Version: master
          Hardware: All
               URL: https://pl.wikisource.org/w/index.php?title=Wiki%C5%BA
                    r%C3%B3d%C5%82a:Ksi%C4%85%C5%BCki/Copp%C3%A9e_Fran%C3%
                    A7ois_-_Henryka&rcid=450937
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Collection
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Generating PDFs for books with more than one page fails horribly at
pl.wikisource. Example book:
https://pl.wikisource.org/w/index.php?title=Wiki%C5%BAr%C3%B3d%C5%82a:Ksi%C4%85%C5%BCki/Copp%C3%A9e_Fran%C3%A7ois_-_Henryka&rcid=450937
- click "Pobierz PDF" and watch the havoc unfold.

RuntimeError: command failed with returncode 256: ['mw-render', '-w', 'rl',
'-c', 'cache/87/87f4f0452d9a266c/collection.zip', '-o',
'cache/87/87f4f0452d9a266c/output.rl', '--status',
'qserve://localhost:14311/87f4f0452d9a266c:render-rl', '--template-blacklist',
'MediaWiki:PDF Template Blacklist', '--template-exclusion-category',
u'Omi\u0144 w druku', '--print-template-prefix', 'Drukuj',
'--print-template-pattern', '$1/Wydruk', '--language', 'pl']
Last Output:
    2013-04-23T21:30:16 mwlib.options.warn >> Both --print-template-pattern and
--print-template-prefix (deprecated) specified. Using --print-template-pattern
only.
    MISSING FONTS: 'Gujarati'
    1%  reading /tmp/tmp-mw-renderkA0Rg1/tmp_GQQMz/revisions-1.txt
    set locale to 'pl_PL.UTF-8' based on the language 'pl'
    1% laying out 0% error removing '/tmp/tmp-mw-renderkA0Rg1/tmp_GQQMz'
    Traceback (most recent call last):
      File "/home/pp/local/bin/mw-render", line 9, in <module>
        load_entry_point('mwlib==0.15.7', '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 2193, 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 471, in writeBook
        art = self.buildArticle(item)
      File "/home/pp/local/lib/python2.6/site-packages/mwlib/rl/rlwriter.py",
line 360, in buildArticle
        revision=item.revision)
      File "/home/pp/local/lib/python2.6/site-packages/mwlib/nuwiki.py", line
430, 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to