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 AONIBpKOYGMxSgAAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 04:12:18 +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 8FcvBpKOYGNAmAAA9RJhRA (envelope-from ) for ; Tue, 01 Nov 2022 04:12:18 +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 0C8463BA92 for ; Tue, 1 Nov 2022 04:12:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ophgV-00013S-9p; Mon, 31 Oct 2022 23:11:27 -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 1ophgT-00013K-SW for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 23:11:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ophgR-0004vq-Qb for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 23:11:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A6DA8240026 for ; Tue, 1 Nov 2022 04:11:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667272278; bh=higWsSed4K/rxkD9tF/mf04X8FEltPPPTE0s3RtCMDk=; h=From:To:Subject:Date:From; b=CpRhAGx/ivIn4OOaZeki2FcG2aQGEiE8TElL4CrID69bNTCfgJtnmyN1ThUgsnVy8 j1YFQktCyIu8ARbAE5Q7trZzQkKYfjxnLoRq7ruumQxwegEoVz40D0hLVvRko/N4CI EXSdznzFumUmRIWmKCIUcqjatl91y1o2eE5q9luIJhQuAQQir78TlNdDZWVggeeb42 4PdhiIfpUC2c3JsBlWDNLf29ZP8B7p2PlGv1KgTGarQEx4LoFzA/94TayUpxKFk1SX yULpZeNjEDIbwWBp4f3D1XhdhV0iEKGvqTyjbOb4tYCuvv74b1BwW2o+9utNEYgfrE Z5ZGQWLdq7hmw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N1ZmM0RBjz6tnv; Tue, 1 Nov 2022 04:11:14 +0100 (CET) From: Ihor Radchenko To: emacs-orgmode@gnu.org, Jack Kamm Subject: [BUG] ob-python: async session evaluation does not support python-mode.el [9.6-pre (release_9.5.5-2661-g2d040b.dirty @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Tue, 01 Nov 2022 03:11:58 +0000 Message-ID: <87bkprid1d.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org+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=1667272337; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SA1YYeYFwE2H9bsdcBkKEZy1cKvl9XnF7CVmQatVvbo=; b=kEGc9as8VfLYE76SP/fO86r/TmKWuTcLsd0E30ubiEQYr3bXb2u5Idak4mgs1zSpgkGUII dVgLtwT3drFSsDl5qLud4HCfYruM2W63Pl+I7+9Peg3/oj7uDiW8RgW/dsDGWeUscFHs7d /s4qUe3IDijZeTtCU2TWlBBmyqef2OUnuJomjzaUyipBVIwYjP069NzRTLaLjIIQ1JvtBC uBCrQEKVQxwKiQs05nx7edwdKk+zapBmdy1s7mJ3hmszgPX+cPmcT7PAieKX8rB/f2fPI4 U/4ct2ZTPmQ6M8Vi6UsE3gjB+4cP6EbV5tbAmHBVIodG3o9s7yHkABKB5u41Tg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667272337; a=rsa-sha256; cv=none; b=n10uJAaWiUWlNtD1twUqtAxmiPTZtiVoGvQ/KGUb4LFu7Y34MFAQdCQ577Enz9ckNlR58X DMRaF5ommId51FTApbP4kY7NdUMJVVEEGHFR2y40OtO/QNPVhrFWnAF3TomwBvHWFohjm1 a1nhGmKUxbdj9q+nChCa6B9mButIuriT+1vrdDtLDp6NZ/vszAt0jeDQjED09lnvvK+jdS jWYHXF+2x2nFl2WEPOyzmPTTvzv3UcKVWV06NA6vUgG++Qd3cbVT97OjRQ0ZrUTS2pickZ akxVSgiVJp4IVfvzTHyLCXdaURGbTYD5k+aYJoRqmIHJo+vTI1+2Oa8ZMaxU3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CpRhAGx/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CpRhAGx/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0C8463BA92 X-Spam-Score: -2.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: lMNwjh/DQ158 Hi, Commit 53fd5b774 introduced async session support in Python src blocks: ob-comint.el, ob-python.el: Async session evaluation Adds functionality to ob-comint.el to implement async session eval on a per-language basis. Adds a reference implementation for ob-python. However, async evaluation fails when org-babel-python-mode is set to 'python-mode. MWE: Executing #+begin_src python :session :async yes :results output import time time.sleep(.1) print('Yep!') #+end_src will never yield. This is because org-babel-python-async-evaluate-session assumes that built-in python.el is used to initiate the python session, which is not the case when org-babel-python-mode is set to 'python-mode. See org-babel-python-initiate-session-by-key. Emacs : GNU Emacs 28.1.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-07-17 Package: Org mode version 9.6-pre (release_9.5.5-2661-g2d040b.dirty @ /home/yantar92/.emacs.d/straight/build/org/) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at