adafruit/Adafruit_Python_DHT

Error on setup.py

bfpnascimento opened this issue · 1 comments

when execute the setup command, i'm getting this error

`
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/_Raspberry_Pi_2_Driver.c -o build/temp.linux-armv7l-2.7/source/_Raspberry_Pi_2_Driver.o -std=gnu99
In file included from /usr/include/python2.7/Python.h:7:0,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/python2.7/patchlevel.h:1:1: warning: null character(s) ignored

^
In file included from /usr/include/python2.7/Python.h:9:0,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/python2.7/pymacconfig.h:1:1: warning: null character(s) ignored

^
In file included from /usr/include/python2.7/pyport.h:325:0,
from /usr/include/python2.7/Python.h:58,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/math.h:479:0: error: unterminated #ifndef

ifndef isunordered

^
/usr/include/math.h:435:0: error: unterminated #ifdef
#ifdef __USE_ISOC99
^
In file included from /usr/include/python2.7/pyport.h:325:0,
from /usr/include/python2.7/Python.h:58,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/math.h:23:0: error: unterminated #ifndef
#ifndef _MATH_H
^
In file included from /usr/include/python2.7/Python.h:110:0,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/python2.7/pycapsule.h:1:1: warning: null character(s) ignored

^
In file included from /usr/include/python2.7/Python.h:139:0,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/python2.7/pystrtod.h:1:1: warning: null character(s) ignored

^
In file included from /usr/include/python2.7/pyfpe.h:131:0,
from /usr/include/python2.7/Python.h:156,
from source/_Raspberry_Pi_2_Driver.c:21:
/usr/include/math.h:479:0: error: unterminated #ifndef

ifndef isunordered

^
/usr/include/math.h:435:0: error: unterminated #ifdef
#ifdef __USE_ISOC99
^
/usr/include/math.h:23:0: error: unterminated #ifndef
#ifndef _MATH_H
^
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
`
raspberry pi 2
python 2.7.9

hi this repo is going to be deprecated soon, please try
https://github.com/adafruit/Adafruit_CircuitPython_DHT
which will replace this library