antocuni / capnpy

Other
45 stars 26 forks source link

compiler warning on 3.8: 'tp_print' is deprecated #50

Closed gjcarneiro closed 4 years ago

gjcarneiro commented 4 years ago
 capnproto_schemas/mir_merged/mir_stream.c:468823:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
   0, /*tp_print*/
   ^
 /pyenv/versions/3.8.2/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
     Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
     ^
antocuni commented 4 years ago

this is caused by using an old Cython version. I just tested with Python 3.8 and Cython 0.29.21 and it compiles without warnings

thomasahle commented 3 years ago

Strange, I have Python 3.8.5 and Cython 0.29.21 and I'm drowned in copies of this warning.

bechtold commented 3 years ago

I can support what @thomasahle said, Python 3.8.5 and Cython 0.29.21 on MacOS gives these warnings.

yangzhangpsy commented 3 years ago

I can support what @thomasahle said too, Python 3.8.2 and Cython 0.29.22 (or 3.06a) on macOS give these warnings.

bechtold commented 3 years ago

Not a Problem with Python 3.9.2 and Cython 0.29.22 anymore.

yangzhangpsy commented 3 years ago

Not a Problem with Python 3.9.2 and Cython 0.29.22 anymore.

good news~