[tex-live] Lua module 'socket.url' loading problem with getmap

Josef Kleber josef.kleber at gmx.de
Fri Jun 29 18:11:29 CEST 2018


Am 29.06.2018 um 16:46 schrieb Ulrike Fischer:
> Am Fri, 29 Jun 2018 15:46:35 +0200 schrieb Josef Kleber:
> 
>> Am 29.06.2018 um 13:05 schrieb Josef Kleber:
>>>
>>> Relevant code in getmapdl.lua (/scripts/getmap)
>>>
>>> local http = require("socket.http");
>>> local ltn12 = require("ltn12")
>>> local url = require("socket.url")
>>>
>>> So I guess socket.http and ltn12 are found, but no socket.url!
> 
> It is rather curious. It looks as if one can use 
> local url=socket.url 

Some day I wanna see your crystal ball! ;-) But that's a workaround at best.

>  but not 
> local url=require("socket.url")
> while 
> local http=require("socket.http") works ok.
> 
> But with luatex 1.08 it seems to work again. 
> 

Strangely, it also works with texlua and texlua53 both v1.07 as in TL2018

jk at HP-kleberj /cygdrive/c/texlive/2018/texmf-dist/scripts/getmap
$ texlua getmapdl.lua -m gm -l 'Brandenburger Tor, Berlin' -o berlin -i png


WARNING: ZOOM not specified; using ZOOM=17 as default!
WARNING: XSIZE not specified; using XSIZE=600 as default!
WARNING: YSIZE not specified; using YSIZE=400 as default!
WARNING: SCALE not specified, using SCALE=1 as default!
WARNING: TYPE not specified; using roadmap as default!
WARNING: COLOR not specified; using blue as default!
WARNING: NUMBER not specified; using 1 as default!


getmapdl.lua:
url =
http://maps.googleapis.com/maps/api/staticmap?center=Brandenburger%20Tor%2c%20Berlin&size=600x400&zoom=17&markers=size:mid|color:blue|label:1|Brandenburger%20Tor%2c%20Berlin&maptype=roadmap&scale=1&format=png&sensor=false
url length = 221 bytes
output = berlin.png

jk at HP-kleberj /cygdrive/c/texlive/2018/texmf-dist/scripts/getmap
$ texlua53 getmapdl.lua -m gm -l 'Brandenburger Tor, Berlin' -o berlin2
-i png


WARNING: ZOOM not specified; using ZOOM=17 as default!
WARNING: XSIZE not specified; using XSIZE=600 as default!
WARNING: YSIZE not specified; using YSIZE=400 as default!
WARNING: SCALE not specified, using SCALE=1 as default!
WARNING: TYPE not specified; using roadmap as default!
WARNING: COLOR not specified; using blue as default!
WARNING: NUMBER not specified; using 1 as default!


getmapdl.lua:
url =
http://maps.googleapis.com/maps/api/staticmap?center=Brandenburger%20Tor%2c%20Berlin&size=600x400&zoom=17&markers=size:mid|color:blue|label:1|Brandenburger%20Tor%2c%20Berlin&maptype=roadmap&scale=1&format=png&sensor=false
url length = 221 bytes
output = berlin2.png

There's *something* broken.

Josef


More information about the tex-live mailing list