From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 26 00:05:38 2022 Received: (at submit) by debbugs.gnu.org; 26 Apr 2022 04:05:39 +0000 Received: from localhost ([127.0.0.1]:36571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njCSI-0002JF-Cg for submit@debbugs.gnu.org; Tue, 26 Apr 2022 00:05:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:44432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njCSF-0002J7-Kb for submit@debbugs.gnu.org; Tue, 26 Apr 2022 00:05:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCSF-0002cy-Ej for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 00:05:35 -0400 Received: from outbound-smtp36.blacknight.com ([46.22.139.219]:44451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCSA-0001WR-Jl for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 00:05:32 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp36.blacknight.com (Postfix) with ESMTPS id 500D422C4 for ; Tue, 26 Apr 2022 05:05:26 +0100 (IST) Received: (qmail 31332 invoked from network); 26 Apr 2022 04:05:26 -0000 Received: from unknown (HELO rt-inspiron-3480) (rt@robertthorpeconsulting.com@[109.78.29.216]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 Apr 2022 04:05:26 -0000 From: Robert Thorpe To: bug-gnu-emacs@gnu.org Subject: 27.2; Inferior Python/ M-x run-python problem with Tk on Windows Date: Tue, 26 Apr 2022 05:03:58 +0100 Message-ID: <87sfq0ebip.fsf@robertthorpeconsulting.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=46.22.139.219; envelope-from=rt@robertthorpeconsulting.com; helo=outbound-smtp36.blacknight.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I have a problem with M-x run-python on Windows 10 enterprise. The python code I'm working on uses Tk. Unfortunately, after Tk is used the inferior python no longer responds to inputs. I see one more prompt, then nothing at all. Type the following into an inferior python process. Or alternatively, put it in a file and import it. import tkinter as tk from tkinter import ttk window = tk.Tk() This pops up a Tk window with nothing in it. It also gives another python prompt. But after that communication between Emacs and the inferior python process seems to be lost. It seems that someone had the same problem 20 years ago. I can't find anyone having this problem recently though. https://python-list.python.narkive.com/miSHgA8U/problems-with-tkinter-based-scripts-under-emacs If it helps I'm using Python 3.9.11 64-bit and Tcl/Tk 8.6. (I am sending this from Emacs 27.2 on Arch but I've copied over the debug text below from the PC with the issue). BR, Robert Thorpe In GNU Emacs 28.1 (build 52, x86_64-w64-mingw32) of 2022-04-04 built on AVALON Repository revision: 5a223c7f2ef4c31abbd46367b6ea83cd19d30aa7 Repository branch: heads/emacs-28.1 Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19042.1586) Configured using: 'configure --without-dbus --with-native-compilation --without-compress-install CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: ENI locale-coding-system: cp1252 Major mode: Inferior Python Minor modes in effect: compilation-shell-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils mule-util compile text-property-search python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map comint ring ansi-color cl-extra seq byte-opt gv bytecomp byte-compile cconv help-mode novice dired-aux cl-loaddefs cl-lib dired dired-loaddefs iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 79959 6409) (symbols 48 9143 1) (strings 32 29136 1864) (string-bytes 1 996338) (vectors 16 18266) (vector-slots 8 255188 8970) (floats 8 46 170) (intervals 56 562 0) (buffers 992 17)) From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 26 07:14:23 2022 Received: (at 55119) by debbugs.gnu.org; 26 Apr 2022 11:14:23 +0000 Received: from localhost ([127.0.0.1]:37217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njJ9D-0003ze-8q for submit@debbugs.gnu.org; Tue, 26 Apr 2022 07:14:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njJ9B-0003zK-VV for 55119@debbugs.gnu.org; Tue, 26 Apr 2022 07:14:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njJ96-0006jC-7l; Tue, 26 Apr 2022 07:14:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PrjdtNdCOeOu/BD6QP4/Oa4yipbDrwbFukzReI2k6uw=; b=sblFvl6gIdc5 ya7r47GMU0k5byUitx5BithBW472RtLveo5BmLFj3QS4jCJZp5OL1tzdLHVc7vEkgYGXWM/m0MB49 7K3icGkNvVT/HekFKfgd8im2HjTpvG6rKkh+PLNcSKS44FumuA1FSamNao+vNSEpn820559HmJT0f POpa7F+R5Z7119WWIh5QL6lgNzUV/hQ9e4CvFIxYXxHhFcI023PQPYUutsKCm2JUOBMO6uIbRSY1t /CBau3KEKGumOpTD3OzDQPD9M0dwMAZRGhQinpUqQS/AwTO/zct65rNIiEDKnvgdUqbZKkelPJFtJ IjHogZUz+G/55WTaMgaT5g==; Received: from [87.69.77.57] (port=3820 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njJ95-00084z-LD; Tue, 26 Apr 2022 07:14:15 -0400 Date: Tue, 26 Apr 2022 14:14:02 +0300 Message-Id: <83a6c8m70l.fsf@gnu.org> From: Eli Zaretskii To: Robert Thorpe In-Reply-To: <87sfq0ebip.fsf@robertthorpeconsulting.com> (message from Robert Thorpe on Tue, 26 Apr 2022 05:03:58 +0100) Subject: Re: bug#55119: 27.2; Inferior Python/ M-x run-python problem with Tk on Windows References: <87sfq0ebip.fsf@robertthorpeconsulting.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55119 Cc: 55119@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Thorpe > Date: Tue, 26 Apr 2022 05:03:58 +0100 > > I have a problem with M-x run-python on Windows 10 enterprise. > > The python code I'm working on uses Tk. Unfortunately, after Tk is used > the inferior python no longer responds to inputs. I see one more > prompt, then nothing at all. > > Type the following into an inferior python process. Or alternatively, > put it in a file and import it. > > import tkinter as tk > from tkinter import ttk > window = tk.Tk() > > This pops up a Tk window with nothing in it. It also gives another > python prompt. But after that communication between Emacs and the > inferior python process seems to be lost. Unless there's someone here who uses this configuration on Windows, knows the details, and can dig into the problem, you'll have to tell more about what the above does, from the technical POV. It is likely some snafu with I/O between Emacs and Python when it uses Tcl/Tk, but what exactly and whether it's at all solvable, is anybody's guess at this point. All I can tell you is that Emacs on Windows uses a bidirectional pipe to communicate with subprocesses, so if the above fiddles with standard I/O streams in some non-trivial ways, or assumes it can separate input device from output device, or redirect them separately to different places, or even that one or both of them are or can be made unbuffered -- it will simply fail to work on Windows. You have a single bidirectional pipe which is buffered by the OS, and at least Python (or any other external program) will see that its standard I/O is not connected to a console device, and will (mis)behave accordingly. The buffering issue you could perhaps deal with, by telling Python to use unbuffered I/O. But I'm not even sure this is the root cause of what you see. That is all I can tell without more detail, sorry. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 19 10:10:07 2022 Received: (at control) by debbugs.gnu.org; 19 Jun 2022 14:10:07 +0000 Received: from localhost ([127.0.0.1]:52764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2vcl-0003CH-Qs for submit@debbugs.gnu.org; Sun, 19 Jun 2022 10:10:07 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:45011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2vci-0003Bj-96 for control@debbugs.gnu.org; Sun, 19 Jun 2022 10:09:56 -0400 Received: by mail-pg1-f181.google.com with SMTP id 31so8047149pgv.11 for ; Sun, 19 Jun 2022 07:09:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=qiU0dUSz2eWSKW4+82neWnGyZzPNfvzm/l6PfjQq3UE=; b=XyJ/RCXeNBT35x3Vu9C3Bcz3vcEeNYu5GQNiagi+A+vI9T1e0NTgCBMpgVIXXyd7yD 1caHgalHJA3FDf9+El4l9NvZ2nbf7NEprW6RHgfBRonxRfzWVN0+BE4thGBW5RmvZAjL +iDgzvYA+dmjrBdvaMsOT0KW2tg9K6i/RxEdoL1JsUKhOFnuGqBP0gx8rPBYoB+4+LbK Dfk7Ptk2dzJk3Rjqj8rotHEh2YgsD1odMZNlOrWPmMQbXZeJpPc9Rm10MRZE/1+uf7n9 QJQDSabnZlvKnB5j+EX4w4pZBalWgenpLNczcTzOSX5ByUOGyfwN5owZZE3P0/mYfHE4 NbUg== X-Gm-Message-State: AJIora+uFe7ih/RSx/9Fku5Fa3DuMzKGFuay5d1NEimtap9GewLhRviJ x1UR2UVrq6qnlBrDcdnYPi37lHvcK8bsYTZC7cJrvElI X-Google-Smtp-Source: AGRyM1tKPROmxyv3Gh+B2v8MwGoxrIZ2wi8Yq4HiHsMWs3o2iCBr4bvlixU6iDnePDLRO2NgREW4H7y0Hzr+Q5jPHTc= X-Received: by 2002:a05:6a00:4109:b0:525:fd9:61f4 with SMTP id bu9-20020a056a00410900b005250fd961f4mr7168830pfb.4.1655647790720; Sun, 19 Jun 2022 07:09:50 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 19 Jun 2022 07:09:50 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Sun, 19 Jun 2022 07:09:50 -0700 Message-ID: Subject: control message for bug #55119 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 55119 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 23 04:41:30 2022 Received: (at 55119) by debbugs.gnu.org; 23 Jul 2022 08:41:30 +0000 Received: from localhost ([127.0.0.1]:43331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAhW-0007np-5e for submit@debbugs.gnu.org; Sat, 23 Jul 2022 04:41:30 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAhU-0007nY-6y for 55119@debbugs.gnu.org; Sat, 23 Jul 2022 04:41:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; 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=PcEGJuwGtPyDjbTV5gG4VfowvVvn2xRTyv0JWzYvJAc=; b=kwGSitphvGKHRDLXwY6IRgT8bj r1Vz8WpEASEk6kal21OX7xRwEJyXPgc2K1e1OEqDLywXN9fxfx3faz0MUX7MNul4OoTQQGyz+6YPR IM9VWS/JaqKbz037jfNxEdMzDtF64PVeDQVMrjlV1YIwxTY8rlHK6U3429v/f/KTH62M=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFAhL-0000X5-HA; Sat, 23 Jul 2022 10:41:21 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#55119: 27.2; Inferior Python/ M-x run-python problem with Tk on Windows In-Reply-To: <83a6c8m70l.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Apr 2022 14:14:02 +0300") References: <87sfq0ebip.fsf@robertthorpeconsulting.com> <83a6c8m70l.fsf@gnu.org> X-Now-Playing: Mia Doi Todd's _Music Life_: "Music Life (feat. Jeff Parker & Money Mark)" Date: Sat, 23 Jul 2022 10:41:19 +0200 Message-ID: <875yjoz0eo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > The buffering issue you could perhaps deal with, by telling Python to > use unbuffered I/O. But I'm not even sure this is the root cause of > what you see. > > That is all I can tell without more de [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55119 Cc: 55119@debbugs.gnu.org, Robert Thorpe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > The buffering issue you could perhaps deal with, by telling Python to > use unbuffered I/O. But I'm not even sure this is the root cause of > what you see. > > That is all I can tell without more detail, sorry. More information was requested, but no response was given within a few months, so I'm closing this bug report. If the problem still exists, please respond to this email and we'll reopen the bug report. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 23 04:41:34 2022 Received: (at control) by debbugs.gnu.org; 23 Jul 2022 08:41:34 +0000 Received: from localhost ([127.0.0.1]:43334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAha-0007o6-FI for submit@debbugs.gnu.org; Sat, 23 Jul 2022 04:41:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAhY-0007ne-9m for control@debbugs.gnu.org; Sat, 23 Jul 2022 04:41:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iX6Ht+DZsxFXrT2FBeRI6HdKKVUpHNSJkgHvwSm+T+s=; b=UCqV9KPDiw1GHmYceT5UxX58V9 ohVwiu4BBK2grnGBsFvmcT5hBCG2zikMOrq61RB5X1OuFTs4ZDTehF7+wXJIbA++RRgq4XGx0Wtdo eysUS3r/JJ1X2df6iCdFXi/me3TMORNI6WZqDd7/2U9Jlx6DD82P82hU6jxZ3CBEs1dw=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFAhQ-0000XE-KC for control@debbugs.gnu.org; Sat, 23 Jul 2022 10:41:26 +0200 Date: Sat, 23 Jul 2022 10:41:24 +0200 Message-Id: <874jz8z0ej.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55119 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55119 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55119 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 25 00:32:08 2022 Received: (at 55119) by debbugs.gnu.org; 25 Jul 2022 04:32:08 +0000 Received: from localhost ([127.0.0.1]:49041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFplI-0004pI-4Y for submit@debbugs.gnu.org; Mon, 25 Jul 2022 00:32:08 -0400 Received: from outbound-smtp08.blacknight.com ([46.22.139.13]:51117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFplD-0004oj-F7 for 55119@debbugs.gnu.org; Mon, 25 Jul 2022 00:32:06 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp08.blacknight.com (Postfix) with ESMTPS id 726D61C43A9 for <55119@debbugs.gnu.org>; Mon, 25 Jul 2022 05:31:57 +0100 (IST) Received: (qmail 21268 invoked from network); 25 Jul 2022 04:31:57 -0000 Received: from unknown (HELO rt-inspiron-3480) (rt@robertthorpeconsulting.com@[51.37.90.175]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 25 Jul 2022 04:31:57 -0000 From: Robert Thorpe To: Lars Ingebrigtsen Subject: Re: bug#55119: 27.2; Inferior Python/ M-x run-python problem with Tk on Windows In-Reply-To: <875yjoz0eo.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 23 Jul 2022 10:41:19 +0200) Date: Mon, 25 Jul 2022 05:30:14 +0100 Message-ID: <87zggx6ch5.fsf@robertthorpeconsulting.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55119 Cc: eliz@gnu.org, 55119@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Lars Ingebrigtsen writes: > Eli Zaretskii writes: > >> The buffering issue you could perhaps deal with, by telling Python to >> use unbuffered I/O. But I'm not even sure this is the root cause of >> what you see. >> >> That is all I can tell without more detail, sorry. > > More information was requested, but no response was given within a few > months, so I'm closing this bug report. If the problem still exists, > please respond to this email and we'll reopen the bug report. I have a little more information. * 1. Ipython. This bug does not appear with ipython. So I have simply switched to using ipython. * 2. Tell Python to use Unbuffered IO. I tried this by setting the PYTHONUNBUFFERED environment variable, it doesn't help, the same error occurs * 3. Other Investigation. A user called Bombastry on Reddit did more digging into this problem. Bombastry found that it happens with the Qt widget library too. On the other hand, I don't think that any of this is important enough to reopen the bug. I'm really just writing it so that hopefully it appears in a web-search for anyone who has this problem in the future. BR, Rob From unknown Sat Jun 21 10:46:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 22 Aug 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator