* Location for require(...) files
@ 2021-12-13 18:38 Aditya Mahajan via ntg-context
2021-12-13 18:46 ` Aditya Mahajan via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 18:38 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Aditya Mahajan
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/da2acbe847db88d1b916b324562161a1c8a3d36a/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex#L27
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Location for require(...) files
2021-12-13 18:38 Location for require(...) files Aditya Mahajan via ntg-context
@ 2021-12-13 18:46 ` Aditya Mahajan via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 18:46 UTC (permalink / raw)
To: Aditya Mahajan via ntg-context; +Cc: Aditya Mahajan
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-13 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 18:38 Location for require(...) files Aditya Mahajan via ntg-context
2021-12-13 18:46 ` Aditya Mahajan via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).