[pypy-issue] [issue875] Thrift installation error: cStringIO.h missing

Osvaldo tracker at bugs.pypy.org
Wed Sep 21 17:19:29 CEST 2011


New submission from Osvaldo <tupy at riachao.com>:

I created a pypy virtualenv and tried to install thrift 0.7.0 by using the pip.
I got the error: http://paste.pocoo.org/show/479924/

----------
files: 479924.txt
messages: 3156
nosy: pypy-issue, tupy
priority: bug
status: unread
title: Thrift installation error: cStringIO.h missing

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue875>
________________________________________
-------------- next part --------------
Downloading/unpacking thrift
  Downloading thrift-0.7.0.tar.gz
  Running setup.py egg_info for package thrift
    
Installing collected packages: thrift
  Running setup.py install for thrift
    building 'thrift.protocol.fastbinary' extension
    cc -fPIC -Wimplicit -I/opt/ENV/include -c src/protocol/fastbinary.c -o build/temp.linux-i686-2.7/src/protocol/fastbinary.o
    src/protocol/fastbinary.c:21: fatal error: cStringIO.h: No such file or directory
    compilation terminated.
    error: command 'cc' failed with exit status 1
    Complete output from command /opt/ENV/bin/pypy -c "import setuptools;__file__='/opt/ENV/build/thrift/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-7MH5uR-record/install-record.txt --install-headers /opt/ENV/include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

creating build/lib.linux-i686-2.7/thrift

copying src/__init__.py -> build/lib.linux-i686-2.7/thrift

copying src/TSCons.py -> build/lib.linux-i686-2.7/thrift

copying src/Thrift.py -> build/lib.linux-i686-2.7/thrift

copying src/TSerialization.py -> build/lib.linux-i686-2.7/thrift

creating build/lib.linux-i686-2.7/thrift/protocol

copying src/protocol/TCompactProtocol.py -> build/lib.linux-i686-2.7/thrift/protocol

copying src/protocol/TProtocol.py -> build/lib.linux-i686-2.7/thrift/protocol

copying src/protocol/TBinaryProtocol.py -> build/lib.linux-i686-2.7/thrift/protocol

copying src/protocol/__init__.py -> build/lib.linux-i686-2.7/thrift/protocol

creating build/lib.linux-i686-2.7/thrift/transport

copying src/transport/TTwisted.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/THttpClient.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/__init__.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/TTransport.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/TZlibTransport.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/TSSLSocket.py -> build/lib.linux-i686-2.7/thrift/transport

copying src/transport/TSocket.py -> build/lib.linux-i686-2.7/thrift/transport

creating build/lib.linux-i686-2.7/thrift/server



copying src/server/THttpServer.py -> build/lib.linux-i686-2.7/thrift/server

copying src/server/TNonblockingServer.py -> build/lib.linux-i686-2.7/thrift/server

copying src/server/TServer.py -> build/lib.linux-i686-2.7/thrift/server

copying src/server/__init__.py -> build/lib.linux-i686-2.7/thrift/server

copying src/server/TProcessPoolServer.py -> build/lib.linux-i686-2.7/thrift/server

running build_ext

building 'thrift.protocol.fastbinary' extension

creating build/temp.linux-i686-2.7

creating build/temp.linux-i686-2.7/src

creating build/temp.linux-i686-2.7/src/protocol

cc -fPIC -Wimplicit -I/opt/ENV/include -c src/protocol/fastbinary.c -o build/temp.linux-i686-2.7/src/protocol/fastbinary.o

src/protocol/fastbinary.c:21: fatal error: cStringIO.h: No such file or directory

compilation terminated.

error: command 'cc' failed with exit status 1

----------------------------------------
Command /opt/ENV/bin/pypy -c "import setuptools;__file__='/opt/ENV/build/thrift/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-7MH5uR-record/install-record.txt --install-headers /opt/ENV/include/site/python2.7 failed with error code 1
Storing complete log in /root/.pip/pip.log


More information about the pypy-issue mailing list