delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/07/00:40:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=X51EURvCYNFikc0ee3h4IfZ1d066Xcq8TppUiQ+CnYA
ziI25q6KwC0Q4voF9xt1teROsZTVZlIVGca/zBH9LRaRQzFrO/8a+VtoVlPVpHX/
GvGwV6JbcKlEYbXh+xG9dWNdjXZoT7kzDBLS4YkBWI+y/kJtOkuL+PfwQFmFBU2Y
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=5g8zivh/ZaNDUWC2e3/LkigEJUg=; b=F6bJfFXstUU7zTkdw
+nCM5turIreOXWCDSfJMbweoRmLI3yXTmF85V5uAkv3uRzphxvuZnMQF2g3noEbn
7JCYbULo59gHR2xDWsU487o/3k34BV0nitGQR+lB3me1agQKT4PQbYbI5RK2Y3e7
hvX2KFc9Qs5o2au4kSrXV+v5sU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-wg0-f49.google.com
X-Received: by 10.194.172.9 with SMTP id ay9mr36228812wjc.2.1425706782118; Fri, 06 Mar 2015 21:39:42 -0800 (PST)
Message-ID: <54FA8F17.6020709@gmail.com>
Date: Sat, 07 Mar 2015 06:39:35 +0100
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: python3.2 can't find pyconfig.h file, dies
References: <54FA7923 DOT 3080601 AT gmail DOT com>
In-Reply-To: <54FA7923.3080601@gmail.com>
X-IsSubscribed: yes

On 3/7/2015 5:05 AM, Edgar Gaines wrote:
> I'm running Cygwin64 on a Windows 8.1 laptop. Whenever I attempt to run
> either the 'python3' or the 'python3.2' command in a cygwin terminal
> window, I get the error message you see at the end of this email. The
> important part is the last line, to wit:
>
>      IOError: invalid Python installation: unable to open
>      /cygdrive/c/cygwin64/include/python3.2m/pyconfig.h (No such file or
>      directory)
>
> Note that there is no pyconfig.h in /cygdrive/c/cygwin64/include/,
> because there's no /cygdrive/c/cygwin64/include/ directory:
>
>      $ ls /cygdrive/c/cygwin/include
>      /cygdrive/c/cygwin64/bin/ls: cannot access
>      /cygdrive/c/cygwin/include: No such file or directory
>
> But there IS* a /cygdrive/c/cygwin64/usr/include directory, and it
> contains the file pyconfig.h in its tree.
>
>      $ ls /cygdrive/cygwin64/usr/include/python3.2m/pyconfig.h
>      /cygdrive/c/cygwin64/usr/include/python3.2m/pyconfig.h
>
> So where is the default search path for the pyconfig.h file set? Are we
> talking about the ${prefix} and ${exec_prefix} variables the man page
> refers to?
>
> Just in case someone asks, here's my Cygwin path:
>
>      echo $PATH
>
> /cygdrive/c/cygwin64/bin:/cygdrive/c/cygwin64/usr/local/bin:/cygdrive/c/usr/bin:/cygdrive/c/Cygwin64/home/Edgar/bin:/cygdrive/c/Program
> Files (x86)/ISC BIND 9/bin:/cygdrive/c/Windows:/cygdrive/c/Windows/system32
>
> Thanks in advance for your help.

why not

  /usr/local/bin:/usr/bin:/home/Edgar/bin:/cygdrive/c/Program
Files (x86)/ISC BIND 9/bin:/cygdrive/c/Windows:/cygdrive/c/Windows/system32

?


I see anyway a /cygdrive/c/usr/bin without cygwin64.

The error could be caused by having a /cygdrive/c/cygwin64/bin = /bin
before /cygdrive/c/cygwin64/usr/bin = /usr/bin

If phython is looking for a relative directory to /usr/bin

See /etc/profile for the default PATH setting.


Regards Marco








--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019