From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GHX+N66grWUYRgEAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 23:54:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GHX+N66grWUYRgEAe85BDQ (envelope-from ) for ; Sun, 21 Jan 2024 23:54:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=wU4QDeAk; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705877678; 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: 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=MdapySZUu8YE5XnANEWgaW4ShirX8x6dH9WQF//KE9U=; b=pxg+eX8wPByBNm/TwsGLceOeuK6DAdk6upTgToXr/z9L9YYKIuAQnK36qFhlA8euEQo0s4 iWVSXVvvryPzH2GWa3j6yc/v3GkNYVfLGcfrkelKvJuUfWDXvyDoBt1hmgpcIy+E6s2jp3 1T0EFjh6vDa+dQWZnYhXDUitz6eba/u3hqvJfgcfEmCqWeeOQ1TQJ4UeQfCasRTszE/y7M zIwN5vUHsanNPpuhPzOAe6BqmCoLA5vMXNwCEqnb55vlX5Kvn1OZwvcmcNNsBqiMm37QOJ WFNbGyfnoabUzFiPFLhK88+TdNZAlRpq3+21mBb88sboFptl1XfOWbMK/tJWBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=wU4QDeAk; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705877678; a=rsa-sha256; cv=none; b=GRtw4j+spY20rjcSbNGrumtU6HazqLrMkr9z4iCh2KLcyKa1zHg2dEhzphEjbAiY7YX7lZ jC41t4m//wlFxBEDSjtN/KcozXGQh0T2VXmWMkDz0mcw+Qe+iF62fw1oMVu2Aq1ZOPfYpV 0ipCc5VLYkFN9WRy0Q5CO+sz53jtZcLMSPAW0NEAqE6XyVWxM4vOfR4mEWVGRS1mwkoVOt ZCBvCrR88XZw1M/eBXw8MZ4bEIPRdhAgH3i4lfMkb3zDRBQQ3H5ZcdXQngGenz4Ke7Xdmv F3O/XL8wnkANPSsMyQjZ/+oybJ2RnDGXgdy3ePoTAH4PB2rjU+7O9oY83yGm8w== 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 56D6A11E5A for ; Sun, 21 Jan 2024 23:54:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRghN-00009b-9Y; Sun, 21 Jan 2024 17:53:53 -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 1rRghL-00009K-8g for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 17:53:51 -0500 Received: from mail-108-mta145.mxroute.com ([136.175.108.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRghJ-0000MY-BC for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 17:53:50 -0500 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta145.mxroute.com (ZoneMTA) with ESMTPSA id 18d2e36355f0003727.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 21 Jan 2024 22:48:41 +0000 X-Zone-Loop: 22649a600fd601e3d0338a4a6bd782a75cd7b6e426c9 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MdapySZUu8YE5XnANEWgaW4ShirX8x6dH9WQF//KE9U=; b=wU4QDeAkrNZYPfXKpUcQ7ozEoN v5yx6vC/2rS9HQBlm1/X31L9YB0ruqpRGo3+26RYtqwF5bjgKFYh81GetTk4E9a7AyB5uLujoJkNw 1Ls4/jbi92Ms03AU6yMO32exCCdtBkENkb5cU39qD28ZOGWIHx/nwQ3o2I6KwjVEKb83+yf8P/zJs w80NVzl0KmLrQ3VgzlXn7NYDj7OBfaCrO3zKN5lDtedhsxQSoCi0Iui0bRrDLOv7sllNonhLAFg2P 3y1oJ9SeZ9q2ETO8d0ZVmUASeVWJXmwKba8xFTsvRQYPvpQL3AgP8TfScQZH9/iHhHFg3qBDyMEOS /+lAgqIg==; From: Jack Kamm To: Ihor Radchenko Cc: Matt , emacs-orgmode Subject: Re: [BUG] conda doesn't work in ob-shell sessions In-Reply-To: <87h6jaj1pk.fsf@localhost> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> <87ttzn1mai.fsf@gmail.com> <87h6jaj1pk.fsf@localhost> Date: Sun, 21 Jan 2024 14:48:38 -0800 Message-ID: <87sf2q9ubd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.145; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta145.mxroute.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Spam-Score: 0.16 X-Spam-Score: 0.16 X-Migadu-Queue-Id: 56D6A11E5A X-Migadu-Scanner: mx12.migadu.com X-TUID: XfiVamtNgjmh Ihor Radchenko writes: > So, I believe that the following should work for you > > #+begin_src shell :session *myshell* :results output > conda activate ledger > #+end_src No, it is still broken after switching to "shell" block, though the error is different now. (Though I agree the previous error message was due to using "sh" block and not ob-shell's fault). Here is my minimal example. In init.el: (add-to-list 'load-path "/path/to/org-mode/lisp") (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (shell . t))) Then do: emacs -q --load init.el test.org With test.org like: #+begin_src shell :session *shell* :results output conda activate some-conda-env echo test #+end_src Then, on main branch, trying to execute the block hangs. It is because conda changes the prompt in a way that breaks the new ob-shell implementation. On bugfix branch, ob-shell still works with conda. I do observe a separate bug on the first evaluation ("org-babel-execute:shell: Symbol=E2= =80=99s value as variable is void: org-babel-prompt-command"), but subsequent evaluations work, and the error seems unrelated to conda. IMO breaking conda is a pretty major regression, as conda is a critical tool in many areas of scientific computing, including in my own workflows. Although I was never a major ob-shell user, I did occasionally find it useful albeit buggy. But I've stopped using it altogether over the past year because of this change.