From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 11:57:27 2017 Received: (at submit) by debbugs.gnu.org; 24 Sep 2017 15:57:27 +0000 Received: from localhost ([127.0.0.1]:56237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw9Ha-0004jb-Vr for submit@debbugs.gnu.org; Sun, 24 Sep 2017 11:57:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw9HZ-0004jN-SX for submit@debbugs.gnu.org; Sun, 24 Sep 2017 11:57:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw9HT-0001tb-4Y for submit@debbugs.gnu.org; Sun, 24 Sep 2017 11:57:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dw9HT-0001tJ-0R for submit@debbugs.gnu.org; Sun, 24 Sep 2017 11:57:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw9HR-0006xH-4K for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 11:57:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw9HP-0001s1-Uz for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 11:57:17 -0400 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:47432) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dw9HP-0001rW-Os for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 11:57:15 -0400 Received: by mail-qk0-x22b.google.com with SMTP id b82so4718685qkc.4 for ; Sun, 24 Sep 2017 08:57:14 -0700 (PDT) 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=R1k6SMENJgZutcay5PCwRrAkV4gFaP4rc48A9q+9tJ0=; b=V9z6o1ko+pTHkQKxQXIGasd3MBsUcmGgOXawLVmzM7XUcgvc/Tdxto3hGa0mVhhzH1 3S1+ZKvZAhDujgKrzPIIG5JmKy6VJP//GhTGeWCg1y8xc5R9Z+AcBohu2w4pNveD9KUU NnXUSJj3EH3yp2aTIpIVB1k1fGIJA7rkUXf7Pv/B5mxV64c0CwL3J7a3OeUp5QUs1Y3U os7FrUKmmp6MkrEHMWcuFQg/h/9imz2IMKcOIQX20TJ0DAAeJ+8FtPkg7PW9sza0s8hD l738rAqgrJ4zmSolZ6c52cHP7TK9e9XR5LBrO1NH0kgOeoMeFMnnxuvyHcNYu9B4BnPZ GO7A== 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=R1k6SMENJgZutcay5PCwRrAkV4gFaP4rc48A9q+9tJ0=; b=RXZw3nGGhoaz+1lfBL7xX6mCulCeNetCi6hXw+IgqRGCt3o/u2k1gtoy8NJNLcqArS FfP8juvClK4RaQhDQUuA07dqVdLxHRhBRkakc94vVCs9lmHYvIpqG/RW4U8hmiz3gkY4 WPyFqvm8wUdyIg/JDsz84CnkzjtNUTlB++R+QqNmPj7Upj3pQr4msoUVsUxWWi2MOrwN zsva2IswSM3gWocSWsGL6ynjtmIm1RuI8NllJAutPph0B0LPPIcFfvEa63bbG0VQs6IP /M1EXzBZ5E2DVV6s9UhXVgNi2/E8druzUtx+Cjx/3yVUJyr/0UIHE6z0a56QoykznMXk S4JA== X-Gm-Message-State: AHPjjUita0EPB0h7oARqTbHpY6WhERFzJeU3upagBd0v+TvYQsTDaE1z wA4yz4GmGoIeeW/95gN1H9yckdrcnOnxwc0hdBxrWw== X-Google-Smtp-Source: AOwi7QBWrBlhXTCcY5Ygas4iK17mvqu6A5nv8RhVFTB3TfAhMNQRomuQqFMJDhVHZxWOoji4xE18YBfggCvR7jn68w0= X-Received: by 10.55.23.65 with SMTP id i62mr7083611qkh.141.1506268633262; Sun, 24 Sep 2017 08:57:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 08:56:32 -0700 (PDT) From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 18:56:32 +0300 Message-ID: Subject: python.el: native completion setup failed To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a1147a052d26f8b0559f17e6e" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) --001a1147a052d26f8b0559f17e6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! I'm on Windows, using Python3 from Anaconda distrib. I've set option '(python-shell-interpreter "py") When doing M-x run-python I get Warning (python): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn=E2= =80=99t seem to support readline, yet =E2=80=98python-shell-completion-native-enable=E2=80=99 was t= and "py" is not part of the =E2=80=98python-shell-completion-native-disabled-interpreters= =E2=80=99 list. Native completions have been disabled locally. Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> python.el: native completion setup failed >>> It is expected that Python completion works out-of-the-box, without warnings. Ready to provide any additional info, Andrey Paramonov In GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.3.9600 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: RUS locale-coding-system: cp1252 Major mode: Special Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... You can run the command run-python with C-c C-p Shell native completion is disabled, using fallback Load-path shadows: None found. Features: (shadow sort mail-extr thingatpt emacsbug message dired rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils warnings compile tramp-cache python tramp-sh tramp tramp-compat auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map comint ring ansi-color finder-inf info tex-site package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 238322 10475) (symbols 56 24227 0) (miscs 48 129 150) (strings 32 31786 7274) (string-bytes 1 989742) (vectors 16 40361) (vector-slots 8 734537 6096) (floats 8 256 140) (intervals 56 426 0) (buffers 976 24)) --001a1147a052d26f8b0559f17e6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

I'm on Windows, u= sing Python3 from Anaconda distrib. I've set option
=C2=A0= 9;(python-shell-interpreter "py")

When d= oing
M-x run-python
I get
Warning (python): Y= our =E2=80=98python-shell-interpreter=E2=80=99 doesn=E2=80=99t seem to supp= ort readline, yet =E2=80=98python-shell-completion-native-enable=E2=80=99 w= as t and "py" is not part of the =E2=80=98python-shell-completion= -native-disabled-interpreters=E2=80=99 list.=C2=A0 Native completions have = been disabled locally.=C2=A0

Python 3.6.1 |Anacond= a 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD6= 4)] on win32
Type "help", "copyright", &q= uot;credits" or "license" for more information.
&g= t;>> python.el: native completion setup failed
>>>=

It is expected that Python completion works out-o= f-the-box, without warnings.

Ready to provide any = additional info,
Andrey Paramonov

In GNU= Emacs 25.3.1 (x86_64-w64-mingw32)
=C2=A0of 2017-09-17 built on L= APHROAIG
Windowing system distributor 'Microsoft Corp.', = version 6.3.9600
Configured using:
=C2=A0'configure= --without-dbus --without-compress-install 'CFLAGS=3D-O2
=C2= =A0-static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
=
TOOLKIT_SCROLL_BARS

Important settings:
=
=C2=A0 value of $LANG: RUS
=C2=A0 locale-coding-system: cp12= 52

Major mode: Special

Mi= nor modes in effect:
=C2=A0 shell-dirtrack-mode: t
=C2= =A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 = electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2= =A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 fil= e-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
= =C2=A0 font-lock-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t<= /div>
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent mess= ages:
For information about GNU Emacs and the GNU system, type C-= h C-a.
Making completion list...
You can run the comman= d =C2=A0 =C2=A0run-python =C2=A0 =C2=A0with C-c C-p
Shell native = completion is disabled, using fallback

Load-path s= hadows:
None found.

Features:
= (shadow sort mail-extr thingatpt emacsbug message dired rfc822 mml
mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-util= s
warnings compile tramp-cache python tramp-sh tramp tramp-compat=
auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util he= lp-fns
mail-prsvr password-cache tramp-loaddefs trampver ucs-norm= alize shell
pcomplete format-spec advice json map comint ring ans= i-color finder-inf
info tex-site package epg-config seq byte-opt = gv bytecomp byte-compile
cl-extra help-mode easymenu cconv cl-loa= ddefs pcase cl-lib time-date
mule-util tooltip eldoc electric uni= quify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp = disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset = image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp= -mode prog-mode register page
menu-bar rfn-eshadow timer select s= croll-bar mouse jit-lock font-lock
syntax facemenu font-core fram= e cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibeta= n thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek= romanian slovak czech european ethiopic indian
cyrillic chinese = charscript case-table epa-hook jka-cmpr-hook help
simple abbrev m= inibuffer cl-preloaded nadvice loaddefs button faces
cus-face mac= roexp files text-properties overlay sha1 md5 base64 format
env co= de-pages mule custom widget hashtable-print-readable backquote
w3= 2notify w32 multi-tty make-network-process emacs)

= Memory information:
((conses 16 238322 10475)
=C2=A0(sy= mbols 56 24227 0)
=C2=A0(miscs 48 129 150)
=C2=A0(strin= gs 32 31786 7274)
=C2=A0(string-bytes 1 989742)
=C2=A0(= vectors 16 40361)
=C2=A0(vector-slots 8 734537 6096)
= =C2=A0(floats 8 256 140)
=C2=A0(intervals 56 426 0)
=C2= =A0(buffers 976 24))

