From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wJN0AMxAumVXRwAA62LTzQ:P1 (envelope-from ) for ; Wed, 31 Jan 2024 13:45:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wJN0AMxAumVXRwAA62LTzQ (envelope-from ) for ; Wed, 31 Jan 2024 13:45:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cPGgH7jT; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706705099; 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=U39oeJsIdM7/B2jcdw/qDpZ8OvBrHdx8KOisVadTVP0=; b=uLbp7MsvVveXdmBdrJIyUkXJimfz62WYUvXbcNUa4u4zlLsfLxiAsJ2hr9Cwzi7HCn0YkY qLhPT4Lv2BA0XOf+K0zO9Ci3jCDDkfR2ILb3VgcJEEJDSB9bS87c/IpWusJzZnfeNQTmxz nFQoh9cg/oku3f6Sk2yo00mDmrcIBpisXK2ymebGU4FNZZh9AhuDlqDRgud/K/SxdzohOz Q5ix902usYk8jSXmI3I00689oDmYQoOdPWCsmPOl9gYVYcT/YSkyF9++nQp6xU5d8+4c6U yjrShcv0E0mxLdn1QcdNEReDp/zD9NIoHJ1DOL4Vt8kkW19v6vxJP+3olH795A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cPGgH7jT; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706705099; a=rsa-sha256; cv=none; b=Dzt1r0l/YWG9rWeiWuoIkKOUxJ3Fl48VwuKzj9rw2bsYd5e0LBi1pqF0huvU3TjGQlv2MK 8p/vNsxd45Ik5wriT9M2CL21+DllXrslXGTnhnRg5cfReLJ+0K9qU/UAlgVRIJz8He0AdA +QH0zUYS5kiqrFCEH0pXVLNNRFzbh28taDrZcj+B8Q2r/+zszwZ1L1H6bndLG8zGtUQBis FwOBL4ADBqxsb25Qp8I9UMdRvijY2KOJFW4kbriwFjLSXD+v1wCjOuSOYfsKla2XgxVvQk qrp3ggZS51RcQtsu7TAEaNqA3GYBpiI2maluZWz4YNyBBORTXUlj/y7LLrzb1g== 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 C90735EEAE for ; Wed, 31 Jan 2024 13:44:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV9wd-0005uk-8j; Wed, 31 Jan 2024 07:43:59 -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 1rV9wb-0005ts-El for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 07:43:57 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rV9wZ-0005Jg-OB for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 07:43:57 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 756EE240103 for ; Wed, 31 Jan 2024 13:43:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706705033; bh=g+lPfUQcPw17ly4adI3HkjEZKfmKsDChZjhKDiH8lOs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=cPGgH7jT1Wlp6v2hBHxiYZBWrkxM96i1QmvKqHYjRRtxSNlA0M5uPg7N87mgltmhO IlYmMa2ra4YQX8FS0hrD4B9bXc8Yta7m/2f9oRr6v2Qc03S5Hj1FXSn4sV8V9hAuIb ZsPT7RlsEMpRp3kQEosVaYF3pSn1ll6uqLn+CGJJd50p2+2Mj/2v5CftUmLTQibnWh lu7q49HVD/C8NJVhAZickRMCjxRqpYtzY4tBkRqCuu08fmJC0qbrGNEZBq+TqcQVrr /N0W51+5yentyQZSHQ+Sxm02LC7qRptXPP8KAJg1rglgPQ2JiOTN1YNiTb73DjcXNM VeByXCqglNbSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQ1tc5q86z9rxG; Wed, 31 Jan 2024 13:43:52 +0100 (CET) From: Ihor Radchenko To: Nasser Alkmim Cc: emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <86plxhely9.fsf@gmail.com> References: <87il3a55bg.fsf@gmail.com> <8734udvjai.fsf@localhost> <86plxhely9.fsf@gmail.com> Date: Wed, 31 Jan 2024 12:47:23 +0000 Message-ID: <8734udoejo.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -9.18 X-Migadu-Queue-Id: C90735EEAE X-Spam-Score: -9.18 X-Migadu-Scanner: mx11.migadu.com X-TUID: czfB8eawIP66 Nasser Alkmim writes: >>> #+begin_src python :dir asyncpy :async :session :return figname :results file value >> >> These header arguments are not correctly formatted. >> Try M-x org-lint > > I tried org-lint and it says that the header argument is "unknown". You should have got 1 low Empty value in header argument ":session" 1 low Empty value in header argument ":async" 1 nil Unknown header argument ":async" You need to specify (1) :session name; (2) :async yes. > However, I can execute the source blocks. There is no guarantee that execution will work as expected in malformed src blocks like yours. > I tried with 'emacs -Q' and '(require 'ob-python)' and I noticed that I > missed the header argument ':mkdirp "yes"'. > With that I can reproduce the examples. Do you mean that you have no problem after you add :mkdirp yes? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at