From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8BVjFL5i7GRQZwEAG6o9tA:P1 (envelope-from ) for ; Mon, 28 Aug 2023 11:02:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8BVjFL5i7GRQZwEAG6o9tA (envelope-from ) for ; Mon, 28 Aug 2023 11:02:54 +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 0E1EE3B185 for ; Mon, 28 Aug 2023 11:02:53 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H4D1NVgg; 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=1693213374; 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=8IR+/ybH/sN3CMVIOV+oMA9yhG63pi64dCSsNzaovRc=; b=GXlKwf86QNoDwbt+bjJuSsZq19V7xxLr8rmA2OOlZCkonVQV6459KMCYpJPhpdXXics/MF 1fqTP61kgmVTVYmu9jo/dfKMsr2DKPw6NVJZljAhAmgoww+Vj86RmduXsVP8TGAIzaqbdE Kb7yBI+ICYQIhEv9awJZPs4S46Gpsyt26Xr1YqeN4zEkV7nxoQGjxyKwI8zGX2gmMPSq6n r3hXg+yWw64oiorOMvmU9UreGDzzyCz00AYNFpNgEzJfwavLA2LlhVegW+pM5+tf0pv6F8 YOb2I1escIIFc1NncN+wOd3Bm6A/tu61mRH/gN5SrdwlQhox1kQt7x5hOOEjCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H4D1NVgg; 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=1693213374; a=rsa-sha256; cv=none; b=NnI1dD4QEFbnO+iLjPChaLHY+0rz+dftAAb+svnHsob+WVl6IvUFzlIfzYYkeeKUNI9ouc kmRLt8956C1Lyl0BiFd8ehaYPlJBEVKKmyW3wbcch8YYqHTo+kNkbx3C6G6/8Q2i1Z14yh kwj6rheKEYwXNbdDKy8q52/jPnsKQylRqFj9bPUPxgqV+f1XrEC/eBFNdzr3yXNQFQGDuQ BxL8FQb8reSmGqY//0JkLo2rf9/tqY4JQzpvl8Yl8JnzhEJ0G4hGEblljrLN45nW7oMy53 LE26dRIHSb02V42gWdiYzTO/y7OJrn/CXrQnaHUsyb3/yk38J41vbS/wJ7I+iQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaY8e-0002ec-IN; Mon, 28 Aug 2023 05:02:24 -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 1qaY8T-0002aW-1P for emacs-orgmode@gnu.org; Mon, 28 Aug 2023 05:02:18 -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 1qaY8P-0002uh-6g for emacs-orgmode@gnu.org; Mon, 28 Aug 2023 05:02:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 532E2240029 for ; Mon, 28 Aug 2023 11:02:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693213326; bh=kYhyEwu7urR++NCoqxGHKokwFN4VPXiXUk+EQN2QzO0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=H4D1NVggWH0G4q4f+cOOJodLDu08iNrBd3Mn8uxuyRrDdPXSFvIY208wj6b2kYQ7F wA+g17fq/MeKu7cgVLgt3UbUQzG3CHxK4LiRzKIr5PndVd5RYobYd6CZ/Nw0imnD3J au1hgdRepKiOcajj/ZxxaJBXrZAcJxn5Ojct3a1q+qzWC09VfiQs6/9fsTk0HZKMaJ yVBl79WuQMXdy4PxHsXqja4EJz7Q5o+r/f5e+0CBU0vOTyPF81UCZs6MpMLNgR1bqk 8iKkzsAN7r2NMpzsVSFLr+BLvfuJWeL4A7AnBzn90K3OVz8buPiN9sAqKpMO+1xKFC 4v8NrACxaAi4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RZ4Lj3cbhz9sGD; Mon, 28 Aug 2023 11:02:05 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: Peter Mao , org-mode-email Subject: Re: [BUG] ob-python hangs on second start [9.5.4 (release_9.5.4-763-g06373a @ ~/emacs/org-mode/lisp/)] In-Reply-To: <87a5uc9nxm.fsf@gmail.com> References: <87ttsnh5bx.fsf@localhost> <87a5uc9nxm.fsf@gmail.com> Date: Mon, 28 Aug 2023 09:02:35 +0000 Message-ID: <871qfn4k0k.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: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.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=-1, RCVD_IN_MSPIKE_WL=-0.01, 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 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -6.50 X-Spam-Score: -6.50 X-Migadu-Queue-Id: 0E1EE3B185 X-TUID: CJF+Hdcd15aG Jack Kamm writes: > I think `python-shell-first-prompt-hook' is actually still triggered, > but rather it is `org-babel-comint-wait-for-output' that is hanging > while waiting for startup. However, we can just replace it with a > `sleep-for' instead, because we now wait for > `org-babel-python--initialized' anyways. > > See the attached patch. Please let me know if it fixes the problem for > you. LGTM! Feel free to push. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at