From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8FGnByIF2WA2RAAAgWs5BA (envelope-from ) for ; Mon, 28 Jun 2021 01:09:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oL1OAyIF2WDHUAAAbx9fmQ (envelope-from ) for ; Sun, 27 Jun 2021 23:09:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0ADAD29D23 for ; Mon, 28 Jun 2021 01:09:19 +0200 (CEST) Received: from localhost ([::1]:48732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxdtt-0004Bn-J3 for larch@yhetil.org; Sun, 27 Jun 2021 19:09:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxdtN-0004BZ-4S for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 19:08:45 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:39675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxdtL-0003RP-01 for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 19:08:44 -0400 Received: by mail-pg1-x532.google.com with SMTP id a2so13728758pgi.6 for ; Sun, 27 Jun 2021 16:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=9kdTDiPcPMoPM38PW24YhTDlRBw2C/6aht38GK8YIig=; b=eZZ6RroV72Rvi3UN7q8jCrfiGdIQT9Nz1wFrdWj6tRMWMXy5S9TCwjatRTFvXnSqh+ qsmDiLq73F84qTd3tpoJf3Y4Kn+m5h24xsp15pL6bsdtaeKfOKF9nwtbOMR1GyMDe/DD xyEodZhmtcOc2EVmup6WW/hIB5gGzn1Ih9dbT2VO4UKssRXcV5ITuoGDqeJvtt64SYQj KUrs25fYxKsSuAGG/6TZCK/gVqXZtsQzrcU/SOmPvJgqgY3b1ci8UEEsD0PoAEPpdaAK 4BkoESH5EFQbQqFzVkWrpM/HyvN48Fk6yUrmI4UR/cjj8BiWa1a01JrOpphBmtIs8DTO 8zRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=9kdTDiPcPMoPM38PW24YhTDlRBw2C/6aht38GK8YIig=; b=Uwx8Hs8QoAQHnTKjrP32Ek435GoQQMNxqcmbyOgrQvlO+nuKrfzcZJAFF8wyisjov4 qMGqz1aIR1TsmSMhzUfYJRUJnslWb2PhlmPDMOrUexni4JJC/Kgm3l0CFzUj3rA+xwF7 PpIWQsq7ljmDtngFaagqAOTV+VdAgsulDMDyDbo+qZypkckP1obSUpDlSxxJ73Sfdzyp w/RlLF+HDkkdu5lxX8c0dNzFpcXjXlXWBsCG9qhagRR6clFF8IxPSbGG+eSab/TalCbS uZLlCpm91T4LRm2maMI5/31oA/eIIBc+1Mul57KTyROw4x95je6AM9EoLygNQEYKkY0W /J7g== X-Gm-Message-State: AOAM532VdcvwE/v8OwcI2UoOb8+aD98f/NueMMWo88/68yBwzRlYcAnO 9jyoAqF5V2UxrhCfIwPXc5P6huG5Ins= X-Google-Smtp-Source: ABdhPJwu1yXxPzU+Z59ev2iQXGyFrBdVkKY5wjfofuJQJslO++ic0vaDY7J/t0H0VYrxwJRck70xkA== X-Received: by 2002:a62:1914:0:b029:304:502e:8a4c with SMTP id 20-20020a6219140000b0290304502e8a4cmr21995914pfz.63.1624835320470; Sun, 27 Jun 2021 16:08:40 -0700 (PDT) Received: from tim-desktop (220-235-1-249.dyn.iinet.net.au. [220.235.1.249]) by smtp.gmail.com with ESMTPSA id z24sm11309350pfr.79.2021.06.27.16.08.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jun 2021 16:08:39 -0700 (PDT) References: <878s2w2b47.fsf@gmail.com> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Export Org mode files to (gag, barf) MS Office? Date: Mon, 28 Jun 2021 08:38:35 +1000 In-reply-to: Message-ID: <8735t23nyj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624835360; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9kdTDiPcPMoPM38PW24YhTDlRBw2C/6aht38GK8YIig=; b=hJAEEBESP00ICUd255Dl7NbGQNljz3eNb1HPC0+x2xQp4YgchGXfnMZ/Bt1MI7tcVR9giu oIRqlqvep0sEGpr6n4FnY4LWDw8v84VRpcnvRtgR1GbEmkMTy5LDBbYgXTuKT+iJZeoDNP HNY3BxRoPlwaSeQ021YpyeB9apP8a9+pbtM4MzAnCaW4OzN6aurm93wBOHUfC8eoPcH9XJ IeF/F/fKzw+O6IlTJpSFCXXY7t2zmpaEnaV70l2rstweY5RCYpGi6MUZy52G5ZFmcfGppP 5B8zlY1m+roQ3mynfzFBejAWlTx8YF/MnQHvIhaJ2emOn+t2DmDZKIXCOm4NMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624835360; a=rsa-sha256; cv=none; b=r/hSKSbjia7bPKDAj1Bmbxs78vn656cdg7KGAsWaZVhVvhh31t0/8KH3E7vTCWcmnjgIfX lTc77Gg8B2sUofQrYIatdNjGH6o9X6U6Thda5hpDfHzm8hn2fZDkiXACFqigZPIi84a3CQ +u5Z1UW3QdvWpMElGaFdzqwk2LOB1gxDr/02byGJkfzZ1NgScsWFxWf3BrEwcEMR3DK0l6 0VkilZVyxm3bqdckK8VHh8hKP2TExQng6Yhmi1D1OEWGtCU5zbIouGllaYzrEjwkfKqRW7 1gOKPOdEOUeQbCoaoAzZLRYRQqHA4w5WspFYnEegcVAIn5Qr0ZwmoBTfFizY1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eZZ6RroV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eZZ6RroV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0ADAD29D23 X-Spam-Score: -0.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: FXcXD8Nx2wi9 That error would tend to indicate there is a problem with the way the file uri is being encoded. This could either be a bug or it could be due to an error in your configuration or possibly the original org file your trying to encode. Unfortunately, in that backtrace output, I cannot see the full uri. I would start by looking at the full uri and seeing if you can spot what is wrong with the encoding and identify where that uri is coming from (i.e. your config, a link in the org file your trying to export etc).=20 Here is what I would do - - Create a minimal basic org file which generates the error when you try to export to odt - Post that minimal org file, together with details on your Emacs version, org-mode version to the list. You might be lucky and someone else on Windows will be able to use your test org file to see if they get the same error when exporting to odt. Maybe someone not on windows can also try exporting it to verify it is not a platform independent bug. See M-x org-submit-bug-report for a straight-forward way to generate the email. - Try running emacs -Q and then adding a minimal config to get org odt export to work and verify you still get the error. This may help identify bad local config, bad org installation/update or issue with org version you have. The objective here is to provide all the information necessary for someone else to try and reproduce your issue. This will help in determining whether you have a real org or emacs bug, a local setup/config error or a problem in your org file. BTW it probably would be worth running org-lint on the org file your trying to export, just to verify it has good org syntax etc. Brandon Taylor writes: > Here's the generated backtrace after doing M-x toggle-debug-on-error and = then trying to do export on Windows. > > Debugger entered--Lisp error: (rng-uri-error "Bad escapes in URI =E2=80= =98file:///c:/Program%20Files/Ema...") > signal(rng-uri-error ("Bad escapes in URI =E2=80=98file:///c:/Program%2= 0Files/Ema...")) > rng-uri-error("Bad escapes in URI `%s'" "file:///c:/Program%20Files/Ema= cs/x86_64/share/emac...") > rng-uri-file-name-1("file:///c:/Program%20Files/Emacs/x86_64/share/emac= ..." nil) > rng-uri-file-name("file:///c:/Program%20Files/Emacs/x86_64/share/emac..= .") > rng-locate-schema-file() > rng-auto-set-schema(t) > rng-validate-mode(1) > rng-nxml-mode-init() > xml-mode() > set-auto-mode-0(xml-mode nil) > set-auto-mode() > normal-mode(t) > after-find-file(nil nil) > find-file-noselect-1(# "c:/Users/donni/AppData/Local= /Temp/odt-s6F4yN/style..." t nil > "c:/Users/donni/AppData/Local/Temp/odt-s6F4yN/style..." (6755399441121385= 3391104951)) > find-file-noselect("c:/Users/donni/AppData/Local/Temp/odt-s6F4yN/style.= .." t) > org-odt-template(#("\n\n (headline ... ...)) 815 987 (:parent (paragraph ... ...)) 995 1044 (:pare= nt (paragraph ... ...)) 1052 1083 (:parent (paragraph ... ...)) 1278 1289 (= :parent > (headline ... ...)) 1390 1489 (:parent (paragraph ... ...)) ...) (:export= -options nil :back-end #s(org-export-backend :name odt :parent nil :transco= ders > (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... = ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ... ... = ... ... ... ... ... ... ... ... ... ...) :filters (...) :blocks nil > :menu (111 "Export to ODT" ...)) :translate-alist ((bold . org-odt-bold) = (center-block . org-odt-center-block) (clock . org-odt-clock) (code . > org-odt-code) (drawer . org-odt-drawer) (dynamic-block . org-odt-dynamic-= block) (entity . org-odt-entity) (example-block . org-odt-example-block) > (export-block . org-odt-export-block) (export-snippet . org-odt-export-sn= ippet) (fixed-width . org-odt-fixed-width) (footnote-definition . > org-odt-footnote-definition) (footnote-reference . org-odt-footnote-refer= ence) (headline . org-odt-headline) (horizontal-rule . org-odt-horizontal-r= ule) > (inline-src-block . org-odt-inline-src-block) (inlinetask . org-odt-inlin= etask) (italic . org-odt-italic) (item . org-odt-item) (keyword . org-odt-k= eyword) > (latex-environment . org-odt-latex-environment) (latex-fragment . org-odt= -latex-fragment) (line-break . org-odt-line-break) (link . org-odt-link) > (node-property . org-odt-node-property) (paragraph . org-odt-paragraph) .= ..) :exported-data # :input-buffer > "belvoire.org" :input-file "c:/Users/donni/OneDrive/Do..." :odt-styles-fi= le nil :description nil :keywords nil :subtitle nil :odt-content-template-f= ile nil > :odt-display-outline-level 2 :odt-fontify-srcblocks t ...)) > org-export-as(odt nil nil nil nil) > org-odt-export-to-odt(nil nil nil nil) > org-export-dispatch(nil) > funcall-interactively(org-export-dispatch nil) > call-interactively(org-export-dispatch nil nil) > command-execute(org-export-dispatch) > > Sent from Mailspring, the best free email app for work > On Jun 26 2021, at 11:05 pm, Tim Cross wrote: > > Brandon Taylor writes: > > > Okay. Well, I've gone ahead and installed LibreOffice, which took care= of the "missing 'soffice'" problem, but like a frustrating game of > Whac-A-Mole, > > another problem popped up. Now I'm left high and dry as to what might = have happened, because after adding the location of soffice.exe in > my > > Windows PATH environment variable, I get the following output: > > > > Executing soffice --headless --convert-to odt --outdir "c:/Users/donni= /OneDrive/Documents/" > "c:/Users/donni/OneDrive/Documents/belvoire.odt" > > > > Export to c:/Users/donni/OneDrive/Documents/belvoire.odt failed > > > > with absolutely no rhyme or reason as to what went wrong. > > > > You can try turning on debug on error with > > M-x toggle-debug-on-error > > which might give you a backtrace that will provide more details. > > I would also try executing the command > > soffice --headless --convert-to odt --outdir "c:/Users/donni/OneDrive/Do= cuments/" "c:/Users/donni/OneDrive/Documents/belvoire.odt" > > at a command prompt and see if you get any additonal information. I've > not done odt exports of org files, but that command line looks odd to me > - it looks like it is trying to convert an odt file to odt? > > I suspect you will have a hard time getting all this to work on Windows. > It is possible, but as Windows is not a 'preferred' platform, you have a > significant amount of configuration/customisation to do to get it > working. > > I never use Windows, so cannot provide much help of any real substance. > I do wonder if it might be easier if you use WSL? > > -- > Tim Cross --=20 Tim Cross