From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EG48NqIq2WAohAAAgWs5BA (envelope-from ) for ; Mon, 28 Jun 2021 03:49:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GNz8MaIq2WDACgAAB5/wlQ (envelope-from ) for ; Mon, 28 Jun 2021 01:49: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 EF0FA20127 for ; Mon, 28 Jun 2021 03:49:21 +0200 (CEST) Received: from localhost ([::1]:45842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxgOn-00045C-0v for larch@yhetil.org; Sun, 27 Jun 2021 21:49:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxgNe-0003QV-N9 for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 21:48:10 -0400 Received: from mail-dm6nam11olkn2051.outbound.protection.outlook.com ([40.92.19.51]:63869 helo=NAM11-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxgNa-0004bS-Bx for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 21:48:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dmlq2+N3KXIEA+YW9+IGIt+IWCcewGkqTKxTaRIrA4FJqoP9xrGk2P0fpX0Era+l12bFBr7NI6GdaXKCK2z03c87p7I+5bvxULZPUYvKafYccDDaeuwlsp0V66XJXLYW89HadnDXcWgNYUi8AyCCf5g7l6hAEoyJar68S44xlZaE1wQz4rxuNLOHu2KGjlGSLRfKWtQBAR7U5SZ0E7EhL+CGY8lp9uqNeeDXR8JgZX6cpWdg5qwMmm+wdmGZQ+faLB9MeGTlFITX3M2IurrQNWYpHb4RqGU14hQ0D7S9ZaAGYej7A1OLjOfT1qz1egUqXGTUerxFyesb3Q3R0seuFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Ht8hK023tL5gFiK1vc/eaqQgsIG0gb3gU3tS7UdVag=; b=N0Y0y+ENY8YxcRyUdwEP377xb89C64SuaYbADLmHGGegWqlqOqQTqPs99eZDiOHpcB4wL63BCOvTC78uwtgQfOMnJwyjCAtr/uoaAgZoqGOOslZiFYD70IfGUv1Mx/aFs2uE5yIZKnYKvscCpyDZxidI+j4u3yzWrHACqh/kOBy7CW6hhz9ZFvQkL8iLolMDcP8NROGV87Jtehb3N1mu7S8a9pflJbKscINcHZ8DgSN24pOgAJWUUDulJpSy4PV8yUZAj4Twql7fC3lJDGWWWHnpt49xmWM+eEnUFu02F5EYw7bMdNKO4lSAcYN5gHxmC0PiV1Z1gbpWaFqdPodD8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Ht8hK023tL5gFiK1vc/eaqQgsIG0gb3gU3tS7UdVag=; b=ifOXVJkGJxa6lZciqeibkkipCeBzX8nTtke1/5PXh+2LZXrSFBgOFmHV8B8cJ50vAu39c5qQJixsZEbc5d3t3ZnOUPP8JB/gnK8ydJmt7ItRldUynRaQdf5srS8hYCsCtJY6cyfrha5uqeswpj2kfdkOKGXiynTOvr5YimsaO2pKacNfFzZSkJfTE0RUyR4lvgLqSiHN2dpFw+LiUqXjSuDi4qLIS9F05uOgyik29sh+eqMVpPHQ4oQCQv7hEodCxeLfjoekJ7endiky9mazfYBJfSK8Fyq3W41g/PTXeSYqjWZK7XvzEsWQq5980+ZNda2aYPv5vLLQf810r+HS8g== Received: from SA1PR13MB4799.namprd13.prod.outlook.com (2603:10b6:806:189::23) by SN6PR13MB2511.namprd13.prod.outlook.com (2603:10b6:805:58::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.15; Mon, 28 Jun 2021 01:48:03 +0000 Received: from SA1PR13MB4799.namprd13.prod.outlook.com ([fe80::58e6:9658:6bca:d27]) by SA1PR13MB4799.namprd13.prod.outlook.com ([fe80::58e6:9658:6bca:d27%7]) with mapi id 15.20.4287.021; Mon, 28 Jun 2021 01:48:03 +0000 Date: Sun, 27 Jun 2021 20:48:02 -0500 From: Brandon Taylor To: Tim Cross Message-ID: In-Reply-To: <8735t23nyj.fsf@gmail.com> References: <8735t23nyj.fsf@gmail.com> Subject: Re: Export Org mode files to (gag, barf) MS Office? X-Mailer: Mailspring Content-Type: multipart/alternative; boundary="60d92a52_0_af7bcf63" X-TMN: [Ong0EtclP7wQWTHuGlCMWl/WtccydY5w] X-ClientProxiedBy: SN6PR2101CA0026.namprd21.prod.outlook.com (2603:10b6:805:106::36) To SA1PR13MB4799.namprd13.prod.outlook.com (2603:10b6:806:189::23) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from DESKTOP-BRANDON (24.32.15.166) by SN6PR2101CA0026.namprd21.prod.outlook.com (2603:10b6:805:106::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.2 via Frontend Transport; Mon, 28 Jun 2021 01:48:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3fa6c68f-5729-4574-6c94-08d939d6c48f X-MS-TrafficTypeDiagnostic: SN6PR13MB2511: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xMEI4U1I8lyGiGGWlvJwK7SLnbpPM6YWEQooOPWb6Wiw0ozOC6+KP8i1wiwA4kIyQxB8jUdDSaLon9d0iuXi62gfGesijR7TJfD3TAaPiZdCpj+Ya9Pht11PelEoU+g8QhHr7VV2y0YB9+DskmDK0gfnlHMNc0Kleuws18a+x5U02gBo2zhZvoA92S8ZpgY2kPUD8faBaHif+cPcISgj+QRsW6tLj6gM5uLMWanbYJXT0HR74tt0s1HTLiPgKQMe7odCeKRHhrWos7Fhlgp6kEnJ7xJOBTrMraeU2qxnz9JeXgqmqt1K8wFEwIKK9uTnxOmBSYLRtmBIBiYWbwxgBdE4qy9fU0hff3byaJ320r4ZYYYM6YvjVpRoVGlPdfeNO+WqR62rKzBLkhm00xEDvC9aZEwhLMtyjHfFCwFA+hxyOz+wyIyhMLAIxbb/9i1SBit7htT5vCGmucPbEaA4GeYZphn6a84zLPztfrHupgg= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ocSnryxvGRvzekPGvC4DUnODONAj19kotELQmp4RGFW7qgeP4I1kFb5+x3RrrLukQk3JvHc8t8autVHZ9mHRKHzhAbEj2SKpC8YpK6u7USLT4/c81LycrMQEBKEx6ShtuSd9ikRIJI9Q4uL4BE9How== X-OriginatorOrg: sct-15-20-3174-8-msonline-outlook-32ef5.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 3fa6c68f-5729-4574-6c94-08d939d6c48f X-MS-Exchange-CrossTenant-AuthSource: SA1PR13MB4799.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2021 01:48:03.8072 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR13MB2511 Received-SPF: pass client-ip=40.92.19.51; envelope-from=donnie126_2002@hotmail.com; helo=NAM11-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624844962; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2Ht8hK023tL5gFiK1vc/eaqQgsIG0gb3gU3tS7UdVag=; b=iFvLVr/dusqhnkcVFO+gH7dX+d02t/VWF5i6OPX9QOeopmQvNIz0HUlGbR/bQosl0f/0ak L+1gdFgTgQnZ/T2fad/AgYfTINMyv/68TDZClWClts38q0xtilaGQ6iJjQ0GHXbSMqbtNs t1aNJ7TJ8PdWz/S4kDp8MsBfM2lSZ2fHEudQFQzT35OqpFuyTk/ui4JXMqPh28HIb2n+zR NLQfucW4hyEjAfa4pMBskRC9d0W4qgaOPXK4fTPaOdigz8AKaQ6u4NKsVGiR/AwHQOJEse TEH6QPyd698CYbYW2V5wPWSDk86TlJZmAGo4qxC/rt1qmqWFOL32jzz8oC+aWg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1624844962; a=rsa-sha256; cv=pass; b=SwpKRBmGL6H+fN+bukCxOSv9mIdLxi7ri491kgAkS1pOY/nmTpz8OZ476CDfUthEhG3h2L P1fT4l6yx/Axx0CmY7WVrIKz1aC1I3QfsjWCDSMyjLM+9DAV4gUJcTCioiik2hmXLBOlto 5DDZGBCAbDg8J9MH59fdl+U20K9P8RuVQELSNHnKHmuxU9VALnER+WOFqf1B6Z6Tp88YHP CrRZl1G9ZiIA1aUfzYtlYUo4W72qfJHXf2eWssLo1Mr9TdarppQ4AGLoZUqKqJU4IILiUC 9IsKSd71IDYJu/waNW7/RPufqoB1nVY9VyqWsmMlJr5OdTHNLU5MuYPU8VfCRg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=ifOXVJkG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=ifOXVJkG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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: EF0FA20127 X-Spam-Score: -0.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8QCHi2ZL7h6+ --60d92a52_0_af7bcf63 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Actually, I've decided to go with your earlier recommendation of using WS= L now that it supports GUI apps like Emacs. Doing the export act gives me= a very elegant (albeit somewhat crowded) ODT file, like this -- https://= www.dropbox.com/s/16dhity67rtdwyp/belvoire.odt=3Fdl=3D0 (https://link.get= mailspring.com/link/=46D55DA87-8B2D-4D8A-A92=46-=46A98BA=46DB18B=40getmai= lspring.com/0=3Fredirect=3Dhttps%3A%2=46%2=46www.dropbox.com%2=46s%2=4616= dhity67rtdwyp%2=46belvoire.odt%3=46dl%3D0&recipient=3DZW1hY3Mtb3JnbW9kZUB= nbnUub3Jn) Sent from Mailspring (https://link.getmailspring.com/link/=46D55DA87-8B2D= -4D8A-A92=46-=46A98BA=46DB18B=40getmailspring.com/1=3Fredirect=3Dhttps%3A= %2=46%2=46getmailspring.com%2=46&recipient=3DZW1hY3Mtb3JnbW9kZUBnbnUub3Jn= ), the best free email app for work On Jun 27 2021, at 5:38 pm, Tim Cross wrote: > > 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 du= e > to an error in your configuration or possibly the original org file you= r > 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 yo= u > 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). > > Here is what I would do - > - Create a minimal basic org file which generates the error when you tr= y > 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 or= g > 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 =22Bad escapes in URI =E2= =80=98file:///c:/Program%20=46iles/Ema...=22) > > signal(rng-uri-error (=22Bad escapes in URI =E2=80=98file:///c:/Progr= am%20=46iles/Ema...=22)) > > rng-uri-error(=22Bad escapes in URI =60%s'=22 =22file:///c:/Program%2= 0=46iles/Emacs/x86=5F64/share/emac...=22) > > rng-uri-file-name-1(=22file:///c:/Program%20=46iles/Emacs/x86=5F64/sh= are/emac...=22 nil) > > rng-uri-file-name(=22file:///c:/Program%20=46iles/Emacs/x86=5F64/shar= e/emac...=22) > > 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(=23 =22c:/Users/donni/AppData= /Local/Temp/odt-s6=464yN/style...=22 t nil > > =22c:/Users/donni/AppData/Local/Temp/odt-s6=464yN/style...=22 (675539= 9441121385 3391104951)) > > find-file-noselect(=22c:/Users/donni/AppData/Local/Temp/odt-s6=464yN/= style...=22 t) > > org-odt-template(=23(=22=5Cn=5Cn > (headline ... ...)) 815 987 (:parent (paragraph ... ...)) 995 1044 (:= parent (paragraph ... ...)) 1052 1083 (:parent (paragraph ... ...)) 1278 = 1289 (:parent > > (headline ... ...)) 1390 1489 (:parent (paragraph ... ...)) ...) (:ex= port-options nil :back-end =23s(org-export-backend :name odt :parent nil = :transcoders > > (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... = ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ... ... ..= . ... ... ... ... ... ... ... ... ... ... ...) :filters (...) :blocks nil= > > :menu (111 =22Export to ODT=22 ...)) :translate-alist ((bold . org-od= t-bold) (center-block . org-odt-center-block) (clock . org-odt-clock) (co= de . > > org-odt-code) (drawer . org-odt-drawer) (dynamic-block . org-odt-dyna= mic-block) (entity . org-odt-entity) (example-block . org-odt-example-blo= ck) > > (export-block . org-odt-export-block) (export-snippet . org-odt-expor= t-snippet) (fixed-width . org-odt-fixed-width) (footnote-definition . > > org-odt-footnote-definition) (footnote-reference . org-odt-footnote-r= eference) (headline . org-odt-headline) (horizontal-rule . org-odt-horizo= ntal-rule) > > (inline-src-block . org-odt-inline-src-block) (inlinetask . org-odt-i= nlinetask) (italic . org-odt-italic) (item . org-odt-item) (keyword . org= -odt-keyword) > > (latex-environment . org-odt-latex-environment) (latex-fragment . org= -odt-latex-fragment) (line-break . org-odt-line-break) (link . org-odt-li= nk) > > (node-property . org-odt-node-property) (paragraph . org-odt-paragrap= h) ...) :exported-data =23 :input-buffer= > > =22belvoire.org=22 :input-file =22c:/Users/donni/OneDrive/Do...=22 :o= dt-styles-file nil :description nil :keywords nil :subtitle nil :odt-cont= ent-template-file 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 wrot= e: > > > > Brandon Taylor writes: > > > > > Okay. Well, I've gone ahead and installed LibreOffice, which took c= are of the =22missing 'soffice'=22 problem, but like a frustrating game o= f > > Whac-A-Mole, > > > another problem popped up. Now I'm left high and dry as to what mig= ht 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 =22c:/Users/= donni/OneDrive/Documents/=22 > > =22c:/Users/donni/OneDrive/Documents/belvoire.odt=22 > > > > > > 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 =22c:/Users/donni/OneDri= ve/Documents/=22 =22c:/Users/donni/OneDrive/Documents/belvoire.odt=22 > > > > at a command prompt and see if you get any additonal information. I'v= e > > 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=3F > > > > I suspect you will have a hard time getting all this to work on Windo= ws. > > It is possible, but as Windows is not a 'preferred' platform, you hav= e a > > significant amount of configuration/customisation to do to get it > > working. > > > > I never use Windows, so cannot provide much help of any real substanc= e. > > I do wonder if it might be easier if you use WSL=3F > > > > -- > > Tim Cross > > > -- > Tim Cross > --60d92a52_0_af7bcf63 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Actually, I've decided to go with your earlier recommendation of using W= SL now that it supports GUI apps like Emacs. Doing the export act gives me = a very elegant (albeit somewhat crowded) ODT file, like this -- ht= tps://www.dropbox.com/s/16dhity67rtdwyp/belvoire.odt?dl=3D0
Sent from Mailspring, the best free email app for work
On= Jun 27 2021, at 5:38 pm, Tim Cross <theophilusx@gmail.com> wrote:

That error would tend to indicate there is a p= roblem with the way the
file uri is being encoded. This could eit= her be a bug or it could be due
to an error in your configuration= or possibly the original org file your
trying to encode. Unfortu= nately, in that backtrace output, I cannot see
the full uri. I wo= uld start by looking at the full uri and seeing if you
can spot w= hat is wrong with the encoding and identify where that uri is
com= ing from (i.e. your config, a link in the org file your trying to
export etc).

Here is what I would do -

- Creat= e 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 y= our test org file to see if they
get the same error when exportin= g 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-submi= t-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 m= ay help
identify bad local config, bad org installation/update or= issue with org
version you have.

The objective her= e is to provide all the information necessary for
someone else to= try and reproduce your issue. This will help in
determining whet= her 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 <donnie1= 26_2002@hotmail.com> writes:

> Here's the generated bac= ktrace after doing M-x toggle-debug-on-error and then trying to do export o= n 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%20Files/Ema..."))
> rng-uri-e= rror("Bad escapes in URI `%s'" "file:///c:/Program%20Files/E= macs/x86_64/share/emac...")
> rng-uri-file-name-1("f= ile:///c:/Program%20Files/Emacs/x86_64/share/emac..." nil)
&= gt; rng-uri-file-name("file:///c:/Program%20Files/Emacs/x86_64/share/e= mac...")
> rng-locate-schema-file()
> rng-au= to-set-schema(t)
> rng-validate-mode(1)
> rng-nxm= l-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(#&l= t;buffer styles.xml> "c:/Users/donni/AppData/Local/Temp/odt-s6F4yN/= style..." t nil
> "c:/Users/donni/AppData/Local/Temp= /odt-s6F4yN/style..." (6755399441121385 3391104951))
> fi= nd-file-noselect("c:/Users/donni/AppData/Local/Temp/odt-s6F4yN/style..= ." t)
> org-odt-template(#("\n\n<text:h text:styl= e-name=3D..." 186 203 (:parent (headline ... ...)) 304 509 (:parent (p= aragraph ... ...)) 704 714 (:parent
> (headline ... ...)) 815 = 987 (:parent (paragraph ... ...)) 995 1044 (:parent (paragraph ... ...)) 10= 52 1083 (:parent (paragraph ... ...)) 1278 1289 (:parent
> (he= adline ... ...)) 1390 1489 (:parent (paragraph ... ...)) ...) (:export-opti= ons nil :back-end #s(org-export-backend :name odt :parent nil :transcoders<= /div>
> (... ... ... ... ... ... ... ... ... ... ... ... ... ... ...= ... ... ... ... ... ... ... ... ... ... ... ...) :options (... ... ... ...= ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters (...) :block= s 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-draw= er) (dynamic-block . org-odt-dynamic-block) (entity . org-odt-entity) (exam= ple-block . org-odt-example-block)
> (export-block . org-odt-e= xport-block) (export-snippet . org-odt-export-snippet) (fixed-width . org-o= dt-fixed-width) (footnote-definition .
> org-odt-footnote-defi= nition) (footnote-reference . org-odt-footnote-reference) (headline . org-o= dt-headline) (horizontal-rule . org-odt-horizontal-rule)
> (in= line-src-block . org-odt-inline-src-block) (inlinetask . org-odt-inlinetask= ) (italic . org-odt-italic) (item . org-odt-item) (keyword . org-odt-keywor= d)
> (latex-environment . org-odt-latex-environment) (latex-fr= agment . org-odt-latex-fragment) (line-break . org-odt-line-break) (link . = org-odt-link)
> (node-property . org-odt-node-property) (parag= raph . org-odt-paragraph) ...) :exported-data #<hash-table eq 34/4001 0x= 26f5845> :input-buffer
> "belvoire.org" :input-fi= le "c:/Users/donni/OneDrive/Do..." :odt-styles-file nil :descript= ion nil :keywords nil :subtitle nil :odt-content-template-file 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-interac= tively(org-export-dispatch nil nil)
> command-execute(org-expo= rt-dispatch)
>
> Sent from Mailspring, the best f= ree email app for work
> On Jun 26 2021, at 11:05 pm, Tim Cros= s <theophilusx@gmail.com> wrote:
>
> Brando= n Taylor <donnie126_2002@hotmail.com> writes:
>
> > Okay. Well, I've gone ahead and installed LibreOffice, which to= ok care of the "missing 'soffice'" problem, but like a frustratin= g game of
> Whac-A-Mole,
> > another problem p= opped up. Now I'm left high and dry as to what might have happened, because= after adding the location of soffice.exe in
> my
&g= t; > Windows PATH environment variable, I get the following output:
> >
> > Executing soffice --headless --convert-= to odt --outdir "c:/Users/donni/OneDrive/Documents/"
&g= t; "c:/Users/donni/OneDrive/Documents/belvoire.odt"
>= ; >
> > Export to c:/Users/donni/OneDrive/Documents/belv= oire.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 m= ight 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/On= eDrive/Documents/" "c:/Users/donni/OneDrive/Documents/belvoire.od= t"
>
> at a command prompt and see if you ge= t any additonal information. I've
> not done odt exports of or= g files, but that command line looks odd to me
> - it looks li= ke 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.<= /div>
> It is possible, but as Windows is not a 'preferred' platform= , you have a
> significant amount of configuration/customisati= on 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?
><= /div>
> --
> Tim Cross


--
T= im Cross
3D"Sent== --60d92a52_0_af7bcf63--