Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Compiled Lua packages in Pandoc filters. #150

Open
1 task done
iandol opened this issue Nov 18, 2024 · 1 comment
Open
1 task done

Cannot use Compiled Lua packages in Pandoc filters. #150

iandol opened this issue Nov 18, 2024 · 1 comment
Labels

Comments

@iandol
Copy link

iandol commented Nov 18, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

If you try to use Pandoc with a Lua filter that uses a compiled Lua library, you get a variety of errors. For example:

dlopen(debugger/emmy/mac/arm64/emmy_core.dylib, 0x0006): tried: 'debugger/emmy/mac/arm64/emmy_core.dylib' (code signature in <B9AD545B-2B65-385C-94FB-5FDB5A8979EF> debugger/emmy/mac/arm64/emmy_core.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)

Using homebrew's compiled pandoc and everything works fine...

Installed packages

➪ pixi global ls
Global environments as specified in '/Users/ian/.pixi/manifests/pixi-global.toml'
├── asciinema: 2.4.0 
│   └─ exposes: asciinema
├── eza: 0.20.8 
│   └─ exposes: eza
├── fzf: 0.56.3 
│   └─ exposes: fzf
├── hyperfine: 1.19.0 
│   └─ exposes: hyperfine
├── img2pdf: 0.4.4 
│   └─ exposes: img2pdf, img2pdf-gui
├── jq: 1.7.1 
│   └─ exposes: jq
├── librsvg: 2.58.4 
│   └─ exposes: .librsvg-pre-unlink, rsvg-convert, .librsvg-post-link
├── mosh: 1.4.0 
│   └─ exposes: mosh-server, mosh-client, mosh
├── nvim: 0.10.2 
│   └─ exposes: nvim
├── pandoc: 3.5 
│   └─ exposes: pandoc-lua, pandoc, pandoc-server
├── python 
│   ├─ dependencies: python 3.13.0, setuptools 75.5.0, pip 24.3.1, pipx 1.7.1
│   └─ exposes: idle3.13, pydoc, pydoc3.13, python3.1, idle3, pydoc3, pip, pip3, python3, python3.13, python3.13-config, pipx, python3-config, python
├── ripgrep: 14.1.1 
│   └─ exposes: rg
├── ruby 
│   ├─ dependencies: ruby 3.3.6, compilers 1.8.0
│   └─ exposes: racc, bundle, rdoc, rbs, bundler, gem, ruby, ri, rdbg, syntax_suggest, erb, typeprof, irb, rake
├── sd: 1.0.0 
│   └─ exposes: sd
├── starship: 1.21.1 
│   └─ exposes: starship
├── tmux: 3.5 
│   └─ exposes: tmux
├── typst: 0.12.0 
│   └─ exposes: typst
└── yt-dlp: 2024.11.4 
    └─ exposes: yt-dlp

Environment info

➪ pixi info
System
------------
      Pixi version: 0.36.0
          Platform: osx-arm64
  Virtual packages: __unix=0=0
                  : __osx=15.2=0
                  : __archspec=1=m2
         Cache dir: /Users/ian/Library/Caches/rattler/cache
      Auth storage: /Users/ian/.rattler/credentials.json
  Config locations: No config files found

Global
------------
           Bin dir: /Users/ian/.pixi/bin
   Environment dir: /Users/ian/.pixi/envs
      Manifest dir: /Users/ian/.pixi/manifests/pixi-global.toml
@iandol iandol added the bug label Nov 18, 2024
@rolweber
Copy link

rolweber commented Feb 4, 2025

That's a known limitation of the static binaries.

https://pandoc.org/installing.html

Note: the statically linked Pandoc binaries provided by us (or those available on Conda Forge) have a limitation. They are unable to utilise Lua filters that rely on Lua modules written in C. If you require the functionality offered by these filters, please consider an alternative method of installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants