[tex-live] Lua module 'socket.url' loading problem with getmap
Josef Kleber
josef.kleber at gmx.de
Sat Jul 7 14:38:02 CEST 2018
Dear Akira,
sorry for the late response, but I was busy ...
Am 02.07.2018 um 16:29 schrieb Akira Kakuto:
> Dear Josef,
>
>> Surprisingly, I just learned that it works if called from getmap.sty!
>
> Thanks for the test.
> I don't know lua, and I don't understand what is changed,
> but I think that it is best and simplest at present to update getmapdl.lua
> as follows, as stated by Ulrike:
>
> --- getmapdl.lua.orig Sun Oct 12 07:25:53 2014
> +++ getmapdl.lua Mon Jul 02 23:02:58 2018
> @@ -10,7 +10,7 @@
> --
> local http = require("socket.http");
> local ltn12 = require("ltn12")
> -local url = require("socket.url")
> +local url = socket.url or require("socket.url")
>
> local OSMURL = "http://open.mapquestapi.com/staticmap/v4/getplacemap"
> local GMURL = "http://maps.googleapis.com/maps/api/staticmap"
>
I can change getmapdl.lua. I already had a workaround by copying the 4
lines of socket.url's escape function into a local function in
getmapdl.lua, which seems to be saver at the moment. This problem seems
to indicate a serious problem in (TL's) luatex. Whatever you have
changed, it was a game changer. Please reconsider your decesion and
upload the new version. A luatex in TL unable to load a standard lib can
potentially cause more problems elsewhere.
Best,
Josef
More information about the tex-live
mailing list