Hello, I just renewed ConTeXt and new error when using "require" appears (it worked OK until the update): ---- t-Req.mkiv \startluacode require "Test-U" \stopluacode \starttext A \stoptext ---- " mtx-context | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --interaction="nonstopmode" --jobname="t-Req" --lua="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --no-parse-first-line --c:FILE="t-Req.mkiv" --c:currentrun=1 --c:fulljobname="C:/Lukas/ConTeXt/Test/t-Req.mkiv" --c:halt-on-error --c:input="C:/Lukas/ConTeXt/Test/t-Req.mkiv" --c:kindofrun=1 --c:mode="t-Req" --c:nonstopm ode "cont-yes.mkiv" This is LuaTeX, Version beta-0.70.2-2012092822 (TeX Live 2012/W32TeX) \write18 enabled. (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.10.02 22:03 MKIV fmt: 2012.10.4 int: english/english system > cont-new.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) fonts > latin modern fonts are not preloaded languages > language en is active (C:/Lukas/ConTeXt/Test/t-Req.mkiv ! LuaTeX error <main ctx instance>:2: module 'Test-U' not found: no field package.preload['Test-U'] no file 'Test-U.dll' no file 'c:\Program Files\Lua\5.1\clibs\Test-U.dll' no file 'C:\Lukas\Lua\Test-U.dll' stack traceback: [C]: in function 'require' <main ctx instance>:2: in main chunk. system > tex > error on line 3 in file C:/Lukas/ConTeXt/Test/t-Req.mkiv: LuaTeX error ... 1 \startluacode 2 require "Test-U" 3 >> \stopluacode 4 5 \starttext 6 A 7 \stoptext 8 } require "Test-U".erocount { \luat_start_lua_code_indeed ...ua \zerocount {#1}} l.3 \stopluacode ... " ---- Test-U.lua print("This is Test-U.") ---- The "Test-U.lua is located at: c:\Lukas\Lua\Test-U.lua And (some) environment variables are: " C:\Lukas\ConTeXt\Test>set lua LUA_CPATH=?.dll;c:\Program Files\Lua\5.1\clibs\?.dll;C:\Lukas\Lua\?.dll LUA_DEV=C:\Program Files\Lua\5.1 LUA_PATH=?.lua;C:\Program Files\Lua\5.1\lua\?.luac;C:\Lukas\Lua\?.lua;C:\Lukas\Common\Statics\?.lua;C:\Lukas\Lua\3rdParty\?.lua;C:\Lukas\Lua\3rdParty\stdlib\modules\?.lua " - So the "Test-U.lua" should be found. So what's wrong? What's been renewed in this matter? How to "require" a Lua file (module) correctly? Personally - I've been using "require <file-name>" so far at many places and there was no problem with it. TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038