From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AC44Jso7kmMVMQEAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 20:32:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4Gg2Jso7kmMJ7QAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 20:32:26 +0100 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 0F24C16C3F for ; Thu, 8 Dec 2022 20:32:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3McS-0003rF-Dx; Thu, 08 Dec 2022 14:31:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3McO-0003qs-CW for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 14:31:40 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3McL-0006ZJ-DJ for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 14:31:40 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A18555C0064 for ; Thu, 8 Dec 2022 14:31:33 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute5.internal (MEProxy); Thu, 08 Dec 2022 14:31:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schi.nz; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1670527893; x=1670614293; bh=334nDvL/v5 4wR1OZRmNP9huYWJghS2NxSqOCpudfbQw=; b=Ib1RWUdLmVlaLKVdcWCFiRlPCj gbTMdhvt7SZJp2AEtIGw/1Fy9qwoijOMnkr0Xmnx7WtOQzIi0qOwO5pvAunWdl3t 5itd8d+xbT114cvXMsV54m+drrm0lUfKjX68MOrGR6CoVyrO7r0vb573H5NcAaWs bLABRHVCEJuxjL3h4uRzB5tdQboZ0RjibRkfyP1J6mmVKh07bp5WnvoJU3W2RDWX k+NJyrXH7jUNDihZsOXK9dpd0d0lxI817pSRhHSxHdKCv8uuKLsIHZUfQcb1xgNQ Rt3bt42c/BNK5QkQEnx1c+VhHvs0m3WsC4Awf77m+GEBpkiYf+RXe+WQLfXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1670527893; x=1670614293; bh=334nDvL/v54wR1OZRmNP9huYWJgh S2NxSqOCpudfbQw=; b=bAour6mvZK6Hyq2lWCVGc7HvtcSsd5rzDUNnP/CdfMAi 3YRKoyKH4gBSYbn2/+4MDaUHi6IBjEes5FaQUsVDkD6YJNI0KI9INc25r313QfAt JWwXiyH1gAV/pFIVFu53cmXBTWpgsjr5+GNPA9KcDrFF3gtfV9iB31cHNV0uVMFS qA9IBB5UuQoqm02BzkVfgbclgshdxhTXVoaomMKIPpcemSCVv/XrzbDOtGNAKrOB fewbWyGkMvSiuwxSlt70tZ8HkPsP/0pFXIoaJL8/89/XaovQoEipJV+hDDNoVHlB SLOlkBjYRjQa4tAi3nfqqEV1gg+TomI8GQPc4x/8Kg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgdduvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfoihgt hhgvlhcuufgthhhinhiifdcuoehmihgthhgvlhesshgthhhirdhniieqnecuggftrfgrth htvghrnheptddvteeivefgffetgffhhedvvdehvdekjeejjeevkeettdelheefieejiefh tdegnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhvghlsehstghhihdrnhii X-ME-Proxy: Feedback-ID: ic2014585:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4CD8731A0063; Thu, 8 Dec 2022 14:31:33 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: <39a5810d-75bc-4ddb-8722-703f762ed4de@app.fastmail.com> In-Reply-To: References: <87tu27jq7h.fsf@localhost> <87k032nyok.fsf@localhost> Date: Thu, 08 Dec 2022 20:31:13 +0100 From: "Michel Schinz" To: "Berry, Charles via General discussions about Org-mode." Subject: Re: Multiple versions of Org in load-path problem Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=michel@schi.nz; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670527946; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=334nDvL/v54wR1OZRmNP9huYWJghS2NxSqOCpudfbQw=; b=eAuEAEsa5Py661aGtWJ88NInATmQuRlyFogJ9HnHEb1i9P55+kfh1slirmdh7ma4jd+f5T Rl/SmluumHzbyCtG37AOiXQKjYG0tfQL1FbM5LRf+8CoP+TNFbkznmGfuI/ZLsb+lScepf KvSjWPTidQ94uswGh01Xv4PILqAZ8wtVjb8nahbl3YVI9cm1REj+niWgxsWrJx7THRfAfF 2kvYBRwbl7QEHWo3ITN5AqwHTF56XdUDK/3pOSsN4D3k6xFW+TE1SX1x6MwMJyvE2X+qVz rADCIM+ICbnBQFkwCGTijHpIVCFwy27/EfGOKxLAzXI22uRHftW+LguprNKt2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670527946; a=rsa-sha256; cv=none; b=JbziELCL0JPTIrSnLyMwPRZ0oQI+PmlD/KmmqILOyLquZDbV1ckQopjPWeefmX62rHOZxX Iyy6OMXInDdaYwTMtZJf+UjnrMYyph3nQeS8FKjJDL1D0KPB6gcMOy1ZXFYsmlNWicPnlc sWCVqTeR6QNlokG1Ku49MKpAy7jslG+fZAJ0gD/L7R+3aPZXj+aRoZaoUH+qeqxG0N7DM4 F396wtREwA1ekYDmO9c4tW8iJxJsxUEOgFr6QkvJXFyQAyYgQ8AkE1G3LUtfngXdTkF664 ilqI5TPLGAFLKA9uDlkzO7lUb0KD6mmXziePPwZMOxRJzJARpyxFqaT2iSOiMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=schi.nz header.s=fm3 header.b=Ib1RWUdL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bAour6mv; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=schi.nz header.s=fm3 header.b=Ib1RWUdL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bAour6mv; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0F24C16C3F X-Spam-Score: 3.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6zqJPap18Q/n Just for the record, I also ran into problems when installing Org 9.6 using Emacs' package system on top of an older version that came with Emacs. If I tried to install it as usual (M-x list-packages, then install the package from there), I had errors during compilation related to `org-assert-version`, and then if I restarted Emacs, I would get a fatal error in an unrelated package. I managed to solve that problem by: 1. uninstalling Org 9.6 and exiting Emacs, 2. starting Emacs with -q, 3. installing Org 9.6 from there (using M-x list-packages as usual), 4. restarting Emacs. I'm not sure this is related to your problem, or whether that helps (but I hope it does)... Michel. On Thu, 8 Dec 2022, at 19:24, David Masterson wrote: > Ihor Radchenko writes: > >> David Masterson writes: >> >>> I went so far as to add the following to early-init.el: >>> >>> (if (featurep 'org) (unload-feature 'org)) >>> (add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/org-9.6") >>> (load-library "org") >>> >>> The load-library still fails with the org-assert-version error. >> >> Indeed. It is to be expected. M-x package-install should not err here >> though. In theory. > > My testing says that, in early-init.el, Org is not yet a feature, so the > built-in Org-9.3 is not yet loaded and the first 'if' fails. Adding the > path for Org-9.6 should put it at the front of the load-path and > (hopefully) override Org-9.3 if it is in the load-path (I think I > checked that). The error in the load-library is, therefore, a problem > with Org-9.6 installed by package-install. > >> I suggest you to read `org-assert-version'. It aims to catch the >> situation above and similar. > > This is chicken and egg problem. I can't use 'org-assert-version' > unless I can get Org to load. > >> Note, however, that installation problem is different. Or rather it >> should be different. >> >>> Could it be that, when you package-install Org-9.6, it runs through a >>> check where (I think) it compiles the package? I get a lot of warnings >>> and 34(?) failed files. Could it be that some of the files are not >>> built and, so, when I load-library, I'm picking up some of the wrong >>> files from the built-in Org-9.3? Do we need to remove all versions of >>> Org that is not the current version from the load-path at the very >>> beginning of org.el to ensure no fall-through? Kind of a hack, but... >> >> Maybe. It should not. That's why I raised >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59882 >> I'd like to see if Emacs devs have anything to say here. > > Good. I'm not used to bug reporting in Emacs, so I raised a question on > use-package in emacs-devel@gnu.org, but they pointed me at your bug. > I'll see if I can add anything there. > > -- > David Masterson