From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32318 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Elephant Newsgroups: gmane.text.pandoc Subject: Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` Date: Fri, 10 Mar 2023 11:33:27 -0800 (PST) Message-ID: References: <6076f667-a748-4e17-969c-9264882cd273n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2630_1918695068.1678476807806" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15512"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCX6PZGI6ABRBCMMV2QAMGQEPTQ7RQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 10 20:33:32 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f186.google.com ([209.85.222.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1paiUe-0003rM-9s for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Mar 2023 20:33:32 +0100 Original-Received: by mail-qk1-f186.google.com with SMTP id x5-20020a05620a01e500b007428997e800sf3658502qkn.10 for ; Fri, 10 Mar 2023 11:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678476811; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=wcbo2wtn7ddf6sGKpOgfulYa5l7FN+1Amg4f1jqJNg8=; b=ls4fcGG5/kvq/qmfyzTi+cKppUk3DH277Pj8CsAYWRusFwHEYhaRcd1f7c21DKUKyB XOAZud/k2kgoEwnCqGFlw4MveSYsJ7oR7MWnEQMiN3b/nqzGrbOZSLdA3b+zfroNPWfx q7WpPcMq3avCuYiocjwbjIooD1AGi2zjqhNqhA2HTZTegdPwqz7ZosJsRbsZYMjatiVs L6E/yXipstyhY3rE/qqovVpC749os/IzNDLZVOx3PT9Z0az8mq/RRs/yn+sDsiQiQVf3 HEMD4KD3uGyrVK/bzPmUMrPZ1go4OkWvMXr26HDUGoJRO1Apf0nWtI9j55mfWz8MuSLk 55lg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678476811; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=wcbo2wtn7ddf6sGKpOgfulYa5l7FN+1Amg4f1jqJNg8=; b=Fiq2NFpdCvL0iGbS+v7yUr7IEIRhRxTtWhYWxoeIyjPoB8a3bndoE4lf8AZY4ct24L wjnFznQXxnaj8fgM1gwW2FNOpRnEdazZ4RDSL6saxwL/asQ8bbPDpiduB3ZzGoZ842RP 3aN+2jFLpDCJDLmTlbZoRimGkCKPR9Ot8duLeTzm++8crdlGrDtJrhj+j/hvJ01YWln5 bHbu/58XzimUGU/Au3AlHT+C5NQGHNfxe2x+oU2g+MQZjrV+m79kx8RJb907pzVhj0Wv JhPSiR3IGNV8rjFjteeD9XS+oBfnwYmnhA86jA0yEL1rZhl0ChQYtoC6sL+FJgRO1gE3 0DNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678476811; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=wcbo2wtn7ddf6sGKpOgfulYa5l7FN+1Amg4f1jqJNg8=; b=3i6jem/t4lgK4J2hgerfAO8uBjjyKAo4GwP5/7VmR72eXp+YgvtKcc3DT+h0ZdE+F+ hIf3l7AguAouCmpiqswSLoW7KLpfzmZdA+DAzm56HMVtSWuO9iaZU/x5JL8kq/jT8R7x Pkqwiy1sl0Yt/JElheW3yTUVkrmA2hK3QhSYynOyaj5vqid0on0pzOaZUn/tsN+4gVXg DXmSzyNX2aN9O3sHgC3s3dX3FqyLH2TcmrHD4tzfhn/mq++UhsWpYnDygeGKEhkLl7Pv Dh3+maRyMp0sKMciIzZeCPzKv5r4GbRPyC6DhnOivYWn71fYoIJiYZWc/boKzeiZI33M Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWnPdWP+/zJel7i9O0Qs96ABjlYArvUJSpwUrRov1RVAEwVcyxS BSn7fub+mP527HI6T+PFZwA= X-Google-Smtp-Source: AK7set9JmZ9ccvrog3GKGG9KFurSrESUkBodcpW6dGwaFpAtmeOij5FZYbSV1Vg5fnzO4Cg3hveMRg== X-Received: by 2002:ac8:4041:0:b0:3bc:fa1a:442d with SMTP id j1-20020ac84041000000b003bcfa1a442dmr1035201qtl.6.1678476811322; Fri, 10 Mar 2023 11:33:31 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:2042:b0:71e:27ec:e7ce with SMTP id d2-20020a05620a204200b0071e27ece7cels1583606qka.8.-pod-prod-gmail; Fri, 10 Mar 2023 11:33:28 -0800 (PST) X-Received: by 2002:a37:6413:0:b0:741:a965:afe5 with SMTP id y19-20020a376413000000b00741a965afe5mr1000232qkb.8.1678476808466; Fri, 10 Mar 2023 11:33:28 -0800 (PST) In-Reply-To: X-Original-Sender: Rohit.Jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32318 Archived-At: ------=_Part_2630_1918695068.1678476807806 Content-Type: multipart/alternative; boundary="----=_Part_2631_1603922737.1678476807806" ------=_Part_2631_1603922737.1678476807806 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It seems like this is the issue. I was running pandoc from a mounted exfat= =20 volume. I'm not getting the issue when I run pandoc outside this volume.=20 Apparently this may be a haskell issue when using an exfat volume on macos:= =20 https://github.com/commercialhaskell/stack/issues/3893. Thanks for the help= =20 and please let me know if there is a way to avoid this On Friday, March 10, 2023 at 4:41:42=E2=80=AFAM UTC-8 William Lupton wrote: > I tried this and it worked for me. Same pandoc version (well, 3.1.1) but= =20 > an older macos version (12.5.1). > > This 'resource busy' error reminds of what you get when you try to unmoun= t=20 > a volume but have a terminal session with its current directory within th= e=20 > to-be-unmounted volume. > > So I wonder whether you could try running it from some other location,=20 > just in case there's a problem with creating a temporary file, or somethi= ng=20 > like that. > > On Fri, 10 Mar 2023 at 04:25, Elephant wrote: > >> No, the pdf file does not exist. >> >> On Thursday, March 9, 2023 at 7:24:54=E2=80=AFPM UTC-8 A A wrote: >> >>> Is the Pdf open when you get that error? >>> >>> On Thu, 9 Mar 2023, 21:24 Elephant, wrote: >>> >>>> Hello, >>>> >>>> When I try to to convert form markdown to pdf with weasyprint or=20 >>>> wkhtmltopdf, I get the error message `pandoc: openFile: resource busy = (file=20 >>>> is locked)`. >>>> >>>> For example, >>>> >>>> > echo "example" | pandoc -o example.pdf --pdf-engine=3Dwkhtmltopdf >>>> [WARNING] This document format requires a nonempty element. >>>> Defaulting to '-' as the title. >>>> To specify a title, use 'title' in metadata or --metadata title=3D".= ..". >>>> pandoc: openFile: resource busy (file is locked) >>>> >>>> and >>>> >>>> > echo "example" | pandoc -o example.pdf --pdf-engine=3Dweasyprint >>>> [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=3D".= ..". >>>> 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? >>>> >>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-96= 9c-9264882cd273n%40googlegroups.com=20 >>>> <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-9= 69c-9264882cd273n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter= > >>>> . >>>> >>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830= -6d8c2356bd49n%40googlegroups.com=20 >> <https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-883= 0-6d8c2356bd49n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter> >> . >> > --=20 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 e= mail 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. ------=_Part_2631_1603922737.1678476807806 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. Ap= parently this may be a haskell issue when using an exfat volume on macos: h= ttps://github.com/commercialhaskell/stack/issues/3893. Thanks for the help = and please let me know if there is a way to avoid this<br /><br /><div clas= s=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Friday, March 1= 0, 2023 at 4:41:42=E2=80=AFAM UTC-8 William Lupton wrote:<br/></div><blockq= uote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px s= olid rgb(204, 204, 204); padding-left: 1ex;"><div dir=3D"ltr">I=C2=A0tried = this and it worked for me. Same pandoc version (well, 3.1.1) but an older m= acos version (12.5.1).<div><br></div><div>This 'resource busy' erro= r reminds of what you get when you try to unmount a volume but have a termi= nal session with its current directory within the to-be-unmounted volume.</= div><div><br></div><div>So I wonder whether you could try running it from s= ome other location, just in case there's a problem with creating a temp= orary file, or something like that.</div></div><br><div class=3D"gmail_quot= e"></div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">O= n Fri, 10 Mar 2023 at 04:25, Elephant <<a href data-email-masked rel=3D"= nofollow">rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:<br></div></div><div class=3D"gm= ail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.= 8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">No, the pdf fi= le does not exist.<br><br><div class=3D"gmail_quote"><div dir=3D"auto" clas= s=3D"gmail_attr">On Thursday, March 9, 2023 at 7:24:54=E2=80=AFPM UTC-8 A A= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir= =3D"auto">Is the Pdf open when you get that error?</div><br><div class=3D"g= mail_quote"></div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmai= l_attr">On Thu, 9 Mar 2023, 21:24 Elephant, <<a rel=3D"nofollow">rohit..= .@gmail.com</a>> wrote:<br></div></div><div class=3D"gmail_quote"><block= quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1= px solid rgb(204,204,204);padding-left:1ex"><div>Hello,</div><div><br></div= ><div>When I try to to convert form markdown to pdf with weasyprint or wkht= mltopdf, I get the error message `pandoc: openFile: resource busy (file is = locked)`.</div><div><br></div><div>For example,</div><div><br></div><div>&g= t; echo "example" | pandoc -o example.pdf --pdf-engine=3Dwkhtmlto= pdf<br>[WARNING] This document format requires a nonempty <title> ele= ment.<br>=C2=A0 Defaulting to '-' as the title.<br>=C2=A0 To specif= y a title, use 'title' in metadata or --metadata title=3D"...&= quot;.<br>pandoc: openFile: resource busy (file is locked)<br></div><div><b= r></div><div>and</div><div><br></div><div>> echo "example" | p= andoc -o example.pdf --pdf-engine=3Dweasyprint<br>[WARNING] This document f= ormat requires a nonempty <title> element.<br>=C2=A0 Defaulting to &#= 39;-' as the title.<br>=C2=A0 To specify a title, use 'title' i= n metadata or --metadata title=3D"...".<br>pandoc: openFile: reso= urce busy (file is locked)</div><div><br></div><div>I'm on macos Ventur= a 13.2.1 and pandoc 3.1. Any idea how to fix this?<br></div> <p></p></blockquote></div><div class=3D"gmail_quote"><blockquote class=3D"g= mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex"> -- <br> You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.<br> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a rel=3D"noreferrer nofollow">pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org</a= >.<br> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/pandoc-discuss/6076f667-a748-4e17-969c-9264882cd273n%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter" rel=3D"noreferrer nofol= low" target=3D"_blank" data-saferedirecturl=3D"https://www.google.com/url?h= l=3Den&q=3Dhttps://groups.google.com/d/msgid/pandoc-discuss/6076f667-a7= 48-4e17-969c-9264882cd273n%2540googlegroups.com?utm_medium%3Demail%26utm_so= urce%3Dfooter&source=3Dgmail&ust=3D1678561388790000&usg=3DAOvVa= w2ocyTKrbZob8G7kNMMlsET">https://groups.google.com/d/msgid/pandoc-discuss/6= 076f667-a748-4e17-969c-9264882cd273n%40googlegroups.com</a>.<br> </blockquote></div> </blockquote></div> <p></p> -- <br> You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.<br> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href data-email-masked rel=3D"nofollow">pandoc-discus...@googleg= roups.com</a>.<br></blockquote></div><div class=3D"gmail_quote"><blockquote= class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex"> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank" rel= =3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&am= p;q=3Dhttps://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8= 830-6d8c2356bd49n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfo= oter&source=3Dgmail&ust=3D1678561388790000&usg=3DAOvVaw1CR5S5by= 21Ie-4hZffAENs">https://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8= ce0-4b96-8830-6d8c2356bd49n%40googlegroups.com</a>.<br> </blockquote></div> </blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org">pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/pandoc-discuss/d3965365-3daa-4694-a029-21ba9b5e21d7n%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d= /msgid/pandoc-discuss/d3965365-3daa-4694-a029-21ba9b5e21d7n%40googlegroups.= com</a>.<br /> ------=_Part_2631_1603922737.1678476807806-- ------=_Part_2630_1918695068.1678476807806--