On 24-Aug-2012 12:28, Virgil Stokes wrote:
I have been doing some experiments with different modules for the timing of functions and code segments. One module I would like to test is yappi (thread aware timer) which is listed at PyPI. However, I have been unable to install it on Windows Vista and Windows 7 (Python 2.7 on both). I have tried both easy_install and pip (as suggested at http://code.google.com/p/yappi/). Here is what happens with easy_install

C:\Users\Virgil>easy_install yappi
Searching for yappi
Reading http://pypi.python.org/simple/yappi/
Reading http://yappi.googlecode.com/
Best match: yappi 0.62
Downloading http://yappi.googlecode.com//files/yappi-0.62.tar.gz
Processing yappi-0.62.tar.gz
Writing c:\users\virgil\appdata\local\temp\easy_install-tzt5gl\yappi-0.62\setup.cfg Running yappi-0.62\setup.py -q bdist_egg --dist-dir c:\users\virgil\appdata\local\temp\easy_install-tzt5gl\yappi-0.62\egg-dist-tmp-t3qodo
In file included from D:\python27\include\Python.h:8,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\pyconfig.h:68: io.h: No such file or directory
D:\python27\include\pyconfig.h:296: stdio.h: No such file or directory
In file included from config.h:4,
                 from _yappi.c:10:
D:\python27\include\Python.h:19: limits.h: No such file or directory
D:\python27\include\Python.h:22: #error "Something's broken. UCHAR_MAX should be defined in limits.h." D:\python27\include\Python.h:26: #error "Python's source code assumes C's unsigned char is an 8-bit type."
D:\python27\include\Python.h:33: stdio.h: No such file or directory
D:\python27\include\Python.h:35: #error "Python.h requires that stdio.h define NULL."
D:\python27\include\Python.h:38: string.h: No such file or directory
D:\python27\include\Python.h:40: errno.h: No such file or directory
D:\python27\include\Python.h:42: stdlib.h: No such file or directory
D:\python27\include\Python.h:49: stddef.h: No such file or directory
D:\python27\include\Python.h:56: assert.h: No such file or directory
In file included from D:\python27\include\Python.h:58,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\pyport.h:306: stdlib.h: No such file or directory
D:\python27\include\pyport.h:312: math.h: No such file or directory
D:\python27\include\pyport.h:325: time.h: No such file or directory
D:\python27\include\pyport.h:377: sys\stat.h: No such file or directory
In file included from D:\python27\include\Python.h:85,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\unicodeobject.h:4: stdarg.h: No such file or directory
D:\python27\include\unicodeobject.h:57: ctype.h: No such file or directory
D:\python27\include\unicodeobject.h:120: wchar.h: No such file or directory
In file included from D:\python27\include\Python.h:94,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\stringobject.h:10: stdarg.h: No such file or directory
In file included from D:\python27\include\Python.h:98,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\bytearrayobject.h:9: stdarg.h: No such file or directory
In file included from D:\python27\include\Python.h:121,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\pyerrors.h:319: stdarg.h: No such file or directory
In file included from D:\python27\include\Python.h:126,
                 from config.h:4,
                 from _yappi.c:10:
D:\python27\include\modsupport.h:10: stdarg.h: No such file or directory
In file included from _yappi.c:10:
config.h:15: stdint.h: No such file or directory
In file included from _yappi.c:23:
timing.h:8: windows.h: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1

And pip fails with similar problems (same pyconfig errors where C++ header files are not found). In both cases yappi-0.62.tar.gz was downloaded.Note: 1) I also tried to install from the source which also failed with similar problems, 2) I have both cygwin and MinGW gcc compilers on my systems and they do contain in their include folder these "missing" header files.

Any suggestions on how yappi can be installed would be appreciated.

--V :-)



Problem solved!
The ordering of the gcc compilers in my PATH statement caused this failure. I have ordered these compilers such that the first one contains the required header files and the installation of yappi is now successful.
--V
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to