From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32315 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Converting to pdf: `pandoc: openFile: resource busy (file is locked)` Date: Fri, 10 Mar 2023 12:41:25 +0000 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/alternative; boundary="000000000000fe539e05f68b14b6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5731"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBAWLVSQAMGQEKWGSFLY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 10 13:41:42 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f185.google.com ([209.85.208.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pac46-0001Gp-Sa for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Mar 2023 13:41:42 +0100 Original-Received: by mail-lj1-f185.google.com with SMTP id be36-20020a05651c172400b00295aa1d0db6sf1624046ljb.21 for ; Fri, 10 Mar 2023 04:41:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678452102; cv=pass; d=google.com; s=arc-20160816; b=UaN7SXQWs8DkAKsICmUiwRubtpydK3DP0Gt+ny6oJBKmbGb92stpLBwLgnQitZPahh yNPT4dN0aiLB3rOVCslvGDZIqdoTYGsrh7oDWJ8nHhYwv7JB/Rrik6kiZPwlGmGVahbJ YmouI7Bw1i77/LxhBvsH3arfsg3HWziG2iQy7BP5EuNkOO/UojP+FxPLE0E7MVz380iA KAcS7ErZvYw+9GcvN1YjN8mH79O/TsyAAR3auJETBOPtnTSzDBbih0aoDkIROyFGA4+6 ATeuzbqrw7oHASUheDzzEZYRHieYUb4EQ1RHfSftBBAETiJWdVpuGEti8ppTn/Ylf93r FmOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=KpUQlwtVuAqx5woVl/EkiL229PhzvR1qiaSn7fqqseo=; b=fPP/q9hTOsZDiKhUF8D8cEGURFX63B+jBVSj0WrrVJAV+B0XZImRyFcht8mIdnqAKO 8gjZGF/gMbEaDhfuTyUEHq4Gg6nzwjJITVfJxrSor4ql13fJypGvel1A/ceBa8Y7ys8B 0FUzCr6bWtOHMSQy5yB3wsPiyx+qnUhmrFpdGUpA9aB75o8i1gkvqtULhJ/pp092D89/ RxDzblEKwoL6A3DN6SvtMNtz9b4qgzk3w7/QIRbcsdLYafYFHOwvYvjtI0mWo9eb2G8K fAjtGTBen4mLBmLSzodhyvde0QAPOll4eQIWY0PmIJZuVW//FKKCjq2tVxS5w8WzRKEI B9EA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="FK/pxBLa"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678452102; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=KpUQlwtVuAqx5woVl/EkiL229PhzvR1qiaSn7fqqseo=; b=Rrp8G7ViCmYMTU1bnZJkicwP/oaE3PYxSiF7Tl6PpN/y2r31/P6i72xKU0Xz0n1Gdk ZQWfFFeJpR6VPLeoAagTcrTWBfERc4/N3eoD9SVcuCpp2e/pE8ET9RHURXGO0D9qfGCE Bz3Czuc0Fj9ENU6whfBzp1BCKc/reaV0ErBaMI5taUxUY4tj++tLefK8u2eOcF4Ix8Af iKfN65b1OsSLHoADB+hiVTP4PORDiLgrMuzM9h840HoM4LJdcpWn9b24bpqdTDGq2YzY +dbO27oH2PFI6HcnCZUFCHlecic6wzpHpjgWy3/e5UdFz9IBcSSss7dY95D15QudnV6h xoMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678452102; 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KpUQlwtVuAqx5woVl/EkiL229PhzvR1qiaSn7fqqseo=; b=5dVJDI3KQIF37ZCMxNFF1f5KbGurPx/0tZO19PkKgE+nuwWugzwPkSF5iAXukcdHHT Sgghp8VDDBsI0hnIAJZro5VMVo1Y+9dmccI2t265wMrTgEQWZCSCXocXBDbXXzZrKuXG 6L2D6honcaOKvj/YkdUP4YZ4WPzO2nDxS5taZ+VPlFJrw76Wkan0ATVpUC7e7q42De7H PLxKTj6H/eUEWwcLyug7eQHOvgGMaTyzHjLlIHtMzg4iSYhdbWUhEwcYHhZhBfJd73/i 6uUZ6E4uJTTzrNda5w+1dmwQtKYreW6yQIkxKmUJTKeijlXyo X-Gm-Message-State: AO0yUKU1P/txVG3ggzTIoSQYJD81T6FYg4UnqUfDhgtW7g1iVG1sqnJg 4OT6CTNohHUl8Zgx+fo3vNU= X-Google-Smtp-Source: AK7set8PTSbWQJ2+qm4DXgiZI3c3mQLdXqyazlJVGg1inHEsIlKWVj6JBcRK53ezpzGETQuSiJvGgg== X-Received: by 2002:a05:651c:2328:b0:295:897c:6f7d with SMTP id bi40-20020a05651c232800b00295897c6f7dmr8082838ljb.1.1678452102215; Fri, 10 Mar 2023 04:41:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:a9a9:0:b0:293:186a:1056 with SMTP id x41-20020a2ea9a9000000b00293186a1056ls859469ljq.10.-pod-prod-gmail; Fri, 10 Mar 2023 04:41:37 -0800 (PST) X-Received: by 2002:a2e:bc0b:0:b0:293:4b61:265a with SMTP id b11-20020a2ebc0b000000b002934b61265amr10575125ljf.49.1678452097652; Fri, 10 Mar 2023 04:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678452097; cv=none; d=google.com; s=arc-20160816; b=H8X/TsyfByM2DUVWJ4RQguTK6UMCLeqFjNRTxMwPkbvFaQSunV4EH8w459KIjQ5Sv7 Ejhz2Hx1wxLnyzugWPnDf1Oc0opo314hZ7TkU52KqSb4qC8uf67gGDaTDzH0Xv+ZOBsn 1+7jRRNlwJDNXGF1AI5AiEQ0QjfNzUIcZIlVnHRpHywlmSWO2cGJrtT7LD6xVTSTRdYS WHcf0+urYL/PBbjG65I4+96SETRy6rCvC2+4HPIUD3CFmFJPmayNqoH2y28TwiqkmJQr T1uEHZUsO01uafnT+aWlygx2cjVPOT5g67xXoxL1nrcQBiIWaoz14Sh03ID42VqNVey9 RRVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eL32MoIHan9dt3rSyoEyRSQx1DOWAojV/suV//cwgxY=; b=suFX2pFT/6NF1Jsai4QvKXyL4uLY8gJO6zffBW2JU8FjVycHIdl8xN29Lv0LEZcr6D Cb4HcRXKtiBxWGlQQWAYskrHVSJ26oTmbYUbaype4kfAeHKe82xjkNvbxT4WMHaDqrkb yuP5vJCdQHyLTHjEcn/02YOKyWTcqBqe0A6+OJPFHwf0VngpyH/gmIQBXc+T9mxgZaLv syc/bKVAFuTDPEUdFJIcH6YUZ6XJONTSjboeHLWqj/0vBAQBDBhUU1pFsYiO7xadXxn9 AC65bZ6kpBRC4OUg/MIkleHQH1tGVdLSNqx7c7joNkyaYdvKXOVzPuDgxHIYEMxNHapc dQtg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="FK/pxBLa"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com. [2a00:1450:4864:20::532]) by gmr-mx.google.com with ESMTPS id bp39-20020a05651215a700b004dc4c4ff7dcsi111140lfb.2.2023.03.10.04.41.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 04:41:37 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) client-ip=2a00:1450:4864:20::532; Original-Received: by mail-ed1-x532.google.com with SMTP id a25so20056574edb.0 for ; Fri, 10 Mar 2023 04:41:37 -0800 (PST) X-Received: by 2002:a17:906:bc87:b0:8af:2ad8:3453 with SMTP id lv7-20020a170906bc8700b008af2ad83453mr1372307ejb.6.1678452096646; Fri, 10 Mar 2023 04:41:36 -0800 (PST) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="FK/pxBLa"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32315 Archived-At: --000000000000fe539e05f68b14b6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 >>> wkhtmltopdf, I get the error message `pandoc: openFile: resource busy (= file >>> 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? >>> >>> -- >>> 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-969= c-9264882cd273n%40googlegroups.com >>> <https://groups.google.com/d/msgid/pandoc-discuss/6076f667-a748-4e17-96= 9c-9264882cd273n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter> >>> . >>> >> -- > 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=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/CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL%2BuN4SccLGhA%40mail= .gmail.com. --000000000000fe539e05f68b14b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I=C2=A0tried this and it worked for me. Same pandoc versio= n (well, 3.1.1) but an older macos version (12.5.1).<div><br></div><div>Thi= s 'resource busy' error reminds of what you get when you try to unm= ount a volume but have a terminal session with its current directory within= the to-be-unmounted volume.</div><div><br></div><div>So I wonder whether y= ou could try running it from some other location, just in case there's = a problem with creating a temporary file, or something like that.</div></di= v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On F= ri, 10 Mar 2023 at 04:25, Elephant <<a href=3D"mailto:rohit.jagan@gmail.= com">rohit.jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:<br></div><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex">No, the pdf file does not exist.<br><br><div clas= s=3D"gmail_quote"><div dir=3D"auto" class=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 rg= b(204,204,204);padding-left:1ex"><div dir=3D"auto">Is the Pdf open when you= get that error?</div><br><div class=3D"gmail_quote"></div><div class=3D"gm= ail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 9 Mar 2023, 21:24 = Elephant, <<a rel=3D"nofollow">rohit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:<br></di= v></div><div class=3D"gmail_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"><div>Hello,</div><div><br></div><div>When I try to to convert fo= rm markdown to pdf with weasyprint or wkhtmltopdf, I get the error message = `pandoc: openFile: resource busy (file is locked)`.</div><div><br></div><di= v>For example,</div><div><br></div><div>> echo "example" | pan= doc -o example.pdf --pdf-engine=3Dwkhtmltopdf<br>[WARNING] This document fo= rmat requires a nonempty <title> element.<br>=C2=A0 Defaulting to = 9;-' as the title.<br>=C2=A0 To specify a title, use 'title' in= metadata or --metadata title=3D"...".<br>pandoc: openFile: resou= rce busy (file is locked)<br></div><div><br></div><div>and</div><div><br></= div><div>> echo "example" | pandoc -o example.pdf --pdf-engine= =3Dweasyprint<br>[WARNING] This document format requires a nonempty <tit= le> element.<br>=C2=A0 Defaulting to '-' as the title.<br>=C2=A0= To specify a title, use 'title' in metadata or --metadata title=3D= "...".<br>pandoc: openFile: resource busy (file is locked)</div><= div><br></div><div>I'm on macos Ventura 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">https://groups.google.com/d/msgid/pandoc-discuss/607= 6f667-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=3D"mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" targ= et=3D"_blank">pandoc-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/ea4428ac-8ce0-4b96-8830-6d8c2356bd49n%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank">https= ://groups.google.com/d/msgid/pandoc-discuss/ea4428ac-8ce0-4b96-8830-6d8c235= 6bd49n%40googlegroups.com</a>.<br> </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/CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37yL%2BuN4Scc= LGhA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxgAtJ-pZ0c9BsHsusA1uCzPuebD3tg37y= L%2BuN4SccLGhA%40mail.gmail.com</a>.<br /> --000000000000fe539e05f68b14b6--