[pypy-issue] Issue #2902: missing members from PyDateTime_Time, PyDateTime_DateTime and PyDateTime_Delta (pypy/pypy)
Ivan Kanakarakis
issues-reply at bitbucket.org
Thu Oct 18 13:20:55 EDT 2018
New issue 2902: missing members from PyDateTime_Time, PyDateTime_DateTime and PyDateTime_Delta
https://bitbucket.org/pypy/pypy/issues/2902/missing-members-from-pydatetime_time
Ivan Kanakarakis:
Hello,
recent builds of our package started failing.
This happens with
```
Python 3.5.3 (a39af0be3a22, Jun 05 2017, 20:18:00)
[PyPy 5.8.0-beta0 with GCC 6.2.0 20160901]
```
The following errors are generated when building package `buscuits`:
```
biscuits.c:5928:46: error: ‘PyDateTime_Time’ has no member named ‘hastzinfo’
biscuits.c:5940:58: error: ‘PyDateTime_Time’ has no member named ‘tzinfo’
biscuits.c:6002:50: error: ‘PyDateTime_DateTime’ has no member named ‘hastzinfo’
biscuits.c:6013:65: error: ‘PyDateTime_DateTime’ has no member named ‘tzinfo’
biscuits.c:6593:44: error: ‘PyDateTime_Delta’ has no member named ‘days’
biscuits.c:6630:44: error: ‘PyDateTime_Delta’ has no member named ‘seconds’
biscuits.c:6664:44: error: ‘PyDateTime_Delta’ has no member named ‘microseconds’
```
The complete log from the failing build:
```
Running setup.py bdist_wheel for biscuits: started
Running setup.py bdist_wheel for biscuits: finished with status 'error'
Complete output from command /home/travis/build/IdentityPython/pysaml2/.tox/pypy3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2j_ru_wr/biscuits/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-c_7ki815 --python-tag pp358:
running bdist_wheel
running build
running build_ext
building 'biscuits' extension
creating build
creating build/temp.linux-x86_64-3.5
cc -pthread -DNDEBUG -O2 -fPIC -I/opt/python/pypy3.5-5.8.0/include -c biscuits.c -o build/temp.linux-x86_64-3.5/biscuits.o -O3
biscuits.c: In function ‘__pyx_f_7cpython_8datetime_time_tzinfo’:
biscuits.c:5928:46: error: ‘PyDateTime_Time’ has no member named ‘hastzinfo’
__pyx_t_1 = (((PyDateTime_Time *)__pyx_v_o)->hastzinfo != 0);
^
In file included from /opt/python/pypy3.5-5.8.0/include/Python.h:86:0,
from biscuits.c:4:
biscuits.c:5939:61: error: ‘PyDateTime_Time’ has no member named ‘tzinfo’
__Pyx_INCREF(((PyObject *)((PyDateTime_Time *)__pyx_v_o)->tzinfo));
^
/opt/python/pypy3.5-5.8.0/include/object.h:37:40: note: in definition of macro ‘Py_INCREF’
#define Py_INCREF(ob) (((PyObject *)(ob))->ob_refcnt++)
^
biscuits.c:5939:5: note: in expansion of macro ‘__Pyx_INCREF’
__Pyx_INCREF(((PyObject *)((PyDateTime_Time *)__pyx_v_o)->tzinfo));
^
biscuits.c:5940:58: error: ‘PyDateTime_Time’ has no member named ‘tzinfo’
__pyx_r = ((PyObject *)((PyDateTime_Time *)__pyx_v_o)->tzinfo);
^
biscuits.c: In function ‘__pyx_f_7cpython_8datetime_datetime_tzinfo’:
biscuits.c:6002:50: error: ‘PyDateTime_DateTime’ has no member named ‘hastzinfo’
__pyx_t_1 = (((PyDateTime_DateTime *)__pyx_v_o)->hastzinfo != 0);
^
In file included from /opt/python/pypy3.5-5.8.0/include/Python.h:86:0,
from biscuits.c:4:
biscuits.c:6013:65: error: ‘PyDateTime_DateTime’ has no member named ‘tzinfo’
__Pyx_INCREF(((PyObject *)((PyDateTime_DateTime *)__pyx_v_o)->tzinfo));
^
/opt/python/pypy3.5-5.8.0/include/object.h:37:40: note: in definition of macro ‘Py_INCREF’
#define Py_INCREF(ob) (((PyObject *)(ob))->ob_refcnt++)
^
biscuits.c:6013:5: note: in expansion of macro ‘__Pyx_INCREF’
__Pyx_INCREF(((PyObject *)((PyDateTime_DateTime *)__pyx_v_o)->tzinfo));
^
biscuits.c:6014:62: error: ‘PyDateTime_DateTime’ has no member named ‘tzinfo’
__pyx_r = ((PyObject *)((PyDateTime_DateTime *)__pyx_v_o)->tzinfo);
^
biscuits.c: In function ‘__pyx_f_7cpython_8datetime_timedelta_days’:
biscuits.c:6593:44: error: ‘PyDateTime_Delta’ has no member named ‘days’
__pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->days;
^
biscuits.c: In function ‘__pyx_f_7cpython_8datetime_timedelta_seconds’:
biscuits.c:6630:44: error: ‘PyDateTime_Delta’ has no member named ‘seconds’
__pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->seconds;
^
biscuits.c: In function ‘__pyx_f_7cpython_8datetime_timedelta_microseconds’:
biscuits.c:6664:44: error: ‘PyDateTime_Delta’ has no member named ‘microseconds’
__pyx_r = ((PyDateTime_Delta *)__pyx_v_o)->microseconds;
biscuits.c: In function ‘__Pyx_PyUnicode_Substring’:
biscuits.c:7767:5: warning: return makes pointer from integer without a cast [enabled by default]
return PyUnicode_FromKindAndData(PyUnicode_KIND(text),
^
error: command 'cc' failed with exit status 1
----------------------------------------
Failed building wheel for biscuits
Running setup.py clean for biscuits
```
complete build-log: https://travis-ci.org/IdentityPython/pysaml2/jobs/443266333
More information about the pypy-issue
mailing list