Anthere said:
Could that help ?
Needs work.
Getting page en:George_W._Bush Getting image en:Bush_daughers.gif url http://en.wikipedia.org/wiki/Image:Bush_daughers.gifTraceback (most recent call last): File "./wiki2latex.py", line 497, in ? tex_code += doWiki(wikicode) File "./wiki2latex.py", line 448, in doWiki text = doImages(text) File "./wiki2latex.py", line 423, in doImages getpage.getImage(code, im, sys.argv[3]) File "/data/harko/wiki.auf-trag.de/www/html/wikipdf/src/getpage.py", line 92, in getImage uri = name2url(get_host_part(config_baseurl[code]) + url.group(1)) AttributeError: 'NoneType' object has no attribute 'group'
Interesting idea, but where are the PDF's?
Getting articles...
Getting page en:Dutch_Golden_Age Getting image en:OudeRijnLeiden.jpg url http://en.wikipedia.org/wiki/Image:OudeRijnLeiden.jpg Traceback (most recent call last): File "./wiki2latex.py", line 497, in ? tex_code += doWiki(wikicode) File "./wiki2latex.py", line 448, in doWiki text = doImages(text) File "./wiki2latex.py", line 423, in doImages getpage.getImage(code, im, sys.argv[3]) File "/data/harko/wiki.auf-trag.de/www/html/wikipdf/src/getpage.py", line 92, in getImage uri = name2url(get_host_part(config_baseurl[code]) + url.group(1)) AttributeError: 'NoneType' object has no attribute 'group'
Making PDF...
...................
Not Found The requested URL /wikipdf/tmp/1114006231-874180198/t.pdf was not found on this server.
On 4/20/05, Tony Sidaway minorityreport@bluebottle.com wrote:
Anthere said:
Could that help ?
Needs work.
Getting page en:George_W._Bush Getting image en:Bush_daughers.gif url http://en.wikipedia.org/wiki/Image:Bush_daughers.gifTraceback (most recent call last): File "./wiki2latex.py", line 497, in ? tex_code += doWiki(wikicode) File "./wiki2latex.py", line 448, in doWiki text = doImages(text) File "./wiki2latex.py", line 423, in doImages getpage.getImage(code, im, sys.argv[3]) File "/data/harko/wiki.auf-trag.de/www/html/wikipdf/src/getpage.py", line 92, in getImage uri = name2url(get_host_part(config_baseurl[code]) + url.group(1)) AttributeError: 'NoneType' object has no attribute 'group'
Wikipedia-l mailing list Wikipedia-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikipedia-l
Jeffrey Johnson schrieb:
Interesting idea, but where are the PDF's?
Getting articles...
Getting page en:Dutch_Golden_Age Getting image en:OudeRijnLeiden.jpg url http://en.wikipedia.org/wiki/Image:OudeRijnLeiden.jpg Traceback (most recent call last): File "./wiki2latex.py", line 497, in ? tex_code += doWiki(wikicode) File "./wiki2latex.py", line 448, in doWiki text = doImages(text) File "./wiki2latex.py", line 423, in doImages getpage.getImage(code, im, sys.argv[3]) File "/data/harko/wiki.auf-trag.de/www/html/wikipdf/src/getpage.py", line 92, in getImage uri = name2url(get_host_part(config_baseurl[code]) + url.group(1)) AttributeError: 'NoneType' object has no attribute 'group'
Making PDF...
...................
Not Found The requested URL /wikipdf/tmp/1114006231-874180198/t.pdf was not found on this server.
I tried this tool sometimes, too, but alway got the same error.
Leon
I wrote this program, the problem is that it doesn't yet support images on Commons (how do you check if an image is on commons? just send a GET request an see if you get a 404?). At the moment I don't have the time to update it. Feel free to hack it if you wish, the code is in CVS on http://sourceforge.net/projects/wikipdf
-Stephan Walter
Leon Weber wrote:
Jeffrey Johnson schrieb:
Getting image en:OudeRijnLeiden.jpg url http://en.wikipedia.org/wiki/Image:OudeRijnLeiden.jpg Traceback (most recent call last):
On Thu, Apr 21, 2005 at 05:20:11PM +0200, Stephan Walter wrote:
I wrote this program, the problem is that it doesn't yet support images on Commons (how do you check if an image is on commons? just send a GET request an see if you get a 404?). At the moment I don't have the time
that's exactly what i did with the pybot.
ciao, tom
I wrote this patch to mediawiki-1.4.5 (works for 1.4.6 too) that integrates wikipdf into mediawiki. See bug 2852 http://bugzilla.wikipedia.org/show_bug.cgi?id=2852
It seems to fix the Commons Images problem since it doesn´t download the images anymore (wikipdf code is now a mediawiki feature running on the same server).
Felipe Sanches
PS: Brion noticed that this patch is buggy because shell commands are not sanitized, I´ll try to fix these problems.
wikipedia-l@lists.wikimedia.org