--001a1147a052d26f8b0559f17e6e-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 12:14:32 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 16:14:32 +0000 Received: from localhost ([127.0.0.1]:56261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw9Y8-0005AC-38 for submit@debbugs.gnu.org; Sun, 24 Sep 2017 12:14:32 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:44614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw9Y6-00059z-Ls for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 12:14:30 -0400 Received: by mail-io0-f178.google.com with SMTP id v36so7929410ioi.1 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 09:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=yttwY5Q7lBfE8SNfsJ1e908N2JUEsHXWzURZ8bpzetI=; b=YsSgi34JtBIsnrDbzg0U2179JHe+VcbzaQ2FtZ2oSiuvvvrOnQD/YgQ2R2R5sz9n6J 330Wd79np+IUAZEIen5vFJUeNfs0j1cQAE1EG1XJGm5nrwE/XL301rJjCjK9CqjjSypg AR28NyuUt0VccPwHvmi4RL042Etvt705SjfNXWCQLwJb8wcQEN+hVpA8eN0HakLo+tS0 sFlJz6tpSWh89iO5oz/X2/AA8fYvx0qjc8i4v9C1C6lRMrmC0Zk2U4uYQxSRxpcyJ4ja 0tasMAqhlpqR/TCA8Lw4zMKIA0NddFBNu/qFvxQfYaHYA9BhVqfF7ZV03Eqs8lU1NWgW nQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=yttwY5Q7lBfE8SNfsJ1e908N2JUEsHXWzURZ8bpzetI=; b=XTCicSsGpMvpMY7Z9u2LCDwfJN9DCpvJEgFmRKzHOBXmbmk3a/aMLtRBiR6B7gFs6S k10o0itCMBmXhl7ykA2vHPhOXprfqEyZi/c+croI4y5YJ1MK0yB9MfNa7n/C+/RQqkEF HmEH2Q4sKS/I4UybQ8rX1gcqUT6NHWBSgLYovWpMqLUVN1Aw5Y6v8cU9afSS3A909jF9 ltxdcoS7QsioPh0yGQQfkDzoT2yax13PI9KJuwiMfWj28RBW3yO/jW08oSa1lJd+tdYi mqatSc0CWXBi8X3k5PFjzHcOBBzzrq5PthdflYWTTn7lIyoXY3RAZLmWXQXLVjlDWNvg bRPg== X-Gm-Message-State: AHPjjUhgmwwd8yueN/aGoCQlA0v8XWCyxCnQQIfW5Kekw9W5iAF2z41B wEFL6U1OUcaKKormyhLgZCairg== X-Google-Smtp-Source: AOwi7QDq63XrI+VmFRgOluVLiAAMLkMzM2aj5AT3bK1PTl4MARvbi7N5ycH8qGexQT0wxpYqf+FB/A== X-Received: by 10.107.137.213 with SMTP id t82mr6942479ioi.289.1506269665062; Sun, 24 Sep 2017 09:14:25 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k133sm2444314itd.0.2017.09.24.09.14.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 09:14:24 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: Date: Sun, 24 Sep 2017 12:14:23 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 18:56:32 +0300") Message-ID: <87lgl4m5uo.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > Hello! > > I'm on Windows, using Python3 from Anaconda distrib. I've set option > =C2=A0'(python-shell-interpreter "py") > > When doing > M-x run-python > I get > Warning (python): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn= =E2=80=99t seem to > support readline, yet =E2=80=98python-shell-completion-native-enable=E2= =80=99 was t > and "py" is not part of the > =E2=80=98python-shell-completion-native-disabled-interpreters=E2=80=99 li= st.=C2=A0 Native > completions have been disabled locally.=C2=A0 > > Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, > 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more > information. >>>> python.el: native completion setup failed >>>> > > It is expected that Python completion works out-of-the-box, without > warnings. Seems to be impossible, unfortunately. Does this commentary from python.el help? ;; If your Python installation lacks readline (like CPython for ;; Windows), installing pyreadline (URL ;; `http://ipython.org/pyreadline.html') should suffice. To ;; troubleshoot why you are not getting any completions, you can try the ;; following in your Python shell: ;; >>> import readline, rlcompleter ;; If you see an error, then you need to either install pyreadline or ;; setup custom code that avoids that dependency. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 12:57:28 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 16:57:28 +0000 Received: from localhost ([127.0.0.1]:56318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwADf-0006A1-Ti for submit@debbugs.gnu.org; Sun, 24 Sep 2017 12:57:28 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:56182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwADd-00069o-VE for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 12:57:26 -0400 Received: by mail-qk0-f172.google.com with SMTP id q8so4733430qkl.12 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 09:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h+qaUcjBW2I1DYVm54VYtzC3jlz/+zNoOpY86ncMYf4=; b=aqJBiGmwGR93bUFszxedXSD0XeYRvyd7OSzeIpKscSnqCE73WrckGjLa7Jk96RGUDi 5xcj0kuYEh1URUmtqMlwZfvwm1JGU1ZkBNvnYYqh6YlIpF5Mx0rFvYwl+kOzK/oRGhza ee6DavbgTL9T8rozs8V+DQGBfxJ/CzskSyj6A7IzIHBt4gsq8C0e8ColSkmwDOsCr7aG XATHSPu6n7CWaIorL5pWkAom1e1EnUSHRS4GAjg7JD7w86056fGHaxKsJJUEZ6Qjd//l XSGvyCkUj2qkDznA7GQyi2GdKjLxT+fhihaibPim+1yva0bRrZY9Q4/z8D7wUsFfGImm d6lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h+qaUcjBW2I1DYVm54VYtzC3jlz/+zNoOpY86ncMYf4=; b=Kk8i9n3Z4f3QLsjNSmoafjIJg4DYOU1e0jlPVQJCdqBGCS80oFTO97lX9jdYxf1a6u WlCznHz7VcYOFeZXV/M7xTjAFOQFLyU4gXuLJb0Fct5yIhXcQFTsTNlI1YMZMPJeh1my rRSuWfeDA34a+XEtZvAA8hPsWoCXKO+qdXqLQ9IrmA4+hcqNFDwNqOrvDn/ovxeh93QZ K1g4unDNddP+UL0eNMm90Rc1w9eNJUgQQKM4eH1iHoacB2UbN17a8i1IFJRePEpl19b3 +CvhCy4D0UEvwx8gSCIP7S7CbDK/9oxRvozxxiwlSTNJVElDcmjYFED6cIg2e74XzoNA SWng== X-Gm-Message-State: AHPjjUjWSh7Fhj1fC7ecJK31X3G7JUTXuacQc6YGxWQI9sNhQ/4Eiu5b AQ3KUtGNnkQSS89BQAMUnvT2FaKdX594DHBh5aY= X-Google-Smtp-Source: AOwi7QBdUGQdlozwrtjZXhulT/S6KqWpSGcmnHJ0zvTJwNnDOTNNuURU+8pydTqf5bfz7dm/EdjZxJoeksaGy9uVc4M= X-Received: by 10.55.203.210 with SMTP id u79mr6613147qkl.189.1506272240342; Sun, 24 Sep 2017 09:57:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 09:56:39 -0700 (PDT) In-Reply-To: <87lgl4m5uo.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 19:56:39 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a113c5f5ed223ba0559f2550e" X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.8 (--) --001a113c5f5ed223ba0559f2550e Content-Type: text/plain; charset="UTF-8" Hi Noam, and thank you for a quick reply! 2017-09-24 19:14 GMT+03:00 Noam Postavsky : > > It is expected that Python completion works out-of-the-box, without > > warnings. > > Seems to be impossible, unfortunately. Does this commentary from > python.el help? > > ;; If your Python installation lacks readline (like CPython for > ;; Windows), installing pyreadline (URL > ;; `http://ipython.org/pyreadline.html') should suffice. To > ;; troubleshoot why you are not getting any completions, you can try the > ;; following in your Python shell: > ;; >>> import readline, rlcompleter > > ;; If you see an error, then you need to either install pyreadline or > ;; setup custom code that avoids that dependency. > It didn't help, unfortunately: I was indeed missing pyreadline, but installing it from conda repo made no difference :-( Neither did using "-i -u" as interactive Python arg. I vaguely remember this working with older Pythons -- what could probably change? Best wishes, Andrey Paramonov --001a113c5f5ed223ba0559f2550e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Noam,

and thank you for a quick repl= y!

2017-09-24 = 19:14 GMT+03:00 Noam Postavsky <npostavs@users.sourceforge.ne= t>:
> It is expected tha= t Python completion works out-of-the-box, without
> warnings.

Seems to be impossible, unfortunately.=C2=A0 Does this commentary from
python.el help?

;; If your Python installation lacks readline (like CPython for
;; Windows), installing pyreadline (URL
;; `http://ipython.org/pyreadline.html') should suffi= ce.=C2=A0 To
;; troubleshoot why you are not getting any completions, you can try the ;; following in your Python shell:

;; >>> import readline, rlcompleter

;; If you see an error, then you need to either install pyreadline or
;; setup custom code that avoids that dependency.

=
It didn't help, unfortunately: I was indeed missing pyreadli= ne, but installing it from conda repo made no difference :-(
Neit= her did using "-i -u" as interactive Python arg.

I vaguely remember this working with older Pythons -- what could p= robably change?

Best wishes,
Andrey Para= monov

--001a113c5f5ed223ba0559f2550e-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 13:51:27 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 17:51:27 +0000 Received: from localhost ([127.0.0.1]:56418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwB3v-0007YV-Dv for submit@debbugs.gnu.org; Sun, 24 Sep 2017 13:51:27 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:45625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwB3u-0007YH-9W for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 13:51:26 -0400 Received: by mail-it0-f41.google.com with SMTP id x15so5079367itb.0 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 10:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=hG5EMXe3Liq6tCk2gLRAJuU9CG0EmJZ7UmVSTmp07vw=; b=DVAIcvtC0MeZCGNrBtmUsDSvOdKxxygskbI7S22i/dKXQruo+0m/Kq3NmfOBRkkLwg 2amOsHuxvwiAf7xDcX+xV4RMnsq6bkPsDSev6sIN/cUf888XDWhOSLsknlWzTgY22YmA LmEKbMCi+FnnnBJN62TH5f0QBlWjRdkT18K+fCrkHCCGyitjNoSQFQXpiRsI5tB1lrZw Mbx6/xyivCBT1UVCuo5ppVgicjw8GIv5Rrt7lrU5bvrkD2yJt35NLpHBaoDhDuu4RN6z C3bXCK/AD8KEqyIaxyvBplMZPVNQGxjkS31AM6aau9cTD9APztphRGsYHW212sb0FMXX nwug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=hG5EMXe3Liq6tCk2gLRAJuU9CG0EmJZ7UmVSTmp07vw=; b=Ta8o5MF0WrzwwRKWFa0v8IQpnUpgDZc/qRnanPJaqoRy4R2MtoX+pr65BRc+BvOPey ib+7HVM5aCGCU4jGMGQpIalMfyvYJsrVRSQ1z0M6ymzqlZtBnYECXYSpvz0+RYq3WVp3 ZOJRWtCftsiyxk2U0Tuq5ErJYAVC8SyOYyhdjhzwUMYqqQOJlwdA7AvjjDVhZYxNLJ5b W5vNXyQgAQGNUx5pQTgQriXU5RfjUoiOr5TFQNR8ZRmhqPR3KdDmWSNR/zyuRwRyNtk/ uVFRqAyGciBu2rDjfBInQivQrQXB45ZXTboHweE8lWAhbEwZnYifMWMZWgetwcfk8LnB xuFg== X-Gm-Message-State: AHPjjUjwDyVsFSrr6pxNicqDwbmRVb1BQpX7UOhUZm3ecnP8gsUco/Xm naVc9pBBs8LY4eNBPjZ/fx921g== X-Google-Smtp-Source: AOwi7QCLhR3Fiacj8DpN0AXjSYKNsNOkb3U200WYZvQmsbfvgc24EuiJXM0AXFNDex6CsheQmUW6/Q== X-Received: by 10.36.120.142 with SMTP id p136mr14886250itc.55.1506275480399; Sun, 24 Sep 2017 10:51:20 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id h20sm1208106iob.0.2017.09.24.10.51.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 10:51:19 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 13:51:19 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 19:56:39 +0300") Message-ID: <87a81km1d4.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.7 (/) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > It didn't help, unfortunately: I was indeed missing pyreadline, but > installing it from conda repo made no difference :-( > Neither did using "-i -u" as interactive Python arg. > > I vaguely remember this working with older Pythons -- what could > probably change? Hmm, can you try running the python code from python-shell-completion-native-setup manually from a prompt and see what comes out? (or where it goes wrong) def __PYTHON_EL_native_completion_setup(): try: import readline try: import __builtin__ except ImportError: # Python 3 import builtins as __builtin__ builtins =3D dir(__builtin__) is_ipython =3D ('__IPYTHON__' in builtins or '__IPYTHON__active' in builtins) class __PYTHON_EL_Completer: '''Completer wrapper that prints candidates to stdout. It wraps an existing completer function and changes its behavio= r so that the user input is unchanged and real candidates are printe= d to stdout. Returned candidates are '0__dummy_completion__' and '1__dummy_completion__' in that order ('0__dummy_completion__' = is returned repeatedly until all possible candidates are consumed). The real candidates are printed to stdout so that they can be easily retrieved through comint output redirect trickery. ''' PYTHON_EL_WRAPPED =3D True def __init__(self, completer): self.completer =3D completer self.last_completion =3D None self.print_mode =3D True def __call__(self, text, state): if state =3D=3D 0: # Set the first dummy completion. self.last_completion =3D None completion =3D '0__dummy_completion__' else: completion =3D self.completer(text, state - 1) if not completion: if self.last_completion !=3D '1__dummy_completion__': # When no more completions are available, returning= a # dummy with non-sharing prefix allow ensuring outp= ut # while preventing changes to current input. # Coincidentally it's also the end of output. completion =3D '1__dummy_completion__' elif completion.endswith('('): # Remove parens on callables as it breaks completion on # arguments (e.g. str(Ari)). completion =3D completion[:-1] self.last_completion =3D completion if completion in ( '0__dummy_completion__', '1__dummy_completion__'): return completion elif completion: # For every non-dummy completion, return a repeated dum= my # one and print the real candidate so it can be retriev= ed # by comint output filters. if self.print_mode: print (completion) return '0__dummy_completion__' else: return completion else: return completion completer =3D readline.get_completer() if not completer: # Used as last resort to avoid breaking customizations. import rlcompleter completer =3D readline.get_completer() if completer and not getattr(completer, 'PYTHON_EL_WRAPPED', False): # Wrap the existing completer function only once. new_completer =3D __PYTHON_EL_Completer(completer) if not is_ipython: readline.set_completer(new_completer) else: # Try both initializations to cope with all IPython version= s. # This works fine for IPython 3.x but not for earlier: readline.set_completer(new_completer) # IPython<3 hacks readline such that `readline.set_complete= r` # won't work. This workaround injects the new completer # function into the existing instance directly: instance =3D getattr(completer, 'im_self', completer.__self= __) instance.rlcomplete =3D new_completer if readline.__doc__ and 'libedit' in readline.__doc__: readline.parse_and_bind('bind ^I rl_complete') else: readline.parse_and_bind('tab: complete') # Require just one tab to send output. readline.parse_and_bind('set show-all-if-ambiguous on') print ('python.el: native completion setup loaded') except: print ('python.el: native completion setup failed') __PYTHON_EL_native_completion_setup() From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 14:03:41 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 18:03:41 +0000 Received: from localhost ([127.0.0.1]:56428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBFl-0007ql-J9 for submit@debbugs.gnu.org; Sun, 24 Sep 2017 14:03:41 -0400 Received: from mail-qt0-f182.google.com ([209.85.216.182]:50489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBFj-0007qZ-Rr for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 14:03:40 -0400 Received: by mail-qt0-f182.google.com with SMTP id f15so5008377qtf.7 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 11:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZfRqQkRpYabRW+HjTyYKiL8oDZ5iiFr8sP4GYJizvaE=; b=XxzytdnPzwGTiSvCiPLFe10Cx6qkMVXW2doKZnzYIqVoWBtrEdD6c1Rf/EyW8gU4UC KwwkQXul8bePxZytvr+fSFUJJ7Uvpd+fyH1t91q9ouaoKaWBzt49xuO5oYtkIO6fmmtI 6c9gi15d/ZeKtbQZtQXPSSg/jOUe4y8ucvHsPrxHCfZVhv0mxum5j7FF/jlIuQ4O8vSI CEUITk6VEBhjXpkzpInioH/jR4caAYoviMYcemeC0y3r+V59aT18goLLwKbVwB7VxB73 HzjxiCQl8y2AL/oeCJyP4RVRz3Q1o++nv5ArjR7cV5vy5aIejkKQvSe97mwTaLYvgmgP oj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZfRqQkRpYabRW+HjTyYKiL8oDZ5iiFr8sP4GYJizvaE=; b=lkL3zry3CmKn8DMEzM3rFVkaKCxGQT0ybBx3JYwuTV3Vj6u4AHBLw8PsBlIKjvAvAM epV9QbWLvla7KZr0L7IihWZMPEAd5D2MOuHl8cH5dEq5P01KCwwm7GCUajEZCZhSsbYr jb9h0o6xIN442EGpbabMTbRNbOn9zKxWQxc/7frilmTkGALZSTUVO/FdlpDfifpOh0Ix 5brBR8na9w4Pzwvj6oKmZdHrFH1ZHK2KVF4f5ylBQiI8o+X8vHV4FQt3P0xYbIP8plDG lw1akBvCgGifbytiFanpBFe47pAvJhh5xbF2WOlQm6mXeSKvx8/7V3HoXpjjql0dLv1I Q6Eg== X-Gm-Message-State: AHPjjUihMF7Vr9M1S/GOLbqFWfIagyTl+2ehJWOBl4XEhH99d9cxMLOy G9CXyqZOxesxdkCkfkSZxJ4/Zmbei8zipqkcu2E= X-Google-Smtp-Source: AOwi7QCen7syj/Bv73G0J+BS//sU/QidwTaSuuyTTBiJNaAdbOPVmnb7nM9/qm70KW9APsL/TrhNQawZl/cza2QvDz8= X-Received: by 10.200.51.69 with SMTP id u5mr8075290qta.204.1506276214321; Sun, 24 Sep 2017 11:03:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 11:02:53 -0700 (PDT) In-Reply-To: <87a81km1d4.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 21:02:53 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a11434264b0366f0559f3422e" X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.2 (/) --001a11434264b0366f0559f3422e Content-Type: text/plain; charset="UTF-8" Hi Noam! 2017-09-24 20:51 GMT+03:00 Noam Postavsky : > > It didn't help, unfortunately: I was indeed missing pyreadline, but > > installing it from conda repo made no difference :-( > > Neither did using "-i -u" as interactive Python arg. > > > > I vaguely remember this working with older Pythons -- what could > > probably change? > > Hmm, can you try running the python code from > python-shell-completion-native-setup manually from a prompt and see what > comes out? (or where it goes wrong) > It is too tiresome to input it one-by-one line! When I invoke >py -i t.py where t.py contains the code you listed, all is silently Ok. Should I take time and enter it line-by-line, interactively -- or the problem is likely elsewhere? Best wishes, Andrey Paramonov --001a11434264b0366f0559f3422e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Noam!

2017-09-24 20:51 GMT+03:00 Noam Postavsky <npostavs@users.sourceforge.net>:
> It didn't help, unfortunately: I was indee= d missing pyreadline, but
> installing it from conda repo made no difference :-(
> Neither did using "-i -u" as interactive Python arg.
>
> I vaguely remember this working with older Pythons -- what could
> probably change?

Hmm, can you try running the python code from
python-shell-completion-native-setup manually from a prompt and see wh= at
comes out? (or where it goes wrong)

It = is too tiresome to input it one-by-one line!
When I invoke
<= div>>py -i t.py
where t.py contains the code you listed, all i= s silently Ok.
Should I take time and enter it line-by-line, inte= ractively -- or the problem is likely elsewhere?

B= est wishes,
Andrey Paramonov

--001a11434264b0366f0559f3422e-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 14:09:55 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 18:09:55 +0000 Received: from localhost ([127.0.0.1]:56438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBLn-0007ze-IL for submit@debbugs.gnu.org; Sun, 24 Sep 2017 14:09:55 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:54086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBLl-0007zR-S1 for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 14:09:54 -0400 Received: by mail-it0-f52.google.com with SMTP id 85so4912972ith.2 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 11:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=D/6kqJwaWCyEvPLBHYbuEMfUaPLUvA4FFIypo1JHdks=; b=XZnh/x/QAVc+eqpFEpUgc0wtqkEHTTs1znKMKv0DxcpePCvNbEROAbSvauffFQeZ6O /V70h8p8Fa+5qsM8VqWkJlOGdtVejYNSsIAwXVKcuOjvmTMRONuZo5bi7+Zp11UlETkf Iad3Y9FRUblyMQc1vOE2IyaE9pWvGSEAv056vRF3sEhUCDo4hWig033qwZQnTGay1+XC ZlVgac6vxnDkXoTd2i1OZ2keIxzYOOl64hd3uTk3i4IUF8wAdrlk6vj++8JwZVMD/NfA nnSRt+yw5wTbdpViDssE6r4t/q3kxWcuLTh9QeClTiv/HXoBp/jLvNmVMFxowZJDNtXr tl7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=D/6kqJwaWCyEvPLBHYbuEMfUaPLUvA4FFIypo1JHdks=; b=aMka72NqHtBXDgNSEkgz9xnHZE+h2dKCdo8rQA0AD04H5rOJ5/6WjN1pjHlJp6H1x9 EdQUJPGQiFRXbpJ9TNvC2DWEnqqngH4fAPZXp98K7e9SsyKqsxNTvh/Nxl0dFh11BOuX tKxZkrIwlpi0yC0znPjNJGvDVe9DQiPb7RY+PNR5ULQT0x5CH2iZQaf01jEpXRHkkf47 jHtcLfg1rdsS9+Jv1xdbhUBFqF1gkO88h5YJ7rhsLHxCSESL0hlAZlPaCrD6gMQyCZj+ csmM9XfMds5mj+6lVguS2HO8Eb6hoXJ6pZxJI8nNgDkp50FmLQ9iFk401oVk5l6sezP0 R46Q== X-Gm-Message-State: AHPjjUjdb9ALyxmHyONlE/CpXQ/IxS33qTSOiliw8HSbFu/eahk8tLf9 +ZpozxBm95MqTUxsW0MxA+Zaow== X-Google-Smtp-Source: AOwi7QDLvbLPgNHBb2NPBZ7k6724UIpnQBcawHnx5bYJeUpUWRBa+K/pXBpPg+ElzVc5xMog/ViX9A== X-Received: by 10.36.107.21 with SMTP id v21mr13663129itc.43.1506276588273; Sun, 24 Sep 2017 11:09:48 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k128sm65308ith.26.2017.09.24.11.09.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 11:09:47 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 14:09:46 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 21:02:53 +0300") Message-ID: <877ewom0id.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.7 (/) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > When I invoke >>py -i t.py > where t.py contains the code you listed, all is silently Ok. Hmm, "silently"? You mean you don't get a 'python.el: native completion setup loaded' message? If you enter a partial function name afterwards, e.g. "ra" and then hit TAB, do you get the '0__dummy_completion__' etc output? > Should I take time and enter it line-by-line, interactively -- or the > problem is likely elsewhere? No, don't enter line-by-line, Emacs doesn't do that either (it writes to a temp file, then submits the temp file).=20 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 14:17:41 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 18:17:41 +0000 Received: from localhost ([127.0.0.1]:56450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBTJ-0008BX-B7 for submit@debbugs.gnu.org; Sun, 24 Sep 2017 14:17:41 -0400 Received: from mail-qt0-f174.google.com ([209.85.216.174]:55882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwBTH-0008BI-LG for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 14:17:39 -0400 Received: by mail-qt0-f174.google.com with SMTP id x54so5014630qth.12 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 11:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1JuurCM0zOyLODZ6Rcz8loFULLPT0G+LoDHqYPCSjZs=; b=q6MStbhZTPFJumyRkIOEdQUex+tTX8z6pW1Jfswk/kIZC7GvpETt1ZplKcRC5a6+9v ujz1YTBrF84f3eMO5G5ovM7cF5cjWv5E9pwMAqnbzY2x+r1zeyzDUsDm8jN34C1AADhj 6E0XBz0el7LRPH6lnE7LCzWktWnKikrDOUGTWPPFbLFLoKYQPnPHDRz2gEec8RS+HzhH 6H5R+YO3htjYmeclUk9NRMA+k/qQFyBjUvZ5RlFNgSyG2K/ZgJPo4SSjGAqU6jsXJaMJ 3WHRVilyfK0TMR0/AdQB3XCZwiZnS2DD5jbW+BX+bnNTbXyH32oEsA4dDrLboZdgq5/H kWPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1JuurCM0zOyLODZ6Rcz8loFULLPT0G+LoDHqYPCSjZs=; b=nTFEPW1fpoqs+MEREhIuekACRRjymS7zy/VnSdoi5Y6lhU4sLEepmIvKu9M1yit2Hg 79gSrwSphYWPwcRU9EZWWZkiwyuFY8hSt5wNERg+YJvRtQ42s9kxOPeSKJ/y4Zh1u2gv 9jPA7VqwUKfQmRKexsWm6vToR+YT1muOIRqMYhv6SkjccxFu6lM8mgpIYx2sGQzTXKJ8 6dIpBtty+k5J+iNHn8AtjT9hvwRKxucrmRcaDGAq7pWx4OBa91cMgHsbCDwV2+lihIIT XWnpilAPkkTdWsNviRv7yJcJC+W9fhvoEEtL/Vc/WwH+FIuOEluGUsjieeNNo7jgSMko ssAg== X-Gm-Message-State: AHPjjUjokbumN5l04ORxg2cm5wbbpVS8FOMGzhWBG89XdHcBwVhEBfor f1dBfOuiL/+PtlUFB/rIX7gtIaqY8YMBL9UNY2Q= X-Google-Smtp-Source: AOwi7QCFTMfCnZUAQG5+tHEy9RvHff5cA1Jc2SLd7HlX5BjkzIzw1Yv17cxQiEByE7HrYB+haheaa32L3HQNsdzeh0o= X-Received: by 10.237.37.11 with SMTP id v11mr7500980qtc.219.1506277054312; Sun, 24 Sep 2017 11:17:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 11:16:53 -0700 (PDT) In-Reply-To: <877ewom0id.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 21:16:53 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a113c3ea2c1736d0559f374e8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.0 (/) --001a113c3ea2c1736d0559f374e8 Content-Type: text/plain; charset="UTF-8" 2017-09-24 21:09 GMT+03:00 Noam Postavsky : > Hmm, "silently"? You mean you don't get a 'python.el: native completion > setup loaded' message? If you enter a partial function name afterwards, > e.g. "ra" and then hit TAB, do you get the '0__dummy_completion__' etc > output? > Ah, sorry for not being clear. I was meaning "no error". What I get is: python.el: native completion setup loaded >>> ra[Tab]raise range 0__dummy_completion__ 1__dummy_completion__ >>> ra I think it's as expected? Best wishes, Andrey Paramonov --001a113c3ea2c1736d0559f374e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-24 21:09 GMT+03:00 Noam Postavsky <npostavs@users.sourcef= orge.net>:
Hmm, "silently"?=C2=A0 You mean you don't get a 'pytho= n.el: native completion
setup loaded' message?=C2=A0 If you enter a partial function name after= wards,
e.g. "ra" and then hit TAB, do you get the '0__dummy_completi= on__' etc
output?

Ah, sorry for not being clear. = I was meaning "no error". What I get is:
python.el: nat= ive completion setup loaded
>>> ra[Tab]raise
range

0__dummy_completion__ 1__dummy_completion= __
>>> ra

I think it's as e= xpected?

Best wishes,
Andrey Paramonov

--001a113c3ea2c1736d0559f374e8-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 15:39:27 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 19:39:27 +0000 Received: from localhost ([127.0.0.1]:56502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwCkR-0001gX-Jw for submit@debbugs.gnu.org; Sun, 24 Sep 2017 15:39:27 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:48912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwCkQ-0001gK-1T for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 15:39:26 -0400 Received: by mail-io0-f176.google.com with SMTP id n69so8114996ioi.5 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 12:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=iCGC7Byv8JU7tKVtkzi2mvJbpSMj5/v/3RQyL1U6SG8=; b=TSnS7G5q9Igme0h6/jGrNGri/9ncK1Vs2eUXtuSFkeMevAFcbnCLyFwawjki/1a3yE 6sz7FxhE3HRNFrqiyoRncr+dO21619aZYw9Bwwt/2Bdis27VRoi/CFJWwqKf9IByavo5 R2rzBIHW1oSFvGLC+HrmdJ8Sqf02OUMSksxQ3hHo1uQ8zw9zjeVhv+HkOFdVZEBEiJ0U wIQmytVSFvbj03vanY1H+AEz4K8uXv8GdssT40zOwc+oEODm0WdcjC12zAyLWvkB2Nrd K3uNPK/FXAxLVp6iB3Xg7BuGrd6HMPWK54RXfJg1ZqYiD2maK706P69aYIaohGHGoses cw4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=iCGC7Byv8JU7tKVtkzi2mvJbpSMj5/v/3RQyL1U6SG8=; b=Ddv5czKBgbRF6URPpIiblCuInx30c3mleX3Za9Pw5kdKqmKE9f1F8I5xOz8eeJYHg/ sy8Xg3ordGhsteEU/d0v9mL2INuXw8++sCVPh/TF71ztChkcvR9YmMIxwy2Lea7lqS0J ot7SWx3NVAJz16JgaFFi1f454CrgZayspRl5qWtcLA4d3VETrtgCYTw0x+gjm1TShXZD FWCzHqMPEvUh7cbhYnRvAEJLsGiZuP4JOs+7ehVEI+rjF6xKvmE/aBIoTaCaO/wpkH3T gBu9Ys7p85D/PIsF23bWhxjbO5sN2tnBmrA/naedJH2nzpL4eI86jEypQSFzslzfl99C qOJw== X-Gm-Message-State: AHPjjUihcF/xdiBRd8DYVUN8RaeD/ivVK6pwEvVmM88xZF6nuF7zob7j l0Kd9ZezrpcOi9ay6rATCAwhqw== X-Google-Smtp-Source: AOwi7QAaBcAMis9927SrM1FjkDS2iq+CbLwxMtkE7NZfiAFCsGBZDfcvDl/8XNInZoa1TI1Ir3BO2A== X-Received: by 10.107.142.211 with SMTP id q202mr6842419iod.65.1506281960291; Sun, 24 Sep 2017 12:39:20 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id d189sm127266itg.32.2017.09.24.12.39.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 12:39:19 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 15:39:13 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 21:16:53 +0300") Message-ID: <874lrrnaxq.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > Ah, sorry for not being clear. I was meaning "no error". What I get > is: > python.el: native completion setup loaded >>>> ra[Tab]raise > range > > 0__dummy_completion__ 1__dummy_completion__ >>>> ra > > I think it's as expected? Right, that all looks fine, so the question is what goes wrong from the Emacs side. What do you get from evaluating this in Emacs: (call-process "py" nil '(t t) nil "-i" "t.py") Does it make any difference if you use python-shell-with-environment? (python-shell-with-environment (call-process "py" nil '(t t) nil "-i" "t.py")) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 15:58:29 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 19:58:29 +0000 Received: from localhost ([127.0.0.1]:56526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwD2r-000290-2w for submit@debbugs.gnu.org; Sun, 24 Sep 2017 15:58:29 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:48961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwD2p-00028k-PC for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 15:58:28 -0400 Received: by mail-qk0-f172.google.com with SMTP id a128so4971625qkc.5 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 12:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=M8EZG2E7LE+1BI2tz88l74DtxTBmusGvrFhf3hgXstw=; b=BOu9rphiTl9gBpnOkyLrCpG29GeS04eqnzqHfgBWPOm+k72AjxkXAkGEflOWPpM0dQ T/z+sBjHxK0/8xJr/SS8525coqPXUQIwTzvQlpRVtjJKgQxCp/45NDValvReD5HCclTh ZDlCuw3cdnm6mGuxi5tuU/ay5MEtrbFspPeGiqlt6F69ivFVUEJFvx2/za1Z5v/ibyvh FIFMeTisrECcjHKxBBd74jF2/CqiNTZ00F9XFwLbA9yC0nBVFZECkLKbMU7YnE2EuTbA WaJJaenjYzQf7qNDZ4eBRvAHUmhXdi+hbQ0x+PCjVMJchQSsvtPNsVKYOTtOd7hL4vh2 ATzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=M8EZG2E7LE+1BI2tz88l74DtxTBmusGvrFhf3hgXstw=; b=RmsfWHf0pp5Mu2PraonLrqhpgAF/99nSaL/ZJ/r/KuxqIEfG60DkEyngMeWYU3U66e yczb8CxP+qMmhYWq0uoOpabUWFgoqoRXfl9KpJnNHVKqZEFerhwPCyr7FlykmG/Z59e8 WZlTkXUffXAir/BTff8bjrsV1ULQfFVV0gKp7DwuFANp2v6a/MauLKtLQ8rfq1vMkoWd Tu9vbHs2zUKHuk80UYAjzXVKgyo8Ra2vAtEm1RofavUVNz9w62O+kAMqyd2Mldhcy78R eOqimRDCOGT7QVfFO3bNUJQHE/2gdJ/4CDuUoO+ycjtAnaPlNFfGgrGIOoUVD8cq/up/ VbJw== X-Gm-Message-State: AHPjjUhdP9WOxdxCc8lyFv1B0sqhPKp4sP5mfg6qBIPnFLG13yPzeVaS fnOql5F3TyF3ZR6AsPieUBIcukTHHxWlRdBWFrE= X-Google-Smtp-Source: AOwi7QCtnd3GwN/W1yioU6vw1lyfIkVuKs6EaHavRLlM7GINULCLycU5bDu2Bj/Vruhuyf3CJKhO0l66FZNw1WXrPwM= X-Received: by 10.55.203.210 with SMTP id u79mr7046022qkl.189.1506283102161; Sun, 24 Sep 2017 12:58:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 12:57:41 -0700 (PDT) In-Reply-To: <874lrrnaxq.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 22:57:41 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a113c5f5e3c50bc0559f4ddc6" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.3 (--) --001a113c5f5e3c50bc0559f4ddc6 Content-Type: text/plain; charset="UTF-8" 2017-09-24 22:39 GMT+03:00 Noam Postavsky : > Right, that all looks fine, so the question is what goes wrong from the > Emacs side. What do you get from evaluating this in Emacs: > > (call-process > "py" nil '(t t) nil > "-i" "t.py") > > Does it make any difference if you use python-shell-with-environment? > > (python-shell-with-environment > (call-process > "py" nil '(t t) nil > "-i" "t.py")) > Hmm, in both cases I get correct report (eval-region from *scratch* buffer): (python-shell-with-environment (call-process "py" nil '(t t) nil "-i" "t.py"))python.el: native completion setup loaded >>> But run-python still has completion not working :-( Best wishes, Andrey Paramonov --001a113c5f5e3c50bc0559f4ddc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-24 22:39 GMT+03:00 Noam Postavsky <npostavs@users.sourcef= orge.net>:
Right, that all looks fine, so the question is what goes wrong from the<= br> Emacs side.=C2=A0 What do you get from evaluating this in Emacs:

=C2=A0 =C2=A0 (call-process
=C2=A0 =C2=A0 =C2=A0"py" nil '(t t) nil
=C2=A0 =C2=A0 =C2=A0"-i" "t.py")

Does it make any difference if you use python-shell-with-environment?

=C2=A0 =C2=A0 (python-shell-with-environment
=C2=A0 =C2=A0 =C2=A0 (call-process
=C2=A0 =C2=A0 =C2=A0 =C2=A0"py" nil '(t t) nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0"-i" "t.py"))

Hmm, in both cases = I get correct report (eval-region from *scratch* buffer):
(python-shell-with-environment<= /div>
=C2=A0 =C2=A0 =C2=A0 (call-process
=C2=A0 =C2=A0 =C2=A0 =C2=A0"py" nil '= (t t) nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0"= -i" "t.py"))python.el: native completion setup loaded
<= div class=3D"gmail_extra">>>>=C2=A0

But run-python still has completion = not working :-(

Best wishes,
Andrey Paramonov

--001a113c5f5e3c50bc0559f4ddc6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 16:06:24 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 20:06:24 +0000 Received: from localhost ([127.0.0.1]:56533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDAV-0002LT-Sk for submit@debbugs.gnu.org; Sun, 24 Sep 2017 16:06:24 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:44258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDAU-0002LG-DP for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 16:06:22 -0400 Received: by mail-io0-f176.google.com with SMTP id v36so8152444ioi.1 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 13:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ZpfXkXQ4L2m+gCRgUfPp83ALU/OTw3DK4qHzwymej6c=; b=Nm+zri6CMMqNC60Pqksbmg9rGE5gZcwNUVutVhjvMWXqCsWCwvou+6jcNF2yHMsb0I Ij9bzqDB8M+nFIIoxyNG6Glwc7AmN8kc6ieKi0wmM5FdylHwM1/LJBgcp4J4cGM8QEHD rOFFSzxlDkmgIgIr60huV3cCr1XFC1aPKNJf1pSqHx2OM1MQw5T82TGp30ODkAJaNj/B IsIPuUIU4CJHNnMiE70V1E6mzJCKiY9nCcwuWcAS9ro/fOSAZGf65geSsaaCuXBcwxP1 l/5CGfmMY9XiOTkbEvBRWVfD1uAcPgOfAaJacVbxiMYY8aSxMT9wZNNKLl4PGESek/eC l4eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=ZpfXkXQ4L2m+gCRgUfPp83ALU/OTw3DK4qHzwymej6c=; b=mC4W8t6T9VFoHfkggv54NVXQ84sTrz28T2yIejYvQ/VY3/LianidUdqyBBnofwJElM ENX3teg107nNERsDghHfutCF6M64kw0q/n5T2iaQozow0h2K/BBl7u8D8rrt6nsnbw+f G3WuqbJm6Scmhl+HnEivRQqa8pC0L38MunXtt25f21drgHBbmTtCraXXt/JGPjMAbkwL lcLlxUWrUOVo0euv/A1gbC19FGQMDojO2woT+8qltXreepO5QLlshho1ZCMw9n6OXjm/ Jpts6SUlqkl0EIidxvVvjQO1yWJNvEDZ9vNzrJGfQQioAQ5BjJGDoit4Prmb0IiCXQbZ kxIw== X-Gm-Message-State: AHPjjUhqkIdV9U3szgXN7JHD65k63R4kIdpBGaYzpKZez0iZBdg7ghSv DZmH/qy5dkIHo8Mzt8rVLAP63Q== X-Google-Smtp-Source: AOwi7QBO1G443erzvOEKL1GOYblhGcXQ8xV/nrKxxsV2ysfR9q/X4nl0SYNNL1LZC0pACzgGZIoz4w== X-Received: by 10.107.139.215 with SMTP id n206mr7377145iod.155.1506283576884; Sun, 24 Sep 2017 13:06:16 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p124sm2989764ite.3.2017.09.24.13.06.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 13:06:16 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 16:06:15 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 22:57:41 +0300") Message-ID: <871smvn9oo.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > Hmm, in both cases I get correct report (eval-region from *scratch* > buffer): > (python-shell-with-environment > =C2=A0 =C2=A0 =C2=A0 (call-process > =C2=A0 =C2=A0 =C2=A0 =C2=A0"py" nil '(t t) nil > =C2=A0 =C2=A0 =C2=A0 =C2=A0"-i" "t.py"))python.el: native completion setu= p loaded >>>>=C2=A0 > > But run-python still has completion not working :-( Darn. What if you M-x run-python and then use C-c C-c in "t.py" to send it to the shell? From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 16:20:11 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 20:20:11 +0000 Received: from localhost ([127.0.0.1]:56548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDNr-0002fD-Hl for submit@debbugs.gnu.org; Sun, 24 Sep 2017 16:20:11 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:53001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDNp-0002f1-LH for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 16:20:10 -0400 Received: by mail-qk0-f179.google.com with SMTP id o77so4986847qke.9 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 13:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vU79SKNCkqZUPOO3HZie4Qs8V0csCcd/EXBgCFPrkQw=; b=oGbJQiApDBE7qpVu5iwKcapRx9c5wPJNPg2K0HY1nlajaZIGg6HptX0Wogt+XuQN0P NXq2IjDzrWuTN0WXCQ+1Hf4n0jpKRFuTcI+eVrP10lHD02Y78I/Mmn4AG+20Dg53jr8R RpzE8H7htEMTQpXZEYY6Q9TFY6N7C4ONIkEi9uvNvdL+AEQzcMy2uXft0G0FzfEg5xrv wCG9uQoGrC7CDveWljj6g0C2XKUxmWarYdiLs4oMtI6sy0C3vDSPlE/uZON9emkTGeYW RBnD+AxwmjFJ/UPwUm1POQ8C3dnj6eo+5pQ2YMxqCoTzMMMQHMr6XvsF9xXJBljKMrYr TRkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vU79SKNCkqZUPOO3HZie4Qs8V0csCcd/EXBgCFPrkQw=; b=HYgYWO6mQODNIk4Nm2jS++nY6DlxHr/ahI4Wtk+j+JWg438kLD48iQUfmBQvv/AZqB dNE7jxcwWttQ+7r4v0Bj2zRojjzROoucKlGmyU3xJ+Ogvrc808gPngeWYw0FfoWgBLCH 11YmHIW3SrdEHdCEBSii+GEmIwMXXmfYRllr2opmReEwz4Ll6YphvjxkwflaMNg8aZu3 DE9n8xfs5WauULmHGUmpvWuKeP2t5l9gKVlm5fDp6eT866+irhxKbuHDcEixGoX+VR3A tfH/9ZZvoZ/XG8u6ELHYHRtyxn42DCsJPsIl5itIUtlxDSPoiVyUmTu/nC3BBx/voMRo zZNQ== X-Gm-Message-State: AHPjjUjBoJfYPRRbvK2s21Sk887p4lXGTHq01gg3fC5h7lSn4bDFe1P1 /BuKusi/Is6xEWbTGv2TxmbLKofN5pCOPF2XaWc= X-Google-Smtp-Source: AOwi7QAXJlAwmiQkaQokanayaWxxKY8qQhjP5G5ZKeiqkViQGkI1vL1mqurSC+MkDM6mVgMeIhh2V1wTPAw+rsAjl8g= X-Received: by 10.55.10.77 with SMTP id 74mr7700318qkk.226.1506284404270; Sun, 24 Sep 2017 13:20:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 13:19:23 -0700 (PDT) In-Reply-To: <871smvn9oo.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 23:19:23 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a114c90a6d8ec460559f52a3b" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.0 (/) --001a114c90a6d8ec460559f52a3b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-09-24 23:06 GMT+03:00 Noam Postavsky : > Darn. What if you M-x run-python and then use C-c C-c in "t.py" to send > it to the shell? > Bad news: the message Warning (python): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn=E2= =80=99t seem to support readline, yet =E2=80=98python-shell-completion-native-enable=E2=80=99 was t= and "py" is not part of the =E2=80=98python-shell-completion-native-disabled-interpreters= =E2=80=99 list. Native completions have been disabled locally. still appears when I M-x run-python Good news: python shell buffer now displays >>> python.el: native completion setup loaded after I eval the contents of t.py. Actually, it displays the message upon loading, and completion does work. I must have believed the warning rather than checked, after install of pyreadline. Why the message appears? It tells that completion is disabled which is not true! Best wishes, Andrey Paramonov --001a114c90a6d8ec460559f52a3b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-24 23:06 GMT+03:00 Noam Postavsky <npostavs@users.sourcef= orge.net>:
Darn.=C2=A0 What if you M-x run-python and then use C-c C-c in "t.p= y" to send
it to the shell?

Bad news: the messa= ge
Warning (pyth= on): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn=E2=80=99t seem t= o support readline, yet =E2=80=98python-shell-completion-native-enable=E2= =80=99 was t and "py" is not part of the =E2=80=98python-shell-co= mpletion-native-disabled-interpreters=E2=80=99 list.=C2=A0 Native completio= ns have been disabled locally.=C2=A0
still appears when I M-x run= -python

Good news: python shell buffer now display= s
>>> python.el: native completion setup loaded
after I eval the contents of t.py. Actually, it displays the m= essage upon loading, and completion does work. I must have believed the war= ning rather than checked, after install of pyreadline.

=
Why the message appears? It tells that completion is disabled which is= not true!

Best wishes= ,
Andrey Paramonov

--001a114c90a6d8ec460559f52a3b-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 16:30:36 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 20:30:36 +0000 Received: from localhost ([127.0.0.1]:56564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDXu-0002vZ-VN for submit@debbugs.gnu.org; Sun, 24 Sep 2017 16:30:35 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:52258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDXt-0002vN-7Q for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 16:30:33 -0400 Received: by mail-it0-f52.google.com with SMTP id c195so5055487itb.1 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 13:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=7cBjbW/SZQBMStmHIoWtC5zQppU1AFiT2BeqiT4Lq08=; b=kuWUig/g5Rjt/MsxSccQ8yGJniIPZoRbhpcfH24jBGzd5hb6nXYVhmaXLwGMGJIP5s yW8ImfXHyw831YrvSseR4OVp6nXLRYlONBLig9xlbqW6U9/Wr49etnuEGAHpmvOM43za MYkiD1wktH5SyCCEvfHThutPyA/sCJTMAf/wCS6AFOgb0zV4tWQQUtHgkn+/11S6Ob40 KiYVjFG614pA9GEk2Mb7u+WdSFA0fRtumtZyBBHLId5DYotfaL1sdgf0kxfIvC0IWVmD RYkY/ctdSnXJbsgPTTkXowhsZq02mE6Q+EUuTOMb2VPpP6ncRmshXQC3+5s4RfrZAqFN b6FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=7cBjbW/SZQBMStmHIoWtC5zQppU1AFiT2BeqiT4Lq08=; b=k/vL0NjgFaDFuvGpvg1i+Kwr+4Tzu17lUkAJxqsqIgheDMqf1IS08/G52r85BRxjxP VD74WBS4ZDCwAViQ7n4b2/eEW3TBj5udMeOlyqHTZpdpSXZG+lQ4aJLsnE6YoIEtTQLK 4uARktqQb38zXucZrJHJVOMefeROnxUXVS9JNAf17f/DiZW9KxeWTR+9O/6EHwLxDsbv 5C3lQikmNi46QIMVBavMzQN7lqH6H9cPimY/iktliU7rFOoJos4SePfB1gdfRD91cZU8 V30+gioDLwwsqRFLOAv4AUT6mmB6tDF25h87nRjxgB5oUpheVCX4QfFOR6UFgrsg0ZH8 zZSQ== X-Gm-Message-State: AHPjjUhJL+O0ID679QizvxZ06bVMpvtMxcs4D8kASqrlAVNplNlK01jH x/NE/5x4oqk/9q5gNmmZ2Azasw== X-Google-Smtp-Source: AOwi7QCjXLT98UsiH7qgIf8Axkt53ulS5DYYN7JSQVdQ8Ll5BsCZJQwrAS00gjYZwWynmTKeEZbiPA== X-Received: by 10.36.179.79 with SMTP id z15mr15408219iti.26.1506285027474; Sun, 24 Sep 2017 13:30:27 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k76sm3048710ita.4.2017.09.24.13.30.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 13:30:26 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 16:30:26 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 23:19:23 +0300") Message-ID: <87y3p3ltzx.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.7 (/) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > Bad news: the message > Warning (python): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn= =E2=80=99t seem to > support readline, yet =E2=80=98python-shell-completion-native-enable=E2= =80=99 was t > and "py" is not part of the > =E2=80=98python-shell-completion-native-disabled-interpreters=E2=80=99 li= st.=C2=A0 Native > completions have been disabled locally.=C2=A0 > still appears when I M-x run-python > > Good news: python shell buffer now displays >>>> python.el: native completion setup loaded > after I eval the contents of t.py. Actually, it displays the message > upon loading, and completion does work. I must have believed the > warning rather than checked, after install of pyreadline. Can you clarify, if you just run M-x run-python without doing anything with "t.py" you see the "python.el: native completion setup loaded" or the "python.el: native completion setup failed" message? > Why the message appears? It tells that completion is disabled which > is not true! The "native" completion might still be disabled, and you're actually using the "fallback" method. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 16:34:54 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 20:34:54 +0000 Received: from localhost ([127.0.0.1]:56576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDc6-00031d-MX for submit@debbugs.gnu.org; Sun, 24 Sep 2017 16:34:54 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:52713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwDc5-00031R-7A for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 16:34:53 -0400 Received: by mail-qk0-f173.google.com with SMTP id o77so5001794qke.9 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 13:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=btMAVfQuuSjkvEuZUotAs6695C28hQENflvJ8MLu6kc=; b=atnoYnl8X3dIgaQtLubtlgM+jOJzqCN3R4VV7mx5+IY8n2jkoBnl/vpgN99hH2B2Y2 Y8HI/gDnAXeY5D3gIQrsd/+7BwCUIbexl4jIYu4F3pHR5Rn0Ell+q7NiCHDT1MDhf0HY f8y0+qSseBNO0A416875sLjKemmwP4TUvoax7y3aDrTRDDfLPPRhPEqVwX30KoJ37C/l +w8iqTiNVO5wXgktNh9GDCCfMLFaypEcg+dc9ibbFndidi6pD8TD/XW3ZUKH7wTx0QxO gKZoHP2/Zsw7o30JwMluVwfKj4OLcWNeTf/rvcGxnWXIVMGfIsA/wSqnuT7kEoJ7dcD7 ngrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=btMAVfQuuSjkvEuZUotAs6695C28hQENflvJ8MLu6kc=; b=mVMVEOPttPE0uXKJItc/7R1fBtWCbFKV5JLh0f92TSSztoDNYSfJa/qTMm8PFMzgXX dZQb3fyfRbkIlNzzMVCTQA+kMj6BvFBr7FqvaZ4vexUDcBRIH0vw7/ZV5SIwMZzN1b/m +siZXVaEpvJirWOoXAQlRw7DQKFxvIflMcTBdUsfl7BRl0S3HlqcDMiK5/mp725P7E8V zjdjmEm2EaSjjnO9sFqDZJgCHatyMYOG6RSTdk2zaUdHdbzVtUxFt4+EACT6fBsYKWVb pSo7i+Zr6sYfcW4Iil9wb2C2RzZb4b3qTuDBf3rdZdQOouI0bSlOZXhNoxbZ0jEQmARR h2hg== X-Gm-Message-State: AHPjjUjgoLO0eVHmTODnUupdYcm2sUOHGMci8vvDhy95e0ZmTobIhZH7 5RYDaXfE2g5SxDDJ2GZ7BKYEZi7fw3ECmMqsBzU= X-Google-Smtp-Source: AOwi7QCxMXM46/IlHnPUmllH6i5N9DkeLckMwp7h/Kr7wVd5nAlCwaXUCfdC5rsOukP61wa4WaYlmL+1uTpuGh9tjyg= X-Received: by 10.55.27.145 with SMTP id m17mr7182215qkh.243.1506285287763; Sun, 24 Sep 2017 13:34:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 13:34:07 -0700 (PDT) In-Reply-To: <87y3p3ltzx.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Sun, 24 Sep 2017 23:34:07 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a11444cce81f6140559f55fe1" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.0 (/) --001a11444cce81f6140559f55fe1 Content-Type: text/plain; charset="UTF-8" 2017-09-24 23:30 GMT+03:00 Noam Postavsky : > Can you clarify, if you just run M-x run-python without doing anything > with "t.py" you see the "python.el: native completion setup loaded" or > the "python.el: native completion setup failed" message? > I see now >>> python.el: native completion setup loaded > The "native" completion might still be disabled, and you're actually > using the "fallback" method. > That should be suboptimal -- otherwise why the warning? What could make the "native" completion fail? How to check if it's really the case? Best wishes, Andrey Paramonov --001a11444cce81f6140559f55fe1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-24 23:30 GMT+03:00 Noam Postavsky <npostavs@users.sourcef= orge.net>:
Can you clarify, if you just run M-x run-python without doing anyth= ing
with "t.py" you see the "python.el: native completion setup = loaded" or
the "python.el: native completion setup failed" message?

I see now
>>> python.el: nat= ive completion setup loaded=C2=A0
=C2=A0
The "native" completion might st= ill be disabled, and you're actually
using the "fallback" method.

That should be subo= ptimal -- otherwise why the warning?
What c= ould make the "native" completion fail? How to check if it's = really the case?

Best wishes,
Andrey Paramonov

--001a11444cce81f6140559f55fe1-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 17:00:38 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 21:00:38 +0000 Received: from localhost ([127.0.0.1]:56613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE10-0003dj-0h for submit@debbugs.gnu.org; Sun, 24 Sep 2017 17:00:38 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:45536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE0y-0003dW-FT for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 17:00:36 -0400 Received: by mail-io0-f182.google.com with SMTP id g32so8193467ioj.2 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 14:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=8YJWkeGVrmWfG1o+mElnjMvB7Sv2agd3XAU+clii+1Q=; b=ob7VGV3Hrj03a8rLbmXHfq2vOslNDd5mDHn9ltWR7YpeXgcMDOvmt7z458fE9OGRSI iL2ccIryeCkX7ipzbbX2o84duLeJ2dQUND9TFUi4vzcDh2erRwq9zVzdDqTARc/UshWy BhF8I5l9YXRzcs1QnSndUChpmOIHUlicav3QJtNQF5gos9jwpCRQ8RsLUqNkiOyNRq1Y jXgZKoGObi6hofqSft55O9aDzJO51yUUouDIRItddynN7ktv5QGa1imJu4LQWJhrsgAT bDtemzjuookn1AvVw76+dYZzqVu9+WZHOTp000tPpjuDX79YplXtRt08Z1c05w6vH2Zr EXmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=8YJWkeGVrmWfG1o+mElnjMvB7Sv2agd3XAU+clii+1Q=; b=sx8iRFGhjGAbIPMdbXTjBi6Yn8ypWVdnzOCtIiI13+KQfy1g9vLBa3ZjKa8eKaMH1d 2vcQZpQLHJpqa6q0MfqwnMS8QycTsVlY82bzYEcufCnu4M6C9/B1dFhwSTL+34Cl/E+Y go+vdGzfkyVloMdtXHpHLAWSlFrros+4+taNFjO9Z7Wm+IJVnptEBrystyit5feXrUXk VVLJmtIOdUeqHYBLlRt0DOKJHH0ONcvSHbIViHtV9MxFCtZTjXul5oSd2rX4fJxLoDCy x1HuxOCY0gRUQpm6hU4ExM2t5neIVEyiz2oXW3F20ycpRdfx1pOxDOiWBWb29WS5oinX tEdw== X-Gm-Message-State: AHPjjUg3fF5NYg6NkiuVRgCZOufeK1xGl5bhxQbNl6/qRdmIM+KenX/8 fZgRVKjJhAMNT88UB8bOvd11OA== X-Google-Smtp-Source: AOwi7QBbYgGuzWkRbRIJX/ZZHFcSh3YVxt613clWR7BV4sSCGniBzqPNy9c4OBzw/4RJB3gr4IiVbg== X-Received: by 10.107.176.70 with SMTP id z67mr7382425ioe.81.1506286830313; Sun, 24 Sep 2017 14:00:30 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id t70sm2169477ioi.80.2017.09.24.14.00.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 14:00:29 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 17:00:28 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Sun, 24 Sep 2017 23:34:07 +0300") Message-ID: <87tvzrlslv.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > That should be suboptimal -- otherwise why the warning? > What could make the "native" completion fail? Does M-: (python-shell-completion-native-try) RET in the *Python* buffer return nil? Perhaps try putting some `message' calls into python-shell-completion-native-get-completions? (Using the debugger is a bit tricky due to the timing of process communication.) Especially check the contents of the current inside the `when' block at the end: ;; Grab output until our dummy completion used as ;; output end marker is found. (when (python-shell-accept-process-output process python-shell-completion-native-output-timeout comint-redirect-finished-regexp) (re-search-backward "0__dummy_completion__" nil t) (cl-remove-duplicates (split-string (buffer-substring-no-properties (line-beginning-position) (point-min)) "[ \f\t\n\r\v()]+" t) :test #'string=3D)) > How to check if it's really the case? Try the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28051#8 and see if you suffer from that bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 17:09:38 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 21:09:38 +0000 Received: from localhost ([127.0.0.1]:56630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE9h-0003qa-DT for submit@debbugs.gnu.org; Sun, 24 Sep 2017 17:09:38 -0400 Received: from mail-qt0-f176.google.com ([209.85.216.176]:44231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE9g-0003qM-6B for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 17:09:36 -0400 Received: by mail-qt0-f176.google.com with SMTP id o13so5212956qtf.1 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 14:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JJ/lbRT6g8KcMV3n8dx/vCh+PqbxsLVjAIfxWmFiBdM=; b=ZURQvIcuItfLG+aqfmbEjNU1TtOkxTrdRXZ+I33zwcChcsqhdd0JyrsJGrznqoe3hV UlVku4ka67rLzT1WEH/bvhlm7IKXziGeOW7SDi7t8CW30xmfEDpW8GmK85F8Pt7Wwqoc u76fQwV2h8ycWdhuZEM8mQnjF4k3G9VHNjrIaUOFXi/prLlHUo2OVLYeI5yAbRh6DPLj u09mptnrFjY0o9MmkvTbPWDY1shQRB78wbLWSijpmrtRSUk4hjZH0HRvCVcLSylHcmF6 9Ue18XT8enfbCymC9eXpU+OoJSOumOpJY5PvpyuY2WSJlk1VDcrSLtqWCGwJzXEDFuel BnPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JJ/lbRT6g8KcMV3n8dx/vCh+PqbxsLVjAIfxWmFiBdM=; b=QtbGJEwL6o02zbUaC2JM13l1jZAkqbpmXyEic+iUMHet2i155dGTDzvKRntsgLjanm q48m6or10H9aOZW8v2GEBZDZ8ytw2CfR5shOu4nVhrqNtQffrXkrrxo7AvfwCGCHblhl GBiEqZrRAxEG6u28v5Q1zUvW8QgAbdrxlORuGlFgsPzOp06EBM8SIGMwPo9rReAYCuRR hdW2K06jbA+hsP/0olzBqmduFgmsev1S6o4KtkfyubMGcyMImpS367q7i+l9a8obS//A +eT8836cFjFIFrkv6OU0aHEeTu82x12aHgRjeMM0Ex0hpujlZq3QjAzFyyG4wZ59z576 iVyA== X-Gm-Message-State: AHPjjUhd04i0QkoKFcip/aEP7LktFgWdP9l9Sq8Nn4LGMe+pCacKkPbF MbsgHDLcGF9uaD0yjKXGccv7bgxopqZHjSunbt4= X-Google-Smtp-Source: AOwi7QAjJG/BnEJ4q3Rad+fVixfQCvZUX7dUL1FgzQPiEnvF9ZCxJxfaTYRuGgvE6HuXgpY4gEIADG857inQ67ffcoM= X-Received: by 10.200.35.186 with SMTP id q55mr8580836qtq.193.1506287370704; Sun, 24 Sep 2017 14:09:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 14:08:50 -0700 (PDT) In-Reply-To: <87tvzrlslv.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Mon, 25 Sep 2017 00:08:50 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="001a1140d2b8a91d580559f5dbc6" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.5 (/) --001a1140d2b8a91d580559f5dbc6 Content-Type: text/plain; charset="UTF-8" 2017-09-25 0:00 GMT+03:00 Noam Postavsky : > Does M-: (python-shell-completion-native-try) RET in the *Python* buffer > return nil? Yes it does! > Perhaps try putting some `message' calls into > python-shell-completion-native-get-completions? (Using the debugger is a > bit tricky due to the timing of process communication.) Especially > check the contents of the current inside the `when' block at the end: > > ;; Grab output until our dummy completion used as > ;; output end marker is found. > (when (python-shell-accept-process-output > process python-shell-completion-native-output-timeout > comint-redirect-finished-regexp) > (re-search-backward "0__dummy_completion__" nil t) > (cl-remove-duplicates > (split-string > (buffer-substring-no-properties > (line-beginning-position) (point-min)) > "[ \f\t\n\r\v()]+" t) > :test #'string=)) > Unfortunately my distrib doesn't seem to have the source el-files :-( > Try the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28051#8 > and see if you suffer from that bug. > Hm, the bug and the one mentioned inside describe bad behavior of Python2, but in my case it's the opposite :-/ Best wishes, Andrey Paramonov --001a1140d2b8a91d580559f5dbc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-25 0:00 GMT+03:00 Noam Postavsky <npostavs@users.sourcefo= rge.net>:
Does M-: (python-= shell-completion-native-try) RET in the *Python* buffer
return nil?

Yes it does!
=C2=A0<= /div>
Perhaps try putting some `message' = calls into
python-shell-completion-native-get-completions? (Using the debugger is= a
bit tricky due to the timing of process communication.)=C2=A0 Especially check the contents of the current inside the `when' block at the end:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Grab output until our d= ummy completion used as
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; output end marker is fo= und.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (when (python-shell-accept= -process-output
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0process python-shell-completion-native-output-timeout
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0comint-redirect-finished-regexp)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (re-search-backward= "0__dummy_completion__" nil t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cl-remove-duplicat= es
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(split-string=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (buffer-subs= tring-no-properties
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(line-= beginning-position) (point-min))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "[ \f\t= \n\r\v()]+" t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:test #'s= tring=3D))

Unfortunately my distrib doe= sn't seem to have the source el-files :-(
=C2=A0
Try the recipe in htt= ps://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28051#8
and see if you suffer from that bug.

Hm= , the bug and the one mentioned inside describe bad behavior of Python2, bu= t in my case it's the opposite :-/

Best wishes= ,
Andrey Paramonov

--001a1140d2b8a91d580559f5dbc6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 17:31:56 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 21:31:56 +0000 Received: from localhost ([127.0.0.1]:56655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwEVI-0004Oa-DL for submit@debbugs.gnu.org; Sun, 24 Sep 2017 17:31:56 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:51995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwEVH-0004OO-AY for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 17:31:55 -0400 Received: by mail-io0-f176.google.com with SMTP id l15so8203280iol.8 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 14:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dRrGNFAux75nHuuDPMq1vYIRhVsP9Si/fhLX0ukzrjw=; b=Pz1QiNlepPaAHdM1IZ+0hPvCS4E01AFzXURLR/mro18eusdteuBgxAwH6JU2rBPOIC t3CUIKRC+YGUv1l9vPGzEzQT9gndiwXonRCB0Ph5Cs7oM7rTtP9AYIPBZAsWZH1cRtGN 6bVQFrG6NXqKP0EwjLVHnax4s+JY8qRBXN6QTtwPPT7IM6E8ROsGCO5Yy0n7I0w/lrrD 8oGg33I/IlCa3Yvq3wX7JBFbc/wisDgLlkkBDtzZHLTZI6fGgipSTxfH6bnm8jEiI8sb uy6e69DF+xAVrtVuCPlahW6pLgzwpbZp5RqDkPNSo9ypAeyystUefR5YZhwk1LsCU+I0 hgTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=dRrGNFAux75nHuuDPMq1vYIRhVsP9Si/fhLX0ukzrjw=; b=aU6MP3noh6k7Ep94S6Q9+NHAPEQj0zFaoeJePUAdigDNvRkeUXENbyUCOv0zfeWquN tFC4bTrcg8banUIZQgCwAa21hEMKRot0f9h4P7IjN1+LU1XjSpCLu7xkwjm5iThqRJNv koyhIQ1aJFNIo7MLxgX68ZA+j+ElW7iJroP3Hoiho2omy6kVjtp5iQ8HvM6ZHoij/JI6 PolCvEaRzbQsE3fzRgi4wPsI/4oDDzgFis4FpHKq0KSX+BhDcPzxCUlQIbGvempx4A2U vSamO4T1y3wbGnjvwarPskfs7auyvn+KUvK2R4GtundW1YtvxiI84tn6dwvJFqOuTk1k xRcw== X-Gm-Message-State: AHPjjUjFcO3v4BNKnaNuoyNyNP3IFoao+jpJGkItezW10cGWglIaaAt5 CEzouAZ2aPtaSd8aAmJ6j5rweA== X-Google-Smtp-Source: AOwi7QCEYo3rdpCtnLglvoIX6YT3jGXh+ESpjnGbya/JkBzeLKXXmMVM3u/7JJO/LT3cPFxz04CiQg== X-Received: by 10.107.168.233 with SMTP id e102mr7103594ioj.42.1506288709677; Sun, 24 Sep 2017 14:31:49 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id b12sm2298201iob.6.2017.09.24.14.31.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 14:31:49 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> Date: Sun, 24 Sep 2017 17:31:48 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Mon, 25 Sep 2017 00:08:50 +0300") Message-ID: <87o9pzlr5n.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > Unfortunately my distrib doesn't seem to have the source el-files :-( You can find it here: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/= progmodes/python.el?h=3Demacs-25.3 Make sure to evaluate the changed source *after* you've loaded the builtin python.el. > > Try the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D > 28051#8 > and see if you suffer from that bug. > > > Hm, the bug and the one mentioned inside describe bad behavior of > Python2, but in my case it's the opposite :-/ Well really it describes the bad behaviour of the fallback completion. It just happens that Emacs 25 uses the fallback completion method with Python2 on Windows. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 17:38:26 2017 Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 21:38:27 +0000 Received: from localhost ([127.0.0.1]:56669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwEba-0004YG-Mx for submit@debbugs.gnu.org; Sun, 24 Sep 2017 17:38:26 -0400 Received: from mail-qt0-f178.google.com ([209.85.216.178]:53694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwEbY-0004Y2-EX for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 17:38:24 -0400 Received: by mail-qt0-f178.google.com with SMTP id 47so5231786qts.10 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 14:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PjlyhCasSWSU83VWZFkD1pidIKFgqJceBcnbw6fvlo0=; b=UO6Yf3yXeRdaxkXyOrAbcLgo4b7IN+GSMSP1NZJsX4YLU+6rzCfEO6bxGFDH+TUgUh oP5Xe2jvsXrGeezABnu9c0xDNCqQeu8HKcByszZZ/CyiJa22wi9dEn2Oo35lFk1jDuNA Sq2aVQrwsKYCdvcuEE8t0gklU1nDmgHme/q/xfWs9N6Qf5vrPVZh9D2Oq+UvQuajuuNR eYLX27aTCvX67d4VDey8xWrs8HHzij2TdGB7B3N8MkuEyvWXJ5tfavOLv0VO0/edB4ww 1GdLj9LrOyVtXf6r6FA746oIqc5HeQZaHK1DOEHlRIm6FAvMpVF1lxvwfhw46sKGCpj3 o91w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PjlyhCasSWSU83VWZFkD1pidIKFgqJceBcnbw6fvlo0=; b=FkqzninjFIeh1w/8XHQFgkYFD2IDSmlNkohceYEBfEA+7deEHkBPNzSJSWnVOLxbGC u/DNdo5NCutZrb6KO5hu5NoCKMGomjg0fKRGpF8S/VEiTP1wtM886gs6DXFfC2UXVDrl KJFwTh1wctkkkkRltpf9WwYCWgYkBV8C0vhBMCcAyZBFqT50lRu1pcYc3FvLGqMjd6s3 tdPWPxxrjxNMqDeXo0xB90m8glArw1Vl/LHjzmkVVxxQIckL1rtBAttuQprSLFaoROX2 LLWxZ+4NbrJNIBsQtZWxAt+nB9S4xrfu0sfxtr335rJFJgv9l85ngM4W0NEOYFh6qJXl 4rpA== X-Gm-Message-State: AHPjjUiffJTUb1Rai8ks1z85ELrMaooXn7IzC16dKtHHR7aBMF3dR1z4 mNmYUJnFPa+bS4TfnBNHNaWatddNZ20WHygJ/g0= X-Google-Smtp-Source: AOwi7QANGlbh67Ycg1I5ZD2zae5C9j/pdAvu5FKu4sM3yG8yF7OyrjSHqa0OHtsdkOz7P6tXL32o+y6BOTw/hsUMOI4= X-Received: by 10.237.59.221 with SMTP id s29mr8700331qte.27.1506289099068; Sun, 24 Sep 2017 14:38:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.88 with HTTP; Sun, 24 Sep 2017 14:37:38 -0700 (PDT) In-Reply-To: <87o9pzlr5n.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Date: Mon, 25 Sep 2017 00:37:38 +0300 Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: Noam Postavsky Content-Type: multipart/alternative; boundary="94eb2c192166ade41d0559f642fb" X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.2 (/) --94eb2c192166ade41d0559f642fb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-09-25 0:31 GMT+03:00 Noam Postavsky : > =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > > > Unfortunately my distrib doesn't seem to have the source el-files :-( > > You can find it here: http://git.savannah.gnu.org/ > cgit/emacs.git/tree/lisp/progmodes/python.el?h=3Demacs-25.3 > > Make sure to evaluate the changed source *after* you've loaded the > builtin python.el. > I'll try to find time to debug it. > > Try the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D > > 28051#8 > > and see if you suffer from that bug. > > > > Hm, the bug and the one mentioned inside describe bad behavior of > > Python2, but in my case it's the opposite :-/ > > Well really it describes the bad behaviour of the fallback completion. > It just happens that Emacs 25 uses the fallback completion method with > Python2 on Windows. > I do not use Python2 on Windows. Rather, I use Python3 on Windows. And it seems my completion is also "fallback" (which for me reads "suboptimal"). I'd prefer best ;-) Best wishes, Andrey Paramonov --94eb2c192166ade41d0559f642fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -09-25 0:31 GMT+03:00 Noam Postavsky <npostavs@users.sourcefo= rge.net>:
= =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 <cmr.pent@gmail= .com> writes:

> Unfortunately my distrib doesn't seem to have the source el-files = :-(

You can find it here: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/<= wbr>progmodes/python.el?h=3Demacs-25.3

Make sure to evaluate the changed source *after* you've loaded the
builtin python.el.

I'll try to find= time to debug it.
=C2=A0
>=C2=A0 =C2=A0 =C2=A0Try the recipe in https://de= bbugs.gnu.org/cgi/bugreport.cgi?bug=3D
>=C2=A0 =C2=A0 =C2=A028051#8
>=C2=A0 =C2=A0 =C2=A0and see if you suffer from that bug.
>
> Hm, the bug and the one mentioned inside describe bad behavior= of
> Python2, but in my case it's the opposite :-/

Well really it describes the bad behaviour of the fallback completio= n.
It just happens that Emacs 25 uses the fallback completion method with
Python2 on Windows.

I do not use Python= 2 on Windows. Rather, I use Python3 on Windows. And it seems my completion = is also "fallback" (which for me reads "suboptimal"). I= 'd prefer best ;-)

Best wishes,
Andr= ey Paramonov

--94eb2c192166ade41d0559f642fb-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 03 00:01:13 2017 Received: (at 28580) by debbugs.gnu.org; 3 Oct 2017 04:01:13 +0000 Received: from localhost ([127.0.0.1]:44915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzEOP-0008HL-IO for submit@debbugs.gnu.org; Tue, 03 Oct 2017 00:01:13 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:47278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzEOM-0008H5-2Z for 28580@debbugs.gnu.org; Tue, 03 Oct 2017 00:01:10 -0400 Received: by mail-it0-f50.google.com with SMTP id 85so10075001ith.2 for <28580@debbugs.gnu.org>; Mon, 02 Oct 2017 21:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=DxD5z8y/9Lh/cCcuEDojFjXWgxpFEo+oRA4jAvrT6Hc=; b=kFbYyFYrJ42YrtQfrKezqjE+SoS6Ick+NT5+uwwB64ArQJ9VMrOqlcIU65iJRQ/oZx vVsxHtQj0M6YgDLqzLSHpqH/eXE1xaFdMvej5Q4MU+hRFR+XKN2He75AJa52GNEYNG1O hXRu4+MPy4+mE2D7T7IXO72urLSJhxM9fPdZRo2J2jEYnnZuQrl8CRi4cJk04d9PWnlM G9xKbWwvkWkzBTdI1K2r6Jzgx99R9kKEiysGIkK6A6gOmJ5Hwb55/u9mNPBgIzb6j5gB FUHAvqvNooXUcVTcNXDDDNpssJRfdDXgptmNvrNkmw6o6q5V1sxLhly9d3E8I0ClTlL8 dzCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=DxD5z8y/9Lh/cCcuEDojFjXWgxpFEo+oRA4jAvrT6Hc=; b=QNsKYADPy+RQLkRU2FuOftKTMJBl1yX+8m4Iff2EK4AFoRdFr61obB78IVB3+e9z5+ bCOAX4eH44WavzxYUriRZBDTE1W1AD+yNWEM1stDNKrh9b93xEsnkIcIfgqgg7xsT23F kzBVOuKmOA0VxMwAT69vJ5haVAR9Qxn7D/DBfCKoowmigtzZeJMWimdXinxRBOv+7kQ+ STUWG10FHYAaxSKKLSsVP5DNCC410wULWz51B3nge0n5gKAxOWRjhbC3ARIEwzU5rDfQ 85Ve5yjWiPCCDue/4HGGStqX5X+tSEZyHhaFrvYhRKlVOCEcENynjZ2Dhx8IzKFKfTpA 1Upg== X-Gm-Message-State: AHPjjUjjLlBgccusxGZnyeXOTOSH61ulorVUOhVQnN06z4zXnNZSBqgl EYLYQyEwGq3lRtV6CcGldH6Xxw== X-Google-Smtp-Source: AOwi7QDCGz1BP7wyHOH0+qVeWbeYX4r4m7L9cADHfg4mEwYhki9If7XM1GNxHKGX0kMgVW7Pi2/7AA== X-Received: by 10.36.79.71 with SMTP id c68mr22073297itb.18.1507003264296; Mon, 02 Oct 2017 21:01:04 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k76sm5725663ita.4.2017.10.02.21.01.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Oct 2017 21:01:03 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> Date: Tue, 03 Oct 2017 00:01:02 -0400 In-Reply-To: (=?utf-8?B?ItCQ0L3QtNGA0LXQuSDQn9Cw0YDQsNC80L7QvdC+0LIiJ3M=?= message of "Mon, 25 Sep 2017 00:37:38 +0300") Message-ID: <873770ev7l.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -0.0 (/) I've pushed a change [1: b33808ce77] so that errors will be more helpful (at least for the case in the original report), e.g., when missing readline, you would now see something along the lines of: >>> python.el: native completion setup failed, : No module named readline [1: b33808ce77]: 2017-10-02 23:15:43 -0400 Give more helpful messages for python completion setup failures http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3Db33808ce77ef15c1f= 233790a2c93d9db4cc588ab> =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > 2017-09-25 0:31 GMT+03:00 Noam Postavsky < > npostavs@users.sourceforge.net>: > > You can find it here: http://git.savannah.gnu.org/cgit/emacs.git/ > tree/lisp/progmodes/python.el?h=3Demacs-25.3 >=20=20=20=20 > Make sure to evaluate the changed source *after* you've loaded > the > builtin python.el. > > I'll try to find time to debug it. Actually, I think this troubleshooting code I posted earlier would be helpful in your case as well: https://debbugs.gnu.org/cgi/bugreport.cgi?filename=3Dpy-native-completion.e= l;att=3D1;msg=3D35;bug=3D25753 Replace "python2" with the name of your python executable, and run via emacs -Q -l py-native-completion.el post the output found in the "*py native complete test*" buffer. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 15:41:05 2017 Received: (at 28580) by debbugs.gnu.org; 12 Oct 2017 19:41:05 +0000 Received: from localhost ([127.0.0.1]:36372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2jLs-0000XV-UX for submit@debbugs.gnu.org; Thu, 12 Oct 2017 15:41:05 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:54623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2jLr-0000Wk-0r for 28580@debbugs.gnu.org; Thu, 12 Oct 2017 15:41:03 -0400 Received: by mail-wm0-f46.google.com with SMTP id i124so16131448wmf.3 for <28580@debbugs.gnu.org>; Thu, 12 Oct 2017 12:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=q7hGAnfQcT4gEkQ5P9jykt242eDNglwngPuGjBRu9dU=; b=r1+n8gsfM0x5YnVMs+xZjnkESYvDBoRb5Jv80id0+jFcDA20KkRcIdBvTV+m2ZHGWH SdjEDYem++nHAxmb1QO+vJJFUa0ajWXXaD+fiMt9DdpR0fxGDJgUiRInIwm1tAWLw6p2 DnXFIuWzn+VdJupxINSVyPp2+w6+vWqVZBPhfkgVaMCtFO7PXw4j5ApXCxigCsb4n2TW FZsiz81fCN+yHJII7HStgh07kH9/K3YDI3YL5uZXUdA94JIgzn6TaEbWCI6vcm9gjVjz hnQElhbCH4jmjrVQePr9lglPelASeicACFnXypjAzJMEQ4xQQNwz0aaCTOmw8dxYZ3/q gplQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=q7hGAnfQcT4gEkQ5P9jykt242eDNglwngPuGjBRu9dU=; b=cVe8AeKxtd15R2Hm7GfFknAM2kgRid1yvNodFvDaWjmU4+ZfPbnqCfyN5WDm6NAROz AuDtOV6cwHRK2FoBdSUIbkeY44G6O+gflmP199Ofd1QK8GYrRjmgbf8OwV9RplOuq+wW F4K4Zm1HNuTRMYkoMyeElaTdxQ7LRqodTTZt9FzmgQhQc4MpDe0myfDtxSKAg04RnLva 16DecpnnesxHbFEO9I5uVxzX3mgyuT8cdfTAEw9ZQc7+Gj3BAnWZkpEqlakRETvSiVnm TxjK0kh1TAyNX7WnSWhjF7+Hh+Gact37UbAiZwUVQxEw7W2V+ojTB8JSocY9LU241OKz DoOA== X-Gm-Message-State: AMCzsaVU8bijGB+OScly36porM576CJY793VuQjNGHtua4vBuiZQOs+4 htu9XEHieXjhCkkO99YbYMpfI71gH+BbTOMsN7g= X-Google-Smtp-Source: AOwi7QCIGEPPF+mCjZ+IKelw7dkOeJ1YKuaoq+9hrIq1qZB1VQt9WLOOUSO1O166G+YnmuG1SxSYXpEcV+hhmjMSDkc= X-Received: by 10.223.176.199 with SMTP id j7mr3288285wra.58.1507837257342; Thu, 12 Oct 2017 12:40:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.146.193 with HTTP; Thu, 12 Oct 2017 12:40:56 -0700 (PDT) In-Reply-To: <873770ev7l.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> <873770ev7l.fsf@users.sourceforge.net> From: Noam Postavsky Date: Thu, 12 Oct 2017 15:40:56 -0400 X-Google-Sender-Auth: Km6kUEYMl-WaMe4T4XEwCkwVfIU Message-ID: Subject: Re: bug#28580: python.el: native completion setup failed To: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.7 (/) retitle 28580 [w32] python.el: native completion setup failed quit On Tue, Oct 3, 2017 at 12:01 AM, Noam Postavsky wrote: > Actually, I think this troubleshooting code I posted earlier would be > helpful in your case as well: > https://debbugs.gnu.org/cgi/bugreport.cgi?filename=py-native-completion.el;att=1;msg=35;bug=25753 > > Replace "python2" with the name of your python executable, and run via > > emacs -Q -l py-native-completion.el > > post the output found in the "*py native complete test*" buffer. I've now installed pyreadline on my Windows box. Unfortunately, as far as I can tell there is no way to make native completion work on Windows, readline simply won't work unless python is run from a console. So we should just disable it under windows to stop the annoying warning. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 23:28:51 2017 Received: (at 28580) by debbugs.gnu.org; 13 Oct 2017 03:28:51 +0000 Received: from localhost ([127.0.0.1]:36577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qeZ-0007mU-Jq for submit@debbugs.gnu.org; Thu, 12 Oct 2017 23:28:51 -0400 Received: from mail-it0-f45.google.com ([209.85.214.45]:43740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qeY-0007mC-4L; Thu, 12 Oct 2017 23:28:50 -0400 Received: by mail-it0-f45.google.com with SMTP id k70so14709561itk.0; Thu, 12 Oct 2017 20:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=SK/vJzQFDHi136EJLUTi94oqUKUr6m2i2rEfCe/CMTc=; b=OGYlZZsGHZl7Fi47Ht/6F1E515SYFjPEzN0HuzMYViAsQc22uLA4Ux7bZKZs5YTear UVEx3uQaangv3j9MX3Z47Ncv839TWDpcAtx2dR2sfJw18Zz/9bDAVzbX5Sqy1cKM5lbk aOvs0nrKS29BY7Dk0K1YevW7X+ltD69HSkIMwIsW+VLCQj+ZriDddNIFBaeJXxxxk6bS SR7u7EWmJkJvAUCrrDi4a4kF2CQXTy3jh87GaZJ9sTcD4TOjbNJ741T+VoaGpVUDoPOs 5PPaFIt+VHxFo7U1RUuhNc9tlhsWxiiur4ykMtg8hD1GZwWh0GwflhzE3pF+GHn4o/tI NzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=SK/vJzQFDHi136EJLUTi94oqUKUr6m2i2rEfCe/CMTc=; b=j+qT1W9NEJ+MVzQUWEpVLF8VMhC7eogkAr2VbeS8UV+ReTMKX7getnvfpmTabEi05v ScgKiB8h5Q/WneD64UJbPKNjf8N7okXLS4/375hoeA1cwQd551ObZJxBRcwkh64qZv4r icWRqkCeRxXnN+96QlMP130ZdDKV13HXjUenUDwQ7Mm6aLSl7lBkHHHd5a9zPNBsjD3Y twFbj6fZZ94v/l63qLyK63SEzSACzBVQYZ7crYN6XzmfspHXEdcp0F+1EX5GnqnjI0Mx vVzSMuPK8ou/TVHd5J86YpTXlQ3dGY4rrOYr6GCEvIt7x7iTc9JHUWU/gv8cdVILQ0Ea 5cgg== X-Gm-Message-State: AMCzsaXspX2hQg4PW0wXteRS8qDRDmYm3vzMVjcSDhkxZTml+IHwo3ip sOKU3C1phdZkga9/53EyxKF5tw== X-Google-Smtp-Source: ABhQp+TiTS7cR0FHLtWUE4LcGm21pMvkOpaM9Q70Sbi65ayLBWA4E1A9vT+xIs17N4WERnbKDxQYjQ== X-Received: by 10.36.81.208 with SMTP id s199mr486577ita.31.1507865324217; Thu, 12 Oct 2017 20:28:44 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m32sm155300iti.20.2017.10.12.20.28.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Oct 2017 20:28:43 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> <873770ev7l.fsf@users.sourceforge.net> Date: Thu, 12 Oct 2017 23:28:42 -0400 In-Reply-To: (Noam Postavsky's message of "Thu, 12 Oct 2017 15:40:56 -0400") Message-ID: <877evzbuad.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: 0.7 (/) --=-=-= Content-Type: text/plain tags 28580 + patch quit Noam Postavsky writes: > I've now installed pyreadline on my Windows box. Unfortunately, as far > as I can tell there is no way to make native completion work on > Windows, readline simply won't work unless python is run from a > console. So we should just disable it under windows to stop the > annoying warning. I.e.: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Disable-python-native-completion-on-w32-Bug-28580.patch Content-Description: patch >From 1cb9846462844dfbbc34a02bdbdc66de9ce85c20 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 12 Oct 2017 23:25:13 -0400 Subject: [PATCH] Disable python native completion on w32 (Bug#28580) * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters): For windows-nt systems, put an empty string to match interpreters. --- lisp/progmodes/python.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f79d9a47d3..895117b9ee 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3304,8 +3304,9 @@ python-shell-completion-string-code (defcustom python-shell-completion-native-disabled-interpreters ;; PyPy's readline cannot handle some escape sequences yet. Native ;; completion was found to be non-functional for IPython (see - ;; Bug#25067). - (list "pypy" "ipython") + ;; Bug#25067). Native completion doesn't work on w32 (Bug#28580). + (if (eq system-type 'windows-nt) '("") + '("pypy" "ipython")) "List of disabled interpreters. When a match is found, native completion is disabled." :version "25.1" -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 15 14:23:46 2017 Received: (at 28580) by debbugs.gnu.org; 15 Oct 2017 18:23:46 +0000 Received: from localhost ([127.0.0.1]:41891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3nZi-0005iN-0l for submit@debbugs.gnu.org; Sun, 15 Oct 2017 14:23:46 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:51850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3nZf-0005i3-Nw; Sun, 15 Oct 2017 14:23:44 -0400 Received: by mail-io0-f179.google.com with SMTP id b186so13823185iof.8; Sun, 15 Oct 2017 11:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=3XyxKVBCFLmt+UtR3AF9f9cvciznHFx194NqOrOfmZc=; b=eIhpXPFQTj03v70wP44Ft3J3RLGhPjwArt/UxlvsYIoTuaDPlp03poqeYm1cir20lK 6bCitB/xgBeSMfbbKOkBeTqDg3zOYm+/bPFqsJbEVyEWyu085C6OvZ4U3fMvZtXIOQX0 iG8xtseff9bTeuplM6/MIY2NlbGWuhD0x8wHx2smNq6csPhGnQoRKfXPwENjXI7HhXtz MstsmJ6rS+Leie1nqmDSnrsNM5+9Pq4aW3XuE7Sw4zetoB7RjD75KWA5RYP8ltczl+MY kB9ll/cco7sroHpDuairo/BRILeJ6p1yyTkTRrpHTm1tCZXaFq4jVxQ4EwH8evfxWMlf 1GTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=3XyxKVBCFLmt+UtR3AF9f9cvciznHFx194NqOrOfmZc=; b=bOuFqKZegD0nXcyMCvsfzP0G0F1BCyCDsrrisacsLGu9Prg0UzeMB/X9UsAKAGlV+Z kE7ClQTzsXR+A6CmP4sg1JMVIgxkRI+ziNlCHVrLXRTc7iyoyXCMQbtSy9L+RSr+qHGD tzXDwM6YXpxuqBgyJFVdjep5LzLOoxfODV+9K+kqxRCQIcx/kc+AAPNW70Jo26NDZhqr 2+6sKe1P/RhdSG95iCs2/wtWh56XsIotqqySxlKzqEdSRRwAwQJ/n8IZmIxClC8ivfa3 ZfdrWWml0vAXHnaTMqwXuaeA8yQMBGJymXW9FPeGRHOrxlf834ZoEL0NMqR2EiZO21Fh qMMA== X-Gm-Message-State: AMCzsaV78MRe3aL+u+I8xfFE+fiY8mlDJDZS3eJv0PktVcJVYETvM//W A2YOK1MgO2mZq+/zRv8e3OxY1g== X-Google-Smtp-Source: AOwi7QDheIwTwchrlY5nKRy3qnNNKiqK/6HGd1b38OX8sKo3PDzbbhmE7u4vHMsnyviWsVWJJzofLQ== X-Received: by 10.107.170.29 with SMTP id t29mr10123203ioe.73.1508091818118; Sun, 15 Oct 2017 11:23:38 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f12sm726909itc.1.2017.10.15.11.23.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Oct 2017 11:23:37 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Subject: Re: bug#28580: python.el: native completion setup failed References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> <873770ev7l.fsf@users.sourceforge.net> <877evzbuad.fsf@users.sourceforge.net> Date: Sun, 15 Oct 2017 14:23:36 -0400 In-Reply-To: <877evzbuad.fsf@users.sourceforge.net> (Noam Postavsky's message of "Thu, 12 Oct 2017 23:28:42 -0400") Message-ID: <87h8v08e3b.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28580 Cc: 28580@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: -2.1 (--) close 28580 quit > Subject: [PATCH] Disable python native completion on w32 (Bug#28580) > > * lisp/progmodes/python.el > (python-shell-completion-native-disabled-interpreters): For windows-nt > systems, put an empty string to match interpreters. Pushed to emacs-26. [1: 5980de3727]: 2017-10-15 13:58:45 -0400 Disable python native completion on w32 (Bug#28580) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5980de3727a0e80b5d70849bd2dd7054318c25d8 From unknown Tue Jun 17 01:46:25 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, 13 Nov 2017 12:24:05 +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 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 28 14:03:39 2018 Received: (at control) by debbugs.gnu.org; 28 Feb 2018 19:03:39 +0000 Received: from localhost ([127.0.0.1]:37842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1er70t-0001XY-32 for submit@debbugs.gnu.org; Wed, 28 Feb 2018 14:03:39 -0500 Received: from mail-oi0-f48.google.com ([209.85.218.48]:43059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1er70r-0001XF-E3 for control@debbugs.gnu.org; Wed, 28 Feb 2018 14:03:37 -0500 Received: by mail-oi0-f48.google.com with SMTP id a207so2581210oii.10 for ; Wed, 28 Feb 2018 11:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UXVQV3Gr2og8Ie5D5VDoQ/rAQEflrxj/6QOfVjBEr4I=; b=cL5DZLdUSgNq7un/kijQzFjJJU6G0L619FWE0JSnOre6s1TcFKgxxMSO7wdyy32GLr zoBaSPj5hVEn4mKXwUO3UvzsW9yTVhMPunCee9AA6FWbBKX/tT5CzFo743CjmdIB2zOH S6J4hIsh/D8Kuwd1yIn/kgfOe0FNvKVgyeg48Vdy+rInI5ScGqdBG2a49DV++uEdCAho fdYdpVB4ZGpXrKJJ908RsTi6QDX84iz9HQtz9DF5DU+Vbjf1d1Jy3zrBHXBTjImByz2A lYHfnPdvPCJEfL1BHl3ofeC9N/mOxGTzc5N9CZH40tXEKHYa0n0Cu5l4ddRRhGfFQC0C +sOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UXVQV3Gr2og8Ie5D5VDoQ/rAQEflrxj/6QOfVjBEr4I=; b=qQf/AjiSA4Ch2nB4e7hoam/wSyc+DVtGXgozNBz7DRiLyPae1Vgg+bXClhYNkTZ7cH 3u3ZbWhFNQn7EledlJSSc4yc4AvNuph4SapmOtvVKy6SEcokH1CYtXn0/Nm3p+ixMjdf QOeRzXeKlXiS1V0eNnUNYN1834e8a/7mgMEI7MIwFV/k2hOL9h6MOQMhBhLo5PJqpUhk uE61ShAPuAOuD6lOvkZY743vuzCey2HCP8SNqxTFPnZMapYNggKpHLxT3dkpcXxT1iQ+ w/634V8nsAwLFpOTpftNQWPXOyfJKel9faU6AHucN8I9nFiHQYolwp5RdOFNSdR/bvZS ji/Q== X-Gm-Message-State: APf1xPBO+6pJkIlFMRwR2JoV+/mPwZIcijnIZQRTS5mys0Qd8K9Wbmnw kOQr7h/a8OyokimJdozNZbH+TV0XEoHS6G4Y5d4= X-Google-Smtp-Source: AG47ELtKi6TDE8RxXp+q1PPJ4Gt9txQ5UuRa04zh4CRGN397MqCe1By/vvlqvSM99Mick7gpVLTNLAKv7Ev9HtobJUk= X-Received: by 10.202.45.3 with SMTP id t3mr12739242oit.22.1519844611844; Wed, 28 Feb 2018 11:03:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.59.65 with HTTP; Wed, 28 Feb 2018 11:03:31 -0800 (PST) In-Reply-To: References: <217297537.6981668.1519813263276.ref@mail.yahoo.com> <217297537.6981668.1519813263276@mail.yahoo.com> From: Noam Postavsky Date: Wed, 28 Feb 2018 14:03:31 -0500 Message-ID: Subject: Re: bug#30651: 25.1; python-shell-interpreter To: Glenn Morris Content-Type: text/plain; charset="UTF-8" Bcc: control@debbugs.gnu.org X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 30651@debbugs.gnu.org, Frey Florez 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.0 (/) close 30651 unarchive 28580 merge 30651 28580 quit On Wed, Feb 28, 2018 at 1:53 PM, Glenn Morris wrote: > Frey Florez wrote: > >> I started first the python process C-c C-p. Then, I run C-c C-c and >> the following message was shown: >> >> Warning (python): Your 'python-shell-interpreter' doesn't seem >> tosupport readline, yet 'python-shell-completion-native' was t >> and"python" is not part of >> the'python-shell-completion-native-disabled-interpreters' list. >> Nativecompletions have been disabled locally. >> >> Information:OS: Windows 10Anaconda version: >> Anaconda3-5.1.0-Windows-x86_64Python: 3.5 >> >> In GNU Emacs 25.1.1 > > That's a very searchable warning message. > Try upgrading to Emacs 25.2 (preferably 25.3). For Windows it won't help though. You should just do (setq python-shell-completion-native-disabled-interpreters "") to suppress the warning. In Emacs 26, this will be the default for Windows. Ref: https://debbugs.gnu.org/28580 From unknown Tue Jun 17 01:46:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Mar 2018 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