From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wPhlGAN67GPlBgAAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 07:21:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QJWAGAN67GMuFwAA9RJhRA (envelope-from ) for ; Wed, 15 Feb 2023 07:21:55 +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 E185D18F58 for ; Wed, 15 Feb 2023 07:21:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSBAf-0002vc-Uu; Wed, 15 Feb 2023 01:21:38 -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 1pSBAd-0002vA-KB for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 01:21:35 -0500 Received: from mail-108-mta12.mxroute.com ([136.175.108.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSBAa-000635-PU for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 01:21:34 -0500 Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta12.mxroute.com (ZoneMTA) with ESMTPSA id 18653bc3210000edb4.002 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 15 Feb 2023 06:21:27 +0000 X-Zone-Loop: 2b7d2777353464834002396b22ed8a3573b99b004fd2 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-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding: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=CRKeVwUEewclBeBh/2ZNmcpv0HR6VA1P58PoQDNNBQA=; b=dNq0G+YTEzbKbcBtS5Rtux9B3t 150TgmvvzG9N1qYzRwy0zaZoelT81+fngq+7B1arzmbmUhV0PYQG7QrQAvZc04UoY+0CX3eR1596g jWUS6Vogh6Aj0+dDr11fZFh2KTmVvmB+zV4DIDXQJ3wvT5lIUSsh8//MMOlQ+aKRJFelgFv5K+MYt biOp378fVKEcRllLqzruBlUcOnw14kjcjNE5+LH9pgf2j6W5STO3i6nsDEocWgDhy9W2eW3GUfJSL o7Z8wRj+nPEY3KXQJucNCKtr+DZaA/AZCrsL3is7KTw3iFAQ3hKUYYENMOHMEFQSlKLr9i4Zaws+J DVjELZGw==; From: Jack Kamm To: Matt Cc: emacs-orgmode Subject: Re: [BUG] conda doesn't work in ob-shell sessions In-Reply-To: <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> Date: Tue, 14 Feb 2023 22:21:25 -0800 Message-ID: <87ttzn1mai.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.12; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta12.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 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=dNq0G+YT; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676442115; a=rsa-sha256; cv=none; b=l1vnhcmHgbg5ad699WUj9PMU2T0IqY9B1rHN/jL2tUyXbkrWSORbxAs5rHTRpCliDay9u4 gt2PNLc+Ugpi3a7nrlAR+bfDZbC3iiyjyrFFxgfbrCrUiNiHHHi0orU5OOxq33xb+E691+ 9maWPk41XJTu6e8RXuskASt4MDxejnVGpMlzl68RT4ieM4b57dtox1BNEiBH6zpbagB9fl jm+t88uUuHXf6lW6oIKZZT5a+EpyfP2EliOstTD6r9Ab0t48Vt5MrG6vNd4OM8jsOquL2H 1N7aj0uYJjrbj7YnFVOmzvBBUJnDuDZrLdN2ZmIIICAdQnUzFRXrYWexpFrCzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676442115; 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=CRKeVwUEewclBeBh/2ZNmcpv0HR6VA1P58PoQDNNBQA=; b=Qos3bPKWQ6Uvs9ewQ+pS9TUH5kVEIA2myreVBWwmTXA90GoNyDbZa0gLTCYBXcMyfHNhKX Wnv0S95GfYYC1m0wZWvjTw7de0llrCobE4dLbWpe5hnkIPjvuohm53pgA3Ty4xiOVVb7gQ p8YWw+R2pJJu2gAwDkrb0lo8ZTdhHVRFVedZ/jOLdgi8ODsdhJ54Bg57kVCy+p/IC+2bhE FDlPi3KvOT17i5kdiV9Hrb/slrA/x/cWu4gEmzAbypZoHn4b0w7tfhVJrh9/KnMcoKN6wz +kWgldawpHNsHdz5BkFP9Kk8vVALgqKT935jaY3wCw46VpzQkdAdSWugXpbzDQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=dNq0G+YT; 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"; dmarc=none X-Migadu-Spam-Score: -2.66 X-Spam-Score: -2.66 X-Migadu-Queue-Id: E185D18F58 X-Migadu-Scanner: scn1.migadu.com X-TUID: sPrKe2utig8+ Matt writes: > 1. M-x shell When I follow your example, in particular starting the session with M-x shell, then conda works as expected, and behavior is same as you report. But when I don't start with M-x shell, instead letting ob-shell create the session, then conda gives the error about needing to run conda init (despite the fact that conda init had already set up my zshrc). Example when _NOT_ using the M-x shell: #+begin_src emacs-lisp (org-version nil t) #+end_src #+RESULTS: : Org mode version 9.6.1 (release_9.6.1-250-ge6353d @ /home/jack/devel/org-mode/lisp/) #+begin_src emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))) #+end_src #+begin_src sh :session *myshell* :results output conda activate ledger #+end_src #+RESULTS: #+begin_example CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'. #+end_example