Just an update. It seems to have little to do with my wiki - I mw- render on the english wikipedia article for Canada and got the same message. So the problem is with my installation or my command line:
mw-render -c http://en.wikipedia.org/wiki -o /home/izyk/wikipedia.pdf - w rl Canada Thanks Isaac Guenard On Jun 15, 9:40 am, Isaac Guenard <[email protected]> wrote: > Hello > > Thanks to some amazing help from Volker, I have been making real > progress using mw-lib. I'v spent the past week or so working out some > style issues, and it seemed like a good time to move the content from > my test server to the live public server. > > Since I want the links in the PDF to point to the right server, that > meant generating the PDF from the public server. I installed > collection and started getting errors. So I fell back to command line > and tried to produce a PDF using mw-render. > > I am getting the following error : Invalid base URL: > 'http://www.vfxpedia.com'. But I think the real error is actually : > > 2009-06-15T09:30:24 mwlib.utils.info >> fetching > 'http://www.vfxpedia.com/api.php?action=query&meta=siteinfo&format=json' > 2009-06-15T09:30:25 mwapidb.error >> Got exception: ValueError('Extra > data: line 1 column 291 - line 3 column 1 (char 291 - 432)',) > > Based on a past thread regarding this topic I checked and can > absolutely confirm that API.php is present in the wiki directory and > responds when visited directly with a browser. > > Below is a log of the full output, including command. The site is > public. Any help would be appreciated? > > ----------------------------------------------------------------- > i...@wash:/usr/lib/python2.5/site-packages/mwlib.rl-0.11.3-py2.5.egg/ > mwlib/rl$ mw-render -chttp://www.vfxpedia.com-o /home/izyk/ > vfxpedia.pdf -w rl Main_Page > 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-06-15T09:30:24 mwlib.utils.info >> fetching > 'http://www.vfxpedia.com/api.php?action=query&meta=siteinfo&format=json' > 2009-06-15T09:30:25 mwapidb.error >> Got exception: ValueError('Extra > data: line 1 column 291 - line 3 column 1 (char 291 - 432)',) > Traceback (most recent call last): > File "/usr/bin/mw-render", line 8, in <module> > load_entry_point('mwlib==0.11.2', 'console_scripts', 'mw-render') > () > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 222, in main > return Main()() > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 182, in __call__ > env = self.get_environment() > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/apps/render.py", line 93, in get_environment > env = self.parser.makewiki() > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/options.py", line 150, in makewiki > script_extension=script_extension, > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/wiki.py", line 268, in makewiki > script_extension=script_extension, > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/wiki.py", line 179, in _makewiki > script_extension=script_extension, > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/wiki.py", line 31, in wiki_mwapi > script_extension=script_extension, > File "/usr/lib/python2.5/site-packages/mwlib-0.11.2-py2.5-linux- > i686.egg/mwlib/mwapidb.py", line 670, in __init__ > raise MWAPIError('Invalid base URL: %r' % base_url) > mwlib.mwapidb.MWAPIError: Invalid base URL: 'http://www.vfxpedia.com' > i...@wash:/usr/lib/python2.5/site-packages/mwlib.rl-0.11.3-py2.5.egg/ > mwlib/rl$ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
