On 8/13/2023 10:39 PM, Xavier B. wrote:
Running LMTX I have an error: lualibs-os not found:
lua error > lua error on line 35 in file ng-pre-informacio-document.conTeXt:
token call, execute: ...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 'lualibs-os' not found: no field package.preload['lualibs-os'] no file '/usr/local/share/lua/5.4/lualibs-os.lua' no file '/usr/local/share/lua/5.4/lualibs-os/init.lua' no file '/usr/local/lib/lua/5.4/lualibs-os.lua' no file '/usr/local/lib/lua/5.4/lualibs-os/init.lua' no file './lualibs-os.lua' no file './lualibs-os/init.lua' stack traceback: [C]: in upvalue 'requiem' ...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function <...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165> (...tail calls...) [ctxlua]:1: in main chunk 25 \subsubject{Versió} 26 27 Contínuament canvio aquest document, afegint, modificant o eliminant algunes parts seves. En aquest sentit, és una obra permanentment inacabada. Per aquest motiu convé saber quina versió del document esteu llegint. 28 29 \medskip 30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ },month,{ },year] a les \currenttime, usant programari lliure (\goto{\Context}[url(http://wiki.contextgarden.net)] versió \contextversionnumber, \goto{\texenginename}[url(http://www.luatex.org)] versió \texengineversion\space i \goto{PGF/Ti{\em k}Z}[url(http://sourceforge.net/projects/pgf/)]) sota un entorn \goto{GNU/Linux}[url(https://www.linuxfoundation.org)] (\goto{Artix Linux}[url(https://artixlinux.org)]). La revisió d'aquest document és la número \goto{\directlua{ 34 require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. El conjunt de les versions s'administra amb \goto{git}[url(http://git-scm.com/)]. Teniu el codi font del document en aquest repositori: \goto{https://repo.or.cz/apunts-espa-matematiques.git}[url(https://repo.or.cz/apunts-espa-matematiques.git)]. 36
Can you give me the solution here? I have no clue what lualibs-os is so ... if it's something third party you and try.
--permitloadlib and cross your fingers. Also, whenever using lua code that is not part of context keep in mind that we use lua 5.4 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------