Closed fruch closed 4 years ago
Steps to reproduce:
install on python3.9 (dev, or alpha)
Expected behaviour: should compile nicely
Actual behaviour:
2020-07-26T08:37:57,481 building 'ssh2.knownhost' extension 2020-07-26T08:37:57,481 creating build/temp.linux-x86_64-3.9 2020-07-26T08:37:57,481 creating build/temp.linux-x86_64-3.9/ssh2 2020-07-26T08:37:57,481 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibssh2/include -I/home/fruch/.pyenv/versions/3.9-dev/envs/test-pip-3.9/include -I/home/fruch/.pyenv/versions/3.9-dev/include/python3.9 -c ssh2/knownhost.c -o build/temp.linux-x86_64-3.9/ssh2/knownhost.o -O3 2020-07-26T08:37:57,557 ssh2/knownhost.c: In function ‘__Pyx_modinit_type_init_code’: 2020-07-26T08:37:57,557 ssh2/knownhost.c:6543:45: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 2020-07-26T08:37:57,557 6543 | __pyx_type_4ssh2_9knownhost_KnownHostEntry.tp_print = 0; 2020-07-26T08:37:57,557 | ^ 2020-07-26T08:37:57,557 ssh2/knownhost.c:6551:40: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 2020-07-26T08:37:57,557 6551 | __pyx_type_4ssh2_9knownhost_KnownHost.tp_print = 0; 2020-07-26T08:37:57,557 | ^ 2020-07-26T08:37:57,569 ssh2/knownhost.c: In function ‘__Pyx_ParseOptionalKeywords’: 2020-07-26T08:37:57,570 ssh2/knownhost.c:7778:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,570 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,570 | ^ 2020-07-26T08:37:57,570 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,570 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,570 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,570 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,570 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,570 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,570 ssh2/knownhost.c:7778:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,570 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,570 | ^ 2020-07-26T08:37:57,570 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,570 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,570 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,570 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 2020-07-26T08:37:57,570 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 2020-07-26T08:37:57,570 | ^~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,570 ssh2/knownhost.c:7778:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,570 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,570 | ^ 2020-07-26T08:37:57,570 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,571 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,571 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,571 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,571 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,571 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,571 ssh2/knownhost.c:7778:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,571 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,571 | ^ 2020-07-26T08:37:57,571 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,571 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,571 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,571 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,571 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,571 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,571 ssh2/knownhost.c:7778:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,571 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,571 | ^ 2020-07-26T08:37:57,571 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,571 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,571 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,571 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 2020-07-26T08:37:57,571 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 2020-07-26T08:37:57,571 | ^~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,572 ssh2/knownhost.c:7778:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,572 7778 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,572 | ^ 2020-07-26T08:37:57,572 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,572 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,572 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,572 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,572 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,572 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,572 ssh2/knownhost.c:7794:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,572 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,572 | ^ 2020-07-26T08:37:57,572 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,572 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,572 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,572 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,572 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,572 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,572 ssh2/knownhost.c:7794:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,572 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,572 | ^ 2020-07-26T08:37:57,572 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,572 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,572 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,573 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 2020-07-26T08:37:57,573 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 2020-07-26T08:37:57,573 | ^~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,573 ssh2/knownhost.c:7794:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,573 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,573 | ^ 2020-07-26T08:37:57,573 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,573 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,573 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,573 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,573 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,573 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,573 ssh2/knownhost.c:7794:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,573 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,573 | ^ 2020-07-26T08:37:57,573 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,573 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,573 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,573 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,573 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,573 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,573 ssh2/knownhost.c:7794:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,574 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,574 | ^ 2020-07-26T08:37:57,574 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,574 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,574 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,574 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 2020-07-26T08:37:57,574 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 2020-07-26T08:37:57,574 | ^~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,574 ssh2/knownhost.c:7794:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 2020-07-26T08:37:57,574 7794 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : 2020-07-26T08:37:57,574 | ^ 2020-07-26T08:37:57,574 In file included from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/unicodeobject.h:1026, 2020-07-26T08:37:57,574 from /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/Python.h:97, 2020-07-26T08:37:57,574 from ssh2/knownhost.c:4: 2020-07-26T08:37:57,574 /home/fruch/.pyenv/versions/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 2020-07-26T08:37:57,574 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { 2020-07-26T08:37:57,574 | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-26T08:37:57,614 error: command '/usr/bin/gcc' failed with exit code 1 2020-07-26T08:37:57,631 ERROR: Failed building wheel for ssh2-python 2020-07-26T08:37:57,631 Running setup.py clean for ssh2-python 2020-07-26T08:37:57,631 Running command /home/fruch/.pyenv/versions/3.9-dev/envs/test-pip-3.9/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6yw0yhp5/ssh2-python_7bf77bd9668145eca8e33843695f6331/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6yw0yhp5/ssh2-python_7bf77bd9668145eca8e33843695f6331/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
Additional info:
ssh2-python==0.18.0.post1
Resolved by 0.19.0
Bug reports
Steps to reproduce:
install on python3.9 (dev, or alpha)
Expected behaviour: should compile nicely
Actual behaviour:
Additional info: