pietern/hiredis-py — Issue #6: Can't install with python 3.2
Author: fzzbt
Created: 2011-12-15 12:36:50+00:00
State: open

```[fzzbt@stacker /home/fzzbt]$ sudo easy_install-3.2 hiredis
Searching for hiredis
Reading http://pypi.python.org/simple/hiredis/
Reading https://github.com/pietern/hiredis-py
Best match: hiredis 0.1.0
Downloading http://pypi.python.org/packages/source/h/hiredis/hiredis-0.1.0.tar.gz#md5=0030abe2fd3acbecbd0d960d60844142
Processing hiredis-0.1.0.tar.gz
Running hiredis-0.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-emt213/hiredis-0.1.0/egg-dist-tmp-aob_i8
In file included from /usr/include/python3.2mu/Python.h:8:0,
from src/hiredis.h:4,
from src/reader.h:4,
from src/reader.c:2:
/usr/include/python3.2mu/pyconfig.h:1173:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:215:0: note: this is the location of the previous definition
src/reader.c:17:5: warning: missing braces around initializer [-Wmissing-braces]
src/reader.c:17:5: warning: (near initialization for ‘hiredis_ReaderType.ob_base.ob_base’) [-Wmissing-braces]
src/reader.c:19:5: warning: initialization makes integer from pointer without a cast [enabled by default]
src/reader.c:19:5: warning: (near initialization for ‘hiredis_ReaderType.tp_basicsize’) [enabled by default]
src/reader.c:22:5: warning: initialization from incompatible pointer type [enabled by default]
src/reader.c:22:5: warning: (near initialization for ‘hiredis_ReaderType.tp_print’) [enabled by default]
src/reader.c:37:5: warning: initialization makes pointer from integer without a cast [enabled by default]
src/reader.c:37:5: warning: (near initialization for ‘hiredis_ReaderType.tp_doc’) [enabled by default]
src/reader.c:38:5: warning: initialization from incompatible pointer type [enabled by default]
src/reader.c:38:5: warning: (near initialization for ‘hiredis_ReaderType.tp_traverse’) [enabled by default]
src/reader.c:45:5: warning: initialization from incompatible pointer type [enabled by default]
src/reader.c:45:5: warning: (near initialization for ‘hiredis_ReaderType.tp_members’) [enabled by default]
src/reader.c:53:5: warning: initialization from incompatible pointer type [enabled by default]
src/reader.c:53:5: warning: (near initialization for ‘hiredis_ReaderType.tp_alloc’) [enabled by default]
src/reader.c:55:5: warning: initialization from incompatible pointer type [enabled by default]
src/reader.c:55:5: warning: (near initialization for ‘hiredis_ReaderType.tp_free’) [enabled by default]
src/reader.c: In function ‘createDecodedString’:
src/reader.c:72:9: warning: implicit declaration of function ‘PyString_FromStringAndSize’ [-Wimplicit-function-declaration]
src/reader.c:72:13: warning: assignment makes pointer from integer without a cast [enabled by default]
src/reader.c:78:21: warning: assignment makes pointer from integer without a cast [enabled by default]
src/reader.c: In function ‘Reader_dealloc’:
src/reader.c:153:9: error: ‘hiredis_ReaderObject’ has no member named ‘ob_type’
src/reader.c: In function ‘Reader_init’:
src/reader.c:197:9: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
src/reader.c:197:16: warning: assignment makes pointer from integer without a cast [enabled by default]
error: Setup script exited with error: command 'gcc' failed with exit status 1
```