From: Jacco Steur <jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Using lua filter include-files on pandoc 2.5 does not work
Date: Sun, 16 Jan 2022 23:48:09 -0800 (PST) [thread overview]
Message-ID: <091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2778 bytes --]
My goal is debugging LUA filters with the zerobrane ide.
I got stuck on this:
On Ubuntu I installed pandoc 2.5 using sudo apt install pandoc.
After that I cloned the lua filter repository
(https://github.com/pandoc/lua-filters)
When I run the pandoc commmand like so:
>pandoc --lua-filter=include-files.lua sample.md --output result.html
(
This lua filter requires this:
local List = require 'pandoc.List'
local path = require 'pandoc.path'
local system = require 'pandoc.system'
)
I get this error:
include-files.lua:10: module 'pandoc.path' not found:no file
'pandoc.path.lua' in pandoc's datadir
no field package.preload['pandoc.path']
no file '/usr/local/share/lua/5.3/pandoc/path.lua'
no file '/usr/local/share/lua/5.3/pandoc/path/init.lua'
no file '/usr/local/lib/lua/5.3/pandoc/path.lua'
no file '/usr/local/lib/lua/5.3/pandoc/path/init.lua'
no file './pandoc/path.lua'
no file './pandoc/path/init.lua'
no file '/usr/local/lib/lua/5.3/pandoc/path.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './pandoc/path.so'
no file '/usr/local/lib/lua/5.3/pandoc.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './pandoc.so'
stack traceback:
[C]: in function 'require'
include-files.lua:10: in main chunk
After some research I found that there is a directory
/usr/share/pandoc/data.
The contents of this directory contains the lua files:
init.lua pandoc.List.lua pandoc.lua sample.lua
There is no pandoc.path.lua.....
So pandoc is not checking /usr/share/pandoc/data and even if I set LUA_PATH
like so:
>export LUA_PATH=/usr/share/?/?.lua
It gives me this error:
Error running filter include-files.lua:
include-files.lua:10: module 'pandoc.path' not found:no file
'pandoc.path.lua' in pandoc's datadir
no field package.preload['pandoc.path']
no file '/usr/share/pandoc/path/pandoc/path.lua'
no file '/usr/local/lib/lua/5.3/pandoc/path.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './pandoc/path.so'
no file '/usr/local/lib/lua/5.3/pandoc.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './pandoc.so'
stack traceback:
[C]: in function 'require'
include-files.lua:10: in main chunk
What am I doing wrong here......
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 4507 bytes --]
next reply other threads:[~2022-01-17 7:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AQHYlkmLQSWBnyserE2AdkoYSfVyWa2O6UgA>
2022-01-17 7:48 ` Jacco Steur [this message]
[not found] ` <091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-17 12:05 ` Albert Krewinkel
[not found] ` <8735lmefdv.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-01-17 16:14 ` Jacco Steur
[not found] ` <9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-17 17:10 ` Albert Krewinkel
[not found] ` <87y23ecmd7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-01-17 20:59 ` Jacco Steur
2022-01-17 17:55 ` T. Kurt Bond
[not found] ` <CAN1EhV9rpeD57BXHOhN8=3DBEWfMYmD4wsdkGg+Q5L4Bnr7-qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-17 20:57 ` Jacco Steur
[not found] ` <CADjKMHroW1=m_XaNT+B7Mn8PU8eUc2nEp4AVA6B1fVwMr4W2Hw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-17 22:13 ` T. Kurt Bond
[not found] ` <CAN1EhV-8P3RK06EdJ9U3hL-AZgxE6i93BMVDc3ySn4cuYz_esg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-12 23:45 ` Michael Hayes
[not found] ` <9e1098df-5871-4650-8171-c5b1889171d7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-25 9:43 ` AW: " denis.maier-NSENcxR/0n0
[not found] ` <bd9382fbf7ab4205ad04f5dfd398ed5e-NSENcxR/0n0@public.gmane.org>
2022-07-27 9:18 ` Michael Hayes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn@googlegroups.com \
--to=jacco.steur-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).