This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



------------------------------------------------------------------------
_/*FULL ERROR MESSAGE:*/_

$ python3.2
Traceback (most recent call last):
File "/cygdrive/c/cygwin64/lib/python3.2/sysconfig.py", line 343, in _init_posix
     with open(config_h) as f:
IOError: [Errno 2] No such file or directory: '/cygdrive/c/cygwin64/include/python3.2m/pyconfig.h'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/cygdrive/c/cygwin64/lib/python3.2/site.py", line 529, in <module> main()
   File "/cygdrive/c/cygwin64/lib/python3.2/site.py", line 517, in
main known_paths = addusersitepackages(known_paths)
File "/cygdrive/c/cygwin64/lib/python3.2/site.py", line 263, in addusersitepackages user_site = getusersitepackages() File "/cygdrive/c/cygwin64/lib/python3.2/site.py", line 238, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/cygdrive/c/cygwin64/lib/python3.2/site.py", line 228, in getuserbase USER_BASE = get_config_var('userbase') File "/cygdrive/c/cygwin64/lib/python3.2/sysconfig.py", line 525, in get_config_var return get_config_vars().get(name) File "/cygdrive/c/cygwin64/lib/python3.2/sysconfig.py", line 475, in get_config_vars_init_posix(_CONFIG_VARS) File "/cygdrive/c/cygwin64/lib/python3.2/sysconfig.py", line 349, in _init_posix raise IOError(msg) IOError: invalid Python installation: unable to open /cygdrive/c/cygwin64/include/python3.2m/pyconfig.h (No such file or directory)



--

Ed Gaines
Raleigh, NC
919-341-9334
elg476@gmail.com <mailto:elg476@gmail.com>



--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]