From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Da Zhang Newsgroups: gmane.emacs.bugs Subject: bug#20237: Emacs built on Windows cannot figure out path correctly Date: Sat, 04 Apr 2015 15:07:09 -0400 Message-ID: <5520365D.6070102@gmail.com> References: <551ADED4.4010903@gmail.com> <83twx1rpng.fsf@gnu.org> <551B109C.4050505@gmail.com> <83pp7osh9l.fsf@gnu.org> <551BF79F.3010201@gmail.com> <83384gp4gm.fsf@gnu.org> <55201ACF.2080001@gmail.com> <83k2xroli9.fsf@gnu.org> <552022E4.7000008@gmail.com> <83iodbokc1.fsf@gnu.org> <5520280A.4030201@gmail.com> <83h9svoj9m.fsf@gnu.org> <55202B10.5010207@gmail.com> <83fv8foi1u.fsf@gnu.org> <83egnzohs5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060900020809080700080809" X-Trace: ger.gmane.org 1428174503 5988 80.91.229.3 (4 Apr 2015 19:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2015 19:08:23 +0000 (UTC) Cc: 20237@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 04 21:08:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YeTQS-0003Hl-7x for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2015 21:08:12 +0200 Original-Received: from localhost ([::1]:34102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeTQR-0007cv-JK for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2015 15:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeTQN-0007ce-KD for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 15:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeTQI-00052f-Fv for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 15:08:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeTQI-00052Z-Cd for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 15:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YeTQI-0005y4-8M for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 15:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Da Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Apr 2015 19:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20237 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20237-submit@debbugs.gnu.org id=B20237.142817444422852 (code B ref 20237); Sat, 04 Apr 2015 19:08:02 +0000 Original-Received: (at 20237) by debbugs.gnu.org; 4 Apr 2015 19:07:24 +0000 Original-Received: from localhost ([127.0.0.1]:44908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeTPe-0005wT-SP for submit@debbugs.gnu.org; Sat, 04 Apr 2015 15:07:23 -0400 Original-Received: from mail-qg0-f51.google.com ([209.85.192.51]:33962) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeTPc-0005w5-C2 for 20237@debbugs.gnu.org; Sat, 04 Apr 2015 15:07:20 -0400 Original-Received: by qgfi89 with SMTP id i89so189470qgf.1 for <20237@debbugs.gnu.org>; Sat, 04 Apr 2015 12:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=Q1pM/zZ0e093KsdZ7gdwiMxdOcVL3o6JvNG69B8DRbY=; b=lU9nb7JxxSSX0uCzkSd6JtnD8AxYv1ZYTBBHgvI2stIUtrKzNgW+6/AUYmLuejawHg jAPzY2SyfVmRI/3XfZlxBN0CWTcRbwtnlqxC/ViBYdWfXqDzr63U9b6fTvoPQ5oVXr+1 jEPNrnAKok4N6at7fYxQbquloopSOJXdIB1BJ5iq0TYQiMvAHeWZw5C6oK4iZUDzOq84 evNsTf4sgq1WBHeMBwESZktTAyvNevhmOUhjoPbEzzIwPOGP2TXIOl8BoTF6ef20YEZL CkNoCAjOW48GmutzzqyS9BeRCHH5sRMTayov22JB7fgqf7eRPsoUsmVmms0y9ejPT8Qp XsCg== X-Received: by 10.140.102.180 with SMTP id w49mr2861696qge.82.1428174435063; Sat, 04 Apr 2015 12:07:15 -0700 (PDT) Original-Received: from [192.168.1.11] (pool-108-7-46-219.bstnma.fios.verizon.net. [108.7.46.219]) by mx.google.com with ESMTPSA id j94sm8326827qgd.47.2015.04.04.12.07.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Apr 2015 12:07:14 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <83egnzohs5.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101203 Archived-At: This is a multi-part message in MIME format. --------------060900020809080700080809 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Thank you! You are right, the problem was caused by this cygwin bash shell. When I disabled it, python can be run correctly. Da (w32-shell-name) RET returns "C:/cygwin64/bin/bash.exe" On 4/4/2015 2:44 PM, Eli Zaretskii wrote: >> Date: Sat, 04 Apr 2015 21:38:21 +0300 >> From: Eli Zaretskii >> Cc: 20237@debbugs.gnu.org >> >> I think you need to use this instead: >> >> (setq python-shell-interpreter "/cygdrive/C/Python27/Scripts/ipython") >> >> Or something like that -- I don't use Cygwin, so I might be mistaken >> about the exact format you need to use. > Actually, if you use this format, you'd probably also need to use > cygwin-mount as well. > > So the second alternative, to remove the setup for Cygwin Bash, is IMO > better. Mixing a native Windows Emacs with Cygwin is a tricky > business. > > Yet another possibility is to use a Cygwin build of Emacs. --------------060900020809080700080809 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit Thank you!

You are right, the problem was caused by this cygwin bash shell. When I disabled it, python can be run correctly.

Da
(w32-shell-name) RET returns

"C:/cygwin64/bin/bash.exe"
On 4/4/2015 2:44 PM, Eli Zaretskii wrote:
Date: Sat, 04 Apr 2015 21:38:21 +0300
From: Eli Zaretskii <eliz@gnu.org>
Cc: 20237@debbugs.gnu.org

I think you need to use this instead:

  (setq python-shell-interpreter "/cygdrive/C/Python27/Scripts/ipython")

Or something like that -- I don't use Cygwin, so I might be mistaken
about the exact format you need to use.
Actually, if you use this format, you'd probably also need to use
cygwin-mount as well.

So the second alternative, to remove the setup for Cygwin Bash, is IMO
better.  Mixing a native Windows Emacs with Cygwin is a tricky
business.

Yet another possibility is to use a Cygwin build of Emacs.

--------------060900020809080700080809--