From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.devel Subject: Python.exe in Emacs26 for M$ Windows - REPL problem Date: Sun, 26 Jan 2020 21:28:18 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="61832"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 27 01:29:04 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivsH2-000G14-BS for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Jan 2020 01:29:04 +0100 Original-Received: from localhost ([::1]:38662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivsH1-0002RD-G4 for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jan 2020 19:29:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47707) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivsGX-00022T-IK for emacs-devel@gnu.org; Sun, 26 Jan 2020 19:28:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivsGW-0001m5-9d for emacs-devel@gnu.org; Sun, 26 Jan 2020 19:28:33 -0500 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:37020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivsGW-0001la-1a for emacs-devel@gnu.org; Sun, 26 Jan 2020 19:28:32 -0500 Original-Received: by mail-pl1-x643.google.com with SMTP id c23so3119833plz.4 for ; Sun, 26 Jan 2020 16:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Mzp/2QBTCyWGSfjK+CsNBFZkMLzvKTfr+kVI3uT5Pkc=; b=AnA+LuTYv9nD4NdU6HSxt2wwL9AfxQjxfrGhFzxrU5G/UcYXal3CeD3EzmulXcZ3wq GCJqXLTX+vf+4nRnacKWJE4a/E10Egg4e0nI/SN4XLv8DA/SMtx64euNXFl1BwNbXPgQ bQXKDKvuecalbPY3pTXX1/+Nnkdu799X5FbIY+rU/o3StirNsrSGoze3TILkqX4d+dqB JqYCUg6rym9QS2NtyFUzEiEg2DgvMrh1l8tm/2CRRNCShBrkfG8WtYCpVBPK3Xo/8UJd yxMil4mF/33ahmb9MOOrR23/JfODlK5duEm/4JN/8LdskwJ70Ds5lliu2lNTOSRHCjVz +81Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Mzp/2QBTCyWGSfjK+CsNBFZkMLzvKTfr+kVI3uT5Pkc=; b=pPWB5C0P5FiP5VoCZ1YRUGCFbvVFwf3Z7wYIsqO9Rj1YUs+D902sjJme6K9Zi0gb0X 7tXC3o6g8KVF/VeniCvjH8kNlbQMb0iaRrzDIp3JvWw92UWv9Yhsiars3/ZGcTTIGMxe Q3wksZZFLt/wrLvcKNDX0IUyJYe0WDH2HPAIBUKSyCpKVqHRQSImdAj5pUjUwLDvgdNU I0tKQyxlKyz+IMSIXmY1WDk7K5fOCY/w5aqR3eIx8LwM7vtdu90I36FvgFKl5rUoPr06 DleSpjFx3CQemLKuq8atXPqgqFj3ZsYxm1HC0rR1uCCaFGxms/wM6b2LuyV3FCqRnsWV dpig== X-Gm-Message-State: APjAAAU5nvfPqlBMnUzjcab8h6LsQ132Xa+f3E0lu7uWBWOSDanGANoM z6b+kGfTXELws5JZs/Rp3zIHCf21kSc2z9ALosHkU7ml3gU= X-Google-Smtp-Source: APXvYqwKGZ/LJuYskXoXKOGa+hU6zrhlowKfuq+swtvOBoC34LCAHXfc0HfBH+U4WokDagN8zjb66Zm9psbMfDSeb50= X-Received: by 2002:a17:90a:9285:: with SMTP id n5mr12174251pjo.58.1580084910249; Sun, 26 Jan 2020 16:28:30 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::643 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244666 Archived-At: Hello list, big message, split in two parts. 1. Introduction =============== I sometimes use Emacs and eev to present some principles of Free Software - for example this, but in practice: https://www.gnu.org/software/emacs/emacs-paper.html#SEC29 - to total newbies, but I always have to tell them that the nicest feature of eev, called "eepitch", currently doesn't work well on their Windows machines... it is explained here: http://angg.twu.net/eev-intros/find-eev-quick-intro.html#6 http://angg.twu.net/eev-intros/find-eepitch-intro.html and there's a demo of it here: https://www.youtube.com/watch?v=86yiRG8YJD0&t=956s The problem is that downloading and installing Lua, Python, Bash or MinGW/MSYS2 on Windows is non-trivial and people have very short attention spans, so I sort of "don't have the time" to install any of those things on their machines - I mean, before they lose focus. Two days ago when I helped another newbie to install Emacs in her machine from this .zip, http://gnu.c3sl.ufpr.br/ftp/emacs/windows/emacs-26/emacs-26.3-x86_64.zip and I noticed that it comes with a python.exe, a tclsh.exe and a wish.exe. I didn't have time to test these .exes on her machine, and I don't have access to a W$ box, but earlier today I asked for help in the #emacs channel and a person there - Jeff Carlson - ran some sexps for me in his W$ laptop. His Emacs was installed using Chocolatey, so his paths may be a bit atypical, but this (find-file "C:/ProgramData/chocolatey/lib/Emacs/tools/emacs/bin/") opened the directory with python.exe, tclsh.exe, and wish.exe, and I expected that this (switch-to-buffer (make-comint "python.exe" "C:/ProgramData/chocolatey/lib/Emacs/tools/emacs/bin/python.exe")) would enter a Python REPL in comint... but no, we got these errors: Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] ImportError: No module named site Process python.exe exited abnormaly with code 1 2. Questions ============ 1. Where can I find the rationale for why there are a python.exe, a tclsh.exe, and a wish.exe in Emacs26 for Windows? 2. This is the variable that points to their directory, right? (describe-variable 'exec-directory) 3. How are these .exes meant to be called? What are the main functions and .el files that call them? Is `exec-directory' a part of the default path in Windows? 4. Is (switch-to-buffer (make-comint ... ...)) supposed to work with them? Can someone test that with python.exe, tclsh.exe, and wish.exe and check that we get working REPLs? Many, many thanks in advance =), Eduardo Ochs http://angg.twu.net/emacsconf2019.html http://angg.twu.net/#eev