From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28580: python.el: native completion setup failed Date: Tue, 03 Oct 2017 00:01:02 -0400 Message-ID: <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507003330 26578 195.159.176.226 (3 Oct 2017 04:02:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 04:02:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: 28580@debbugs.gnu.org To: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 03 06:02:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzEPF-0006JH-4W for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Oct 2017 06:02:05 +0200 Original-Received: from localhost ([::1]:56057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzEPM-0006qQ-6M for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Oct 2017 00:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzEPG-0006qF-74 for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 00:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzEPC-0007Cx-8N for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 00:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzEPC-0007Cm-4j for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 00:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzEPB-0008IS-Qb for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 00:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Oct 2017 04:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28580-submit@debbugs.gnu.org id=B28580.150700327331831 (code B ref 28580); Tue, 03 Oct 2017 04:02:01 +0000 Original-Received: (at 28580) by debbugs.gnu.org; 3 Oct 2017 04:01:13 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: ("=?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?="'s message of "Mon, 25 Sep 2017 00:37:38 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137810 Archived-At: 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.