From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gEenGMQgPGQ9XQEASxT56A (envelope-from ) for ; Sun, 16 Apr 2023 18:22:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8NunGMQgPGQuVwAAauVa8A (envelope-from ) for ; Sun, 16 Apr 2023 18:22:28 +0200 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 1E44C1592F for ; Sun, 16 Apr 2023 18:22:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po58D-0007zj-Dy; Sun, 16 Apr 2023 12:21:37 -0400 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 1po58B-0007zV-B6 for emacs-orgmode@gnu.org; Sun, 16 Apr 2023 12:21:35 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po588-0005bz-Nt for emacs-orgmode@gnu.org; Sun, 16 Apr 2023 12:21:34 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E26645C004D for ; Sun, 16 Apr 2023 12:21:28 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Sun, 16 Apr 2023 12:21:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unanue.mx; h=cc :content-type: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=fm2; t=1681662088; x=1681748488; bh=nj uNnG/OixaONalbh6kOCtgYWtGueuQfJ08FJq2qQIk=; b=5ZT3AmPtqpx5Kh9Q8r AdCZYl4jFG+GkkjFrlUEN+sNX8Uy8vfu4Bw2tuc+Xb0FHhtzjlxkyDeeiJeTFrYF f0Opf4xwKYq6FmFK9yhtjQkt5lkoU4oTIYQkUQghVUSC0S/imDq+oVWIRbh6VqhM cJqq74qo+p98uvp+N5PW+inZsASzBp3hwoSDxj2SrKj8+4XayocxrEv4ZWPgh0Nu FnClnA8lBVL+czTb+y3OZY60WEJkCC3Affo1oe5uVrIjen3GWjM5s54aNpAimIWg 28sxxwHwtKDfFtrfIuCrqqHVcpNUYzVtiK+pizlo9wsMhw593KSx4wW/ZjVrvQtG l/EQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type: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=fm3; t=1681662088; x=1681748488; bh=njuNnG/OixaON albh6kOCtgYWtGueuQfJ08FJq2qQIk=; b=cP9BOvCqXhwNbJJAd4sO/0aNMTT50 gcULYrLS4IylojKzGw9g9P+I44WcSb/9Io2/LEDYvY4Cy81sgBu947k2C6IygaiA VIU8Zd5YSbn1CPHE3ax8XXo7xFEBxpN9TSkAqdaekqFtf16kPzMLY39T9fT+y0bM B027OThqeuPVMmqgHMdaZNsh7rRMXPkOr6RqHFJYNUbbJbxdEDq8H1LXysHw0kqr 3802lQYuLuQuF66M3+IXJjOZOliOSyKwWG3d/g4YifORiMVSahVyg4KN1uu2D0Zb CvngaBawufxHdF8phnG/1K+J2WCNjRPWl9AdTApQjI4KtK4aJwXG6GHBA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfteguohhlfhhoucffvgcufghnrghnuhgvfdcuoegrugho lhhfohdoohhrghesuhhnrghnuhgvrdhmgieqnecuggftrfgrthhtvghrnhepieetheevhe fhuedtleffheevhedvvdfhieeuueehlefftdejvdehvdefgeelveelnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprgguohhlfhhoodhorhhgse hunhgrnhhuvgdrmhig X-ME-Proxy: Feedback-ID: i02c94742:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id AF7AC2D40074; Sun, 16 Apr 2023 12:21:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 Mime-Version: 1.0 Message-Id: <00f64a6f-54d5-4dbb-8c54-a96b80e91587@app.fastmail.com> In-Reply-To: <877cubri3r.fsf@reckondigital.com> References: <877cubri3r.fsf@reckondigital.com> Date: Sun, 16 Apr 2023 10:21:07 -0600 From: "Adolfo De Unanue" To: "Ruijie Yu" Subject: Re: Command not found when using Org + Guix + envrc.el Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=adolfo+org@unanue.mx; helo=out5-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, SPF_HELO_PASS=-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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681662148; a=rsa-sha256; cv=none; b=jP5egaonGmCh6o/1TVn1/4YAKxNcn8UzCykMUSWvKKLCAQiOpo0BWvqf3Dwp8KiCVfmj9K noziCjBEjkRd12ZU0tJQjeRzx2ElnKN0UbTBqZdzZKY6BO0C8KvdGVOVybpkJ0hX2Nnjbo Cumr2K96NngZZ6WiQi0TkssXJ8N2SFAKcQbyl2zMI/dGGd/4VE15FgtVeCkJQbfBTiSlUc nc5ZtlUPT7dQ6PU+4qPSr1fhUpcgsSK9u0Xu+RZG5PnvBtonf2S1UUqhIx119p+QVsnFRx VUdzn6Q9m48vboOSe9etXxktBa6HNgvD93wyY5rjBPWv0HSIDWVPRPqtiqjTIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=unanue.mx header.s=fm2 header.b=5ZT3AmPt; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=cP9BOvCq; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681662148; 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=njuNnG/OixaONalbh6kOCtgYWtGueuQfJ08FJq2qQIk=; b=twKa5xQTcbTWgAioUwF/SicZ54V2eXshhOC5ittlIypDYg84vzZ6E5Z+zDvR4titXNRqYj +X4a/qUPq5oDQFSGE/JrG9p3jAHnpk30/49pz/NIxjkmthqItHzOaJ5uB7crGyTvrw6iwa DgTCKkWTr4LUTfJ0oDzLVoaTUS6Mzr7tFZQ3U0O50tLQ7LbaFRKwqTVt120AGOP9UHhEa7 ORoZrPj40o46cig5khhtjMxx6Py6rGt6eAxig5e9Ec+mpaL/EjwG3maAjA8KmkAKlSEj2j A/rX9aNeSC1ErNtSO1t3fl6mKebokcE0OZ8mw8j3ysj6XTpkKgfA/ATAd/a7ug== X-Migadu-Queue-Id: 1E44C1592F Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=unanue.mx header.s=fm2 header.b=5ZT3AmPt; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=cP9BOvCq; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 1.40 X-Spam-Score: 1.40 X-TUID: QqNX+mqeOiyp I am facing the same problem, hopefully some one can help us - A On Sun, Apr 16, 2023, at 08:56, Fabio Natali wrote: > Hi! > > I tend to set up my literate programming projects with: > > - Emacs and Org > - Guix, to install the dependencies and create a development environment > - direnv, to automatically load the Guix environment > - envrc.el, to use direnv from Emacs > > It's a great setup and I'm very grateful to the above projects, but > there are a few corner cases where things don't work as expected. > > For instance: > > - Define a Guix environment that includes Python (Python not being > installed on the system otherwise) > - Create an envrc file that activates the Guix environment, e.g. via > ~eval "$(guix shell --search-paths --manifest="$1")~ > - In the same folder, create an Org file with a Python block > > The block is evaluated correctly when a new Emacs instance is launched > from within the folder, and therefore from within the activated > environment. > > However, things don't work as expected when using emacsclient with an > existing Emacs server. Thanks to envrc.el the Guix environment gets > apparently activated in the buffer, as confirmed by the envrc flag in > the modeline and by the output of =(getenv "PATH")=. However, evaluating > the block results in the following error: > > #+begin_quote > /bin/bash: line 1: python: command not found > [ Babel evaluation exited with code 127 ] > #+end_quote > > Tangentially, if the block's header includes =:session=, as in > =#+begin_src python :session=, then the error is slightly different and > is displayed in the minibuffer as opposed to a separate buffer: > > #+begin_quote > make-process--with-editor-process-filter: Searching for program: No > such file or directory, python > #+end_quote > > Things work fine when manually setting =org-babel-python-command=, but > hardcoding the Guix store path is clearly inconvenient, to start with > it'd require constant update. > > #+begin_quote > (setq-local org-babel-python-command "/gnu/store/...") > #+end_quote > > Does anyone have any idea on how to investigate this further? I'm still > unsure whether this may have to do with envrc.el, Org Babel, or possibly > with some quirks in my configuration. > > Thanks, cheers, Fabio.