* Converting to pdf: `pandoc: openFile: resource busy (file is locked)` @ 2023-03-09 20:24 Elephant [not found] ` <6076f667-a748-4e17-969c-9264882cd273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Elephant @ 2023-03-09 20:24 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --] Hello, When I try to to convert form markdown to pdf with weasyprint or wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file is locked)`. For example, > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf [WARNING] This document format requires a nonempty <title> element. Defaulting to '-' as the title. To specify a title, use 'title' in metadata or --metadata title="...". pandoc: openFile: resource busy (file is locked) and > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint [WARNING] This document format requires a nonempty <title> element. Defaulting to '-' as the title. To specify a title, use 'title' in metadata or --metadata title="...". pandoc: openFile: resource busy (file is locked) I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? -- 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/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1770 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <6076f667-a748-4e17-969c-9264882cd273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` [not found] ` <6076f667-a748-4e17-969c-9264882cd273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-03-10 3:24 ` A A [not found] ` <CAMwawgMyFr+ULLO7gAG_ScOZRutfosxdDih7m3SyDbpx08FW7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2023-03-10 18:12 ` John MacFarlane 1 sibling, 1 reply; 6+ messages in thread From: A A @ 2023-03-10 3:24 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2013 bytes --] Is the Pdf open when you get that error? On Thu, 9 Mar 2023, 21:24 Elephant, <rohit.jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hello, > > When I try to to convert form markdown to pdf with weasyprint or > wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file > is locked)`. > > For example, > > > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf > [WARNING] This document format requires a nonempty <title> element. > Defaulting to '-' as the title. > To specify a title, use 'title' in metadata or --metadata title="...". > pandoc: openFile: resource busy (file is locked) > > and > > > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint > [WARNING] This document format requires a nonempty <title> element. > Defaulting to '-' as the title. > To specify a title, use 'title' in metadata or --metadata title="...". > pandoc: openFile: resource busy (file is locked) > > I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? > > -- > 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/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAMwawgMyFr%2BULLO7gAG_ScOZRutfosxdDih7m3SyDbpx08FW7A%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3003 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAMwawgMyFr+ULLO7gAG_ScOZRutfosxdDih7m3SyDbpx08FW7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` [not found] ` <CAMwawgMyFr+ULLO7gAG_ScOZRutfosxdDih7m3SyDbpx08FW7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2023-03-10 4:25 ` Elephant [not found] ` <ea4428ac-8ce0-4b96-8830-6d8c2356bd49n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Elephant @ 2023-03-10 4:25 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2178 bytes --] No, the pdf file does not exist. On Thursday, March 9, 2023 at 7:24:54 PM UTC-8 A A wrote: > Is the Pdf open when you get that error? > > On Thu, 9 Mar 2023, 21:24 Elephant, <rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hello, >> >> When I try to to convert form markdown to pdf with weasyprint or >> wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file >> is locked)`. >> >> For example, >> >> > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf >> [WARNING] This document format requires a nonempty <title> element. >> Defaulting to '-' as the title. >> To specify a title, use 'title' in metadata or --metadata title="...". >> pandoc: openFile: resource busy (file is locked) >> >> and >> >> > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint >> [WARNING] This document format requires a nonempty <title> element. >> Defaulting to '-' as the title. >> To specify a title, use 'title' in metadata or --metadata title="...". >> pandoc: openFile: resource busy (file is locked) >> >> I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? >> >> -- >> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 3700 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <ea4428ac-8ce0-4b96-8830-6d8c2356bd49n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` [not found] ` <ea4428ac-8ce0-4b96-8830-6d8c2356bd49n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-03-10 12:41 ` 'William Lupton' via pandoc-discuss [not found] ` <CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL+uN4SccLGhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: 'William Lupton' via pandoc-discuss @ 2023-03-10 12:41 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 3365 bytes --] I tried this and it worked for me. Same pandoc version (well, 3.1.1) but an older macos version (12.5.1). This 'resource busy' error reminds of what you get when you try to unmount a volume but have a terminal session with its current directory within the to-be-unmounted volume. So I wonder whether you could try running it from some other location, just in case there's a problem with creating a temporary file, or something like that. On Fri, 10 Mar 2023 at 04:25, Elephant <rohit.jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > No, the pdf file does not exist. > > On Thursday, March 9, 2023 at 7:24:54 PM UTC-8 A A wrote: > >> Is the Pdf open when you get that error? >> >> On Thu, 9 Mar 2023, 21:24 Elephant, <rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Hello, >>> >>> When I try to to convert form markdown to pdf with weasyprint or >>> wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file >>> is locked)`. >>> >>> For example, >>> >>> > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf >>> [WARNING] This document format requires a nonempty <title> element. >>> Defaulting to '-' as the title. >>> To specify a title, use 'title' in metadata or --metadata title="...". >>> pandoc: openFile: resource busy (file is locked) >>> >>> and >>> >>> > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint >>> [WARNING] This document format requires a nonempty <title> element. >>> Defaulting to '-' as the title. >>> To specify a title, use 'title' in metadata or --metadata title="...". >>> pandoc: openFile: resource busy (file is locked) >>> >>> I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? >>> >>> -- >>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com >>> <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL%2BuN4SccLGhA%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 5053 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL+uN4SccLGhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` [not found] ` <CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL+uN4SccLGhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2023-03-10 19:33 ` Elephant 0 siblings, 0 replies; 6+ messages in thread From: Elephant @ 2023-03-10 19:33 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 3874 bytes --] It seems like this is the issue. I was running pandoc from a mounted exfat volume. I'm not getting the issue when I run pandoc outside this volume. Apparently this may be a haskell issue when using an exfat volume on macos: https://github.com/commercialhaskell/stack/issues/3893. Thanks for the help and please let me know if there is a way to avoid this On Friday, March 10, 2023 at 4:41:42 AM UTC-8 William Lupton wrote: > I tried this and it worked for me. Same pandoc version (well, 3.1.1) but > an older macos version (12.5.1). > > This 'resource busy' error reminds of what you get when you try to unmount > a volume but have a terminal session with its current directory within the > to-be-unmounted volume. > > So I wonder whether you could try running it from some other location, > just in case there's a problem with creating a temporary file, or something > like that. > > On Fri, 10 Mar 2023 at 04:25, Elephant <rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> No, the pdf file does not exist. >> >> On Thursday, March 9, 2023 at 7:24:54 PM UTC-8 A A wrote: >> >>> Is the Pdf open when you get that error? >>> >>> On Thu, 9 Mar 2023, 21:24 Elephant, <rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>>> Hello, >>>> >>>> When I try to to convert form markdown to pdf with weasyprint or >>>> wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file >>>> is locked)`. >>>> >>>> For example, >>>> >>>> > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf >>>> [WARNING] This document format requires a nonempty <title> element. >>>> Defaulting to '-' as the title. >>>> To specify a title, use 'title' in metadata or --metadata title="...". >>>> pandoc: openFile: resource busy (file is locked) >>>> >>>> and >>>> >>>> > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint >>>> [WARNING] This document format requires a nonempty <title> element. >>>> Defaulting to '-' as the title. >>>> To specify a title, use 'title' in metadata or --metadata title="...". >>>> pandoc: openFile: resource busy (file is locked) >>>> >>>> I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? >>>> >>>> -- >>>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com >>>> <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/d3965365-3daa-4694-a029-21ba9b5e21d7n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 6374 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` [not found] ` <6076f667-a748-4e17-969c-9264882cd273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-03-10 3:24 ` A A @ 2023-03-10 18:12 ` John MacFarlane 1 sibling, 0 replies; 6+ messages in thread From: John MacFarlane @ 2023-03-10 18:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Works ok for me on Monterey. I don't have a Ventura machine to test on. Can anyone else who is running Ventura try to reproduce this? Also, do you have the same problem producing a pdf with --pdf-engine=pdflatex ? > On Mar 9, 2023, at 12:24 PM, Elephant <rohit.jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello, > > When I try to to convert form markdown to pdf with weasyprint or wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (file is locked)`. > > For example, > > > echo "example" | pandoc -o example.pdf --pdf-engine=wkhtmltopdf > [WARNING] This document format requires a nonempty <title> element. > Defaulting to '-' as the title. > To specify a title, use 'title' in metadata or --metadata title="...". > pandoc: openFile: resource busy (file is locked) > > and > > > echo "example" | pandoc -o example.pdf --pdf-engine=weasyprint > [WARNING] This document format requires a nonempty <title> element. > Defaulting to '-' as the title. > To specify a title, use 'title' in metadata or --metadata title="...". > pandoc: openFile: resource busy (file is locked) > > I'm on macos Ventura 13.2.1 and pandoc 3.1. Any idea how to fix this? > > -- > 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/6076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-03-10 19:33 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-03-09 20:24 Converting to pdf: `pandoc: openFile: resource busy (file is locked)` Elephant [not found] ` <6076f667-a748-4e17-969c-9264882cd273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-03-10 3:24 ` A A [not found] ` <CAMwawgMyFr+ULLO7gAG_ScOZRutfosxdDih7m3SyDbpx08FW7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2023-03-10 4:25 ` Elephant [not found] ` <ea4428ac-8ce0-4b96-8830-6d8c2356bd49n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-03-10 12:41 ` 'William Lupton' via pandoc-discuss [not found] ` <CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL+uN4SccLGhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2023-03-10 19:33 ` Elephant 2023-03-10 18:12 ` John MacFarlane
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).