python3.2 can't find pyconfig.h file, dies

Marco Atzeri marco.atzeri@gmail.com
Sat Mar 7 09:03:00 GMT 2015


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



More information about the Cygwin mailing list