Location for require(...) files
Hi, I am not trying to install tikz related modules from ctan rather than copying them from the minimals. I notice that the latest version of pgfplot now gives an error: token call, execute: ...etatex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 'prepcontour' not found: no field package.preload['prepcontour'] no file '/usr/local/share/lua/5.4/prepcontour.lua' no file '/usr/local/share/lua/5.4/prepcontour/init.lua' no file '/usr/local/lib/lua/5.4/prepcontour.lua' no file '/usr/local/lib/lua/5.4/prepcontour/init.lua' no file './prepcontour.lua' no file './prepcontour/init.lua' pgfplots has a line which is essentially equal to \directlua{require(prepcontour);} https://github.com/pgf-tikz/pgfplots/blob/da2acbe847db88d1b916b324562161a1c8... It also ships with a prepcontour.lua file: $mtxrun prepcontour.lua /opt/luametatex/texmf-modules/tex/generic/pgfplots/lua/prepcontour.lua However, it is not found by the require(...) file. The value of my LUAINPUTS variable is: mtxrun --expand-var LUAINPUTS .;.;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!selfautoparent:texmf-local,!!selfautoparent:texmf-modules,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux-64,!!selfautoparent:texmf}/tex/{context,plain/base,generic}//;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!selfautoparent:texmf-local,!!selfautoparent:texmf-modules,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux-64,!!selfautoparent:texmf}/scripts/context/lua// So, the above file should have been found, but it isn't. How can I fix this. FWIW, here is a minimal example: \directlua{require("prepcontour");} Thanks, Aditya
On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote:
Hi,
I am not trying to install tikz related modules from ctan rather than copying them from the minimals. I notice that the latest version of pgfplot now gives an error:
token call, execute: ...etatex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 'prepcontour' not found: no field package.preload['prepcontour'] no file '/usr/local/share/lua/5.4/prepcontour.lua' no file '/usr/local/share/lua/5.4/prepcontour/init.lua' no file '/usr/local/lib/lua/5.4/prepcontour.lua' no file '/usr/local/lib/lua/5.4/prepcontour/init.lua' no file './prepcontour.lua' no file './prepcontour/init.lua'
pgfplots has a line which is essentially equal to
\directlua{require(prepcontour);}
So, the above file should have been found, but it isn't. How can I fix this.
This turned out to be a packaging issue. The file did not have read permissions. Sorry for the noise. Aditya
participants (1)
-
Aditya Mahajan