mw-render can't find images

126 views
Skip to first unread message

Daniel.S...@unige.ch

unread,
May 1, 2009, 11:23:59 AM5/1/09
to mwlib
Hi, I just installed mwlib and mw-render can't find the images

mwlib 0.11.0.dev
mwlib.rl 0.10.2
System: Solaris 10
Mediawiki: 1.14

Some quick install notes: http://edutechwiki.unige.ch/mediawiki/index.php?title=Help:Books

Now testing:
mw-render --config=http://edutechwiki.unige.ch/mediawiki/ --
writer=odf --output=./edutech.odt Educational_technology
mw-render --config=http://edutechwiki.unige.ch/mediawiki/ --writer=rl
--output=./edutech.pdf Educational_technology

In both cases I get the OO/PDF files, so my install should be more or
less ok, but the pictures are missing.
If I understood right, mw-render should get these via the api.php.
Also, YOUR server http://tools.pediapress.com/ used with the
collection extension installed yesterday can get these pictures
(though it skips half of the pages but that's another issue).

Did I miss something ? E.g. Should I still have to tweak a
configuration file ? I tried, but did not manage.

My URLS look like this:
http://edutechwiki.unige.ch/en/Educational_technology
http://edutechwiki.unige.ch/mediawiki/index.php?title=Educational_technology
http://edutechwiki.unige.ch/mediawiki/images/Instructional_Desing_Space.gif
http://edutechwiki.unige.ch/mediawiki/api.php?action=query&generator=images&titles=Educational_technology&prop=info

Here is the output of mw-render (the latex install is not great, but
that should not be the issue):

mw-render --config=http://edutechwiki.unige.ch/mediawiki/ --writer=rl
--output=./edutech.pdf Educational_technology
sh: blahtexml: not found
font not found: arphic/uming.ttc
font not found: ttf-sil-ezra/SILEOT.ttf
....
font not found: ttf-indic-fonts-core/lohit_ta.ttf
font not found: linux-libertine/LinLibertine_Re.ttf
2009-05-01T16:55:25 mwlib.utils.info >> fetching 'http://
edutechwiki.unige.ch/mediawiki/api.php?
action=query&meta=siteinfo&format=json'
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectionRefusedError: Connection was
refused by other side: 146: Connection refused.
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectionRefusedError: Connection was
refused by other side: 146: Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-
solaris-2.10-sun4u.egg/twisted/internet/defer.py", line 328, in
_runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/local/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-
solaris-2.10-sun4u.egg/twisted/internet/defer.py", line 536, in
_cbDeferred
self.callback(self.resultList)
File "/usr/local/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-
solaris-2.10-sun4u.egg/twisted/internet/defer.py", line 243, in
callback
self._startRunCallbacks(result)
File "/usr/local/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-
solaris-2.10-sun4u.egg/twisted/internet/defer.py", line 312, in
_startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/local/lib/python2.5/site-packages/Twisted-8.2.0-py2.5-
solaris-2.10-sun4u.egg/twisted/internet/defer.py", line 328, in
_runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/local/lib/python2.5/site-packages/mwlib-0.11.0.dev-py2.5-
solaris-2.10-sun4u.egg/mwlib/twisted_api.py", line 685, in got_api
def got_api(((api, siteinfo), idx)):
exceptions.ValueError: too many values to unpack
10/10/10 jobs -- 0/20 running
done
removing '/tmp/nuwiki-tqk4eC'
font not found: arphic/uming.ttc
font not found: ttf-sil-ezra/SILEOT.ttf
.....
font not found: ttf-indic-fonts-core/lohit_ta.ttf
font not found: linux-libertine/LinLibertine_Re.ttf
2009-05-01T16:55:42 rlwriter.warning >> invalid image url (obj.target:
u'Image:Instructional_Desing_Space.gif')
2009-05-01T16:55:42 rlwriter.warning >> invalid image url (obj.target:
u'Image:Educational_Technology_Problem_Space.gif')
2009-05-01T16:55:44 rlwriter.info >> start rendering: '/tmp/tmpmfgDlL'
2009-05-01T16:55:46 rlwriter.info >> ###### RENDERING OK

Thanx for any hint/help :) - Daniel

Grego at mpaja.com

unread,
May 3, 2009, 2:36:30 PM5/3/09
to mwlib


On May 1, 5:23 pm, Daniel.Schnei...@unige.ch wrote:
> Hi, I just installed mwlib and mw-render can't find the images
>
>  mwlib  0.11.0.dev
>  mwlib.rl 0.10.2

To me it looks like a regression in the dev version.

I just pulled the last version from Mercurial repository, and all
image links got broken for me as well when rendering to xhtml.

Furthermore, the cdb database broke. Previously the image links were
missing if using cdb database, now it doesn't get that far, instead it
dies with exception:

1% 1% error Traceback (most recent call last):
File "/usr/local/bin/mw-render", line 8, in <module>
load_entry_point('mwlib==0.11.0.dev', 'console_scripts', 'mw-
render')()
File "/home/ha/src/mwlib.hg/mwlib/apps/render.py", line 223, in main
return Main()()
File "/home/ha/src/mwlib.hg/mwlib/apps/render.py", line 183, in
__call__
env = self.get_environment()
File "/home/ha/src/mwlib.hg/mwlib/apps/render.py", line 109, in
get_environment
self.zip_filename = hack(output=self.options.keep_zip,
options=self.options, env=env, podclient=None, status=self.status,
keep_tmpfiles=self.options.keep_tmpfiles)
File "/home/ha/src/mwlib.hg/mwlib/apps/buildzip.py", line 49, in
hack
base_url = env.wiki.api_helper.base_url
AttributeError: 'WikiDB' object has no attribute 'api_helper'

Grego

Johannes Beigel

unread,
May 4, 2009, 8:54:38 AM5/4/09
to mw...@googlegroups.com
On 01.05.2009, at 17:23, Daniel.S...@unige.ch wrote:
> Hi, I just installed mwlib and mw-render can't find the images

Thanks for the report! Bug has been fixed with this changeset:

http://code.pediapress.com/hg/mwlib/rev/41c207e76b28

-- Johannes


Daniel.S...@unige.ch

unread,
May 4, 2009, 9:06:07 AM5/4/09
to mwlib
Brilliant - thanx :)

Tested, pictures are there now - Daniel




Reply all
Reply to author
Forward
0 new messages