On Apr 30, 2:01 pm, Johannes Beigel <[email protected]>
wrote:
> On 28.04.2009, at 18:25, [email protected] wrote:
>
> > mw-render -chttp://fabrice/wiki-w rl -o test.pdf "Test"
>
> > That gives
>
> > mwlib.mwapidb.MWAPIError: Invalid base URL: 'http://fabrice/wiki'
>
> Is there any other output besides this line?

Here is the complete output:

 mw-render -c http://fabrice/wiki -w rl -o test.pdf "Clustering"
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-05-04T11:00:35 mwlib.status >> PROGRESS: 1%
2009-05-04T11:00:35 mwlib.utils.info >> fetching 'http://fabrice/wiki/
api.php?action=query&meta=siteinfo&format=json'
2009-05-04T11:00:35 mwlib.utils.error >> HTTP Error 404: Not Found -
while fetching 'http://fabrice/wiki/api.php?
action=query&meta=siteinfo&format=json'
2009-05-04T11:00:35 mwapidb.warn >> Fetching failed. Trying again.
2009-05-04T11:00:35 mwlib.utils.info >> fetching 'http://fabrice/wiki/
api.php?action=query&meta=siteinfo&format=json'
2009-05-04T11:00:35 mwlib.utils.error >> HTTP Error 404: Not Found -
while fetching 'http://fabrice/wiki/api.php?
action=query&meta=siteinfo&format=json'
2009-05-04T11:00:35 mwapidb.warn >> Fetching failed. Trying again.
2009-05-04T11:00:36 mwapidb.error >> Got no data from api.php
2009-05-04T11:00:36 mwlib.status >> STATUS: error
Traceback (most recent call last):
  File "/usr/bin/mw-render", line 8, in <module>
    load_entry_point('mwlib==0.10.4', 'console_scripts', 'mw-render')
()
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/apps.py", line 352, in render
    env = parser.makewiki()
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/options.py", line 143, in makewiki
    script_extension=script_extension,
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/wiki.py", line 239, in makewiki
    script_extension=script_extension,
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/wiki.py", line 179, in _makewiki
    script_extension=script_extension,
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/wiki.py", line 31, in wiki_mwapi
    script_extension=script_extension,
  File "/usr/lib/python2.5/site-packages/mwlib-0.10.4-py2.5-linux-
x86_64.egg/mwlib/mwapidb.py", line 668, in __init__
    raise MWAPIError('Invalid base URL: %r' % base_url)
mwlib.mwapidb.MWAPIError: Invalid base URL: 'http://fabrice/wiki'

> Do you have MediaWiki API  
> enabled (should be accessible viahttp://fabrice/wiki/api.phpwith  
> this base URL)?

I get a 404 error, this actually seems consistent with the "HTTP Error
404: Not Found - while fetching 'http://fabrice/wiki/api.php";, so I
guess there is something wrong with my mw installation, how do I get
api.php running besides putting $wgEnableApi = true; in
LocalSettings.php ? I tried to google it but had no luck....

> Is login required to access your wiki?

The Login is only needed to make modifiacations

>
> -- Johannes
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to