Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; '(python': 0.05; 'error:': 0.05; 'exit': 0.07; '#error': 0.09; '(same': 0.09; 'broken.': 0.09; 'exited': 0.09; 'skip:c 80': 0.09; 'subject:module': 0.09; 'subject:yappi': 0.09; 'unsigned': 0.09; 'url:googlecode': 0.09; 'url:yappi': 0.09; '2.7': 0.13; 'files.': 0.13; 'vista': 0.13; ':-)': 0.13; 'url:)': 0.13; 'cases': 0.15; "'gcc'": 0.16; '--v': 0.16; '8-bit': 0.16; 'compilers': 0.16; 'easy_install': 0.16; 'experiments': 0.16; 'match:': 0.16; 'pypi.': 0.16; 'subject:Installation': 0.16; 'subject:timing': 0.16; 'time.h:': 0.16; 'url:gz': 0.16; 'url:tar': 0.16; 'wchar.h:': 0.16; 'char': 0.17; 'windows': 0.19; 'module': 0.19; 'define': 0.20; 'suggested': 0.20; 'assumes': 0.22; 'gcc': 0.22; 'skip:c 70': 0.22; 'defined': 0.22; 'errors': 0.23; 'installed': 0.23; 'header': 0.24; 'command': 0.24; 'script': 0.24; 'tried': 0.25; 'header:User-Agent:1': 0.26; 'charset:iso-8859-15': 0.26; 'appreciated.': 0.26; '(as': 0.27; 'c++': 0.27; 'url:code': 0.29; 'included': 0.29; 'source': 0.29; 'install': 0.29; 'folder': 0.30; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'running': 0.32; 'to:addr:python-list': 0.33; 'doing': 0.35; 'similar': 0.35; 'url:org': 0.36; 'modules': 0.36; 'test': 0.36; 'should': 0.36; 'problems': 0.36; 'subject: (': 0.36; 'unable': 0.36; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'url:p': 0.63; 'different': 0.63; 'here': 0.65; 'mingw': 0.84; 'segments.': 0.84 X-SENDER-IP: [213.112.50.224] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYbACdWN1DVcDLgPGdsb2JhbAANOLp7AQEBATeDE0A9FhgDAgECATEGASAIAQGIFKVKk2iSGQOWaZFl X-IronPort-AV: E=Sophos;i="4.77,819,1336341600"; d="scan'208";a="102424154" Date: Fri, 24 Aug 2012 12:28:40 +0200 From: Virgil Stokes User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120821 Thunderbird/15.0 MIME-Version: 1.0 To: python-list@python.org Subject: Installation of yappi (timing module) Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 84 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345805901 news.xs4all.nl 6955 [2001:888:2000:d::a6]:35746 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27790 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 :-)