Installing bitarray in Python 2.6 on Windows
Posted
by John Fouhy
on Stack Overflow
See other posts from Stack Overflow
or by John Fouhy
Published on 2009-04-23T02:48:41Z
Indexed on
2010/04/17
1:13 UTC
Read the original article
Hit count: 362
I would like to install bitarray in Windows running python 2.6.
I have mingw32 installed, and I have C:\Python26\Lib\distutils\distutils.cfg
set to:
[build]
compiler = mingw32
If I type, in a cmd.exe
window:
C:\Documents and Settings\john\My Documents\bitarray-0.3.5>python setup.py install
I get:
[normal python messages skipped]
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python26\include -IC:\Python26\PC -c bitarray/_bitarray.c -o build\temp.win32-2.6\Release\bitarray\_bitarray.o
bitarray/_bitarray.c:2197: error: initializer element is not constant
bitarray/_bitarray.c:2197: error: (near initialization for `BitarrayIter_Type.tp_getattro')
bitarray/_bitarray.c:2206: error: initializer element is not constant
bitarray/_bitarray.c:2206: error: (near initialization for `BitarrayIter_Type.tp_iter')
bitarray/_bitarray.c:2232: error: initializer element is not constant
bitarray/_bitarray.c:2232: error: (near initialization for `Bitarraytype.tp_getattro')
bitarray/_bitarray.c:2253: error: initializer element is not constant
bitarray/_bitarray.c:2253: error: (near initialization for `Bitarraytype.tp_alloc')
bitarray/_bitarray.c:2255: error: initializer element is not constant
bitarray/_bitarray.c:2255: error: (near initialization for `Bitarraytype.tp_free')
error: command 'gcc' failed with exit status 1
Can anyone help?
© Stack Overflow or respective owner