Description
Explain the problem.
This is a weird issue. I've been trying to switch to more isolated workflow, using local environments of tools, and in this case used a conda manager pixi to install lua
luarocks
and pandoc
local to a working folder. I used luarocks
to install a lua debugging package mobdebug
. Given a minimal test.lua
script:
md = require("mobdebug")
print("Hello World")
Run with lua it is ok:
ζ lua test.lua
Hello World
but run with pandoc-lua, a mapping process and mapped file (non-platform) have different Team IDs
error occurs:
ζ ➪ pandoc-lua test.lua
Error running Lua:
error loading module 'socket.core' from file '/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so':
dlopen(/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so, 0x0006): tried: '/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so' (code signature in <605C052E-EA8E-36D3-9CC1-598BA8D1AC1E> '/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so' (no such file), '/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so' (code signature in <605C052E-EA8E-36D3-9CC1-598BA8D1AC1E> '/Users/ian/Code/dotpandoc/.pixi/envs/default/lib/lua/5.4/socket/core.so' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)
stack traceback:
[C]: in function 'require'
...de/dotpandoc/.pixi/envs/default/share/lua/5.4/socket.lua:12: in main chunk
[C]: in function 'require'
.../dotpandoc/.pixi/envs/default/share/lua/5.4/mobdebug.lua:99: in main chunk
[C]: in function 'require'
test.lua:2: in main chunk
This error only occurs for compiled libraries, pure lua code require
s are ok. Something in the way pandoc is compiled increases the security level of the bundled lua
. I thought I'd report this edge case for visibility than imagining it could be fixed.
Pandoc version?
V3.3 on macOS 14.6