crankycoder / hydra

A Python Bloomfilter
MIT License
20 stars 6 forks source link

legacy-install-failure on Python3.9 #22

Open elenavolkova93 opened 2 years ago

elenavolkova93 commented 2 years ago

Hi,

I'm running into legacy-install-failure on python3.9 Works fine in python3.8:

$ virtualenv -p $(which python3.8) venv38 && . venv38/bin/activate
(venv38)$ pip install Hydra

but in a similar venv with python3.9 raises an error:

Looking in indexes: https://pypi.org/simple, https://1bisUA-4ufPUyntFiZtPSpbk6FyOBc:****@repo.oncoimmunity.com/pypi/
Collecting Hydra
  Using cached Hydra-2.5.tar.gz (82 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: Hydra
  Building wheel for Hydra (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [157 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      copying src/hydra.py -> build/lib.linux-x86_64-cpython-39
      running build_ext
      building '_hydra' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/src
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-u5zxbqtz/hydra_195a6ba892c8402c9fd241775af97065/src -I/home/elenav/antigen-model-builder/venv39/include -I/usr/include/python3.9 -c src/MurmurHash3.c -o build/temp.linux-x86_64-cpython-39/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-u5zxbqtz/hydra_195a6ba892c8402c9fd241775af97065/src -I/home/elenav/antigen-model-builder/venv39/include -I/usr/include/python3.9 -c src/_hydra.c -o build/temp.linux-x86_64-cpython-39/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      src/_hydra.c: In function ‘__pyx_pf_6_hydra_8MMapIter_2__next__’:
      src/_hydra.c:3377:36: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
       3377 |   __pyx_t_3 = ((__pyx_v_self->_idx < __pyx_t_2) != 0);
            |                                    ^
      src/_hydra.c: In function ‘PyInit__hydra’:
      src/_hydra.c:8530:34: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8530 |   __pyx_type_6_hydra_MMapBitField.tp_print = 0;
            |                                  ^
      src/_hydra.c:8535:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8535 |   __pyx_type_6_hydra_MMapIter.tp_print = 0;
            |                              ^
      src/_hydra.c:8539:39: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8539 |   __pyx_type_6_hydra_BloomCalculations.tp_print = 0;
            |                                       ^
      src/_hydra.c:8551:33: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8551 |   __pyx_type_6_hydra_BloomFilter.tp_print = 0;
            |                                 ^
      src/_hydra.c: In function ‘__Pyx_ParseOptionalKeywords’:
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c: In function ‘__Pyx_CyFunction_Call’:
      src/_hydra.c:11521:2: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations]
      11521 |  return PyCFunction_Call(func, arg, kw);
            |  ^~~~~~
      In file included from /usr/include/python3.9/Python.h:107,
                       from src/_hydra.c:16:
      /usr/include/python3.9/methodobject.h:33:43: note: declared here
         33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
            |                                           ^~~~~~~~~~~~~~~~
      src/_hydra.c: In function ‘__pyx_CyFunction_init’:
      src/_hydra.c:11586:5: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations]
      11586 |     __pyx_CyFunctionType_type.tp_call = PyCFunction_Call;
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.9/Python.h:107,
                       from src/_hydra.c:16:
      /usr/include/python3.9/methodobject.h:33:43: note: declared here
         33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
            |                                           ^~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Hydra
  Running setup.py clean for Hydra
Failed to build Hydra
Installing collected packages: Hydra
  Running setup.py install for Hydra ... error
  error: subprocess-exited-with-error

  × Running setup.py install for Hydra did not run successfully.
  │ exit code: 1
  ╰─> [159 lines of output]
      running install
      /home/elenav/antigen-model-builder/venv39/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      copying src/hydra.py -> build/lib.linux-x86_64-cpython-39
      running build_ext
      building '_hydra' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/src
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-u5zxbqtz/hydra_195a6ba892c8402c9fd241775af97065/src -I/home/elenav/antigen-model-builder/venv39/include -I/usr/include/python3.9 -c src/MurmurHash3.c -o build/temp.linux-x86_64-cpython-39/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-u5zxbqtz/hydra_195a6ba892c8402c9fd241775af97065/src -I/home/elenav/antigen-model-builder/venv39/include -I/usr/include/python3.9 -c src/_hydra.c -o build/temp.linux-x86_64-cpython-39/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      src/_hydra.c: In function ‘__pyx_pf_6_hydra_8MMapIter_2__next__’:
      src/_hydra.c:3377:36: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
       3377 |   __pyx_t_3 = ((__pyx_v_self->_idx < __pyx_t_2) != 0);
            |                                    ^
      src/_hydra.c: In function ‘PyInit__hydra’:
      src/_hydra.c:8530:34: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8530 |   __pyx_type_6_hydra_MMapBitField.tp_print = 0;
            |                                  ^
      src/_hydra.c:8535:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8535 |   __pyx_type_6_hydra_MMapIter.tp_print = 0;
            |                              ^
      src/_hydra.c:8539:39: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8539 |   __pyx_type_6_hydra_BloomCalculations.tp_print = 0;
            |                                       ^
      src/_hydra.c:8551:33: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       8551 |   __pyx_type_6_hydra_BloomFilter.tp_print = 0;
            |                                 ^
      src/_hydra.c: In function ‘__Pyx_ParseOptionalKeywords’:
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9924 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       9940 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src/_hydra.c:16:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_hydra.c: In function ‘__Pyx_CyFunction_Call’:
      src/_hydra.c:11521:2: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations]
      11521 |  return PyCFunction_Call(func, arg, kw);
            |  ^~~~~~
      In file included from /usr/include/python3.9/Python.h:107,
                       from src/_hydra.c:16:
      /usr/include/python3.9/methodobject.h:33:43: note: declared here
         33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
            |                                           ^~~~~~~~~~~~~~~~
      src/_hydra.c: In function ‘__pyx_CyFunction_init’:
      src/_hydra.c:11586:5: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations]
      11586 |     __pyx_CyFunctionType_type.tp_call = PyCFunction_Call;
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.9/Python.h:107,
                       from src/_hydra.c:16:
      /usr/include/python3.9/methodobject.h:33:43: note: declared here
         33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
            |                                           ^~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> Hydra

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I'm using pip 22.0.4, wheel 0.37.1, Ubuntu 20.04.5.

The package hasn't been updated in a while: is it still supposed to be compatible with newer versions of Python? What are folks' plans wrt the maintenance of this repo?

clissa commented 1 year ago

I am running into the same problem using pip 22.3.1, wheel 0.37.1, python 3.9.16 on CentOS Linux release 7.9.2009 (Core).

I tried upgrading pip to pip 23.1.2 and now I get a different error:

pip install Hydra
Collecting Hydra
  Using cached Hydra-2.5.tar.gz (82 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: Hydra
  Building wheel for Hydra (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [55 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      copying src/hydra.py -> build/lib.linux-x86_64-cpython-39
      running build_ext
      building '_hydra' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/src
      gcc -pthread -B /home/HPC/lclissahpc/miniconda3/envs/sam/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/HPC/lclissahpc/miniconda3/envs/sam/include -I/home/HPC/lclissahpc/miniconda3/envs/sam/include -fPIC -O2 -isystem /home/HPC/lclissahpc/miniconda3/envs/sam/include -fPIC -I/tmp/pip-install-5gn9l9pk/hydra_15c7f60ab7c244719faf8e4c98f70c6e/src -I/home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9 -c src/MurmurHash3.c -o build/temp.linux-x86_64-cpython-39/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      gcc -pthread -B /home/HPC/lclissahpc/miniconda3/envs/sam/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/HPC/lclissahpc/miniconda3/envs/sam/include -I/home/HPC/lclissahpc/miniconda3/envs/sam/include -fPIC -O2 -isystem /home/HPC/lclissahpc/miniconda3/envs/sam/include -fPIC -I/tmp/pip-install-5gn9l9pk/hydra_15c7f60ab7c244719faf8e4c98f70c6e/src -I/home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9 -c src/_hydra.c -o build/temp.linux-x86_64-cpython-39/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      src/_hydra.c: In function ‘__pyx_pf_6_hydra_8MMapIter_2__next__’:
      src/_hydra.c:3377:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         __pyx_t_3 = ((__pyx_v_self->_idx < __pyx_t_2) != 0);
                                          ^
      src/_hydra.c: In function ‘PyInit__hydra’:
      src/_hydra.c:8530:34: error: ‘PyTypeObject’ has no member named ‘tp_print’
         __pyx_type_6_hydra_MMapBitField.tp_print = 0;
                                        ^
      src/_hydra.c:8535:30: error: ‘PyTypeObject’ has no member named ‘tp_print’
         __pyx_type_6_hydra_MMapIter.tp_print = 0;
                                    ^
      src/_hydra.c:8539:39: error: ‘PyTypeObject’ has no member named ‘tp_print’
         __pyx_type_6_hydra_BloomCalculations.tp_print = 0;
                                             ^
      src/_hydra.c:8551:33: error: ‘PyTypeObject’ has no member named ‘tp_print’
         __pyx_type_6_hydra_BloomFilter.tp_print = 0;
                                       ^
      src/_hydra.c: In function ‘__Pyx_ParseOptionalKeywords’:
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
                           (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                           ^
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:580) [-Wdeprecated-declarations]
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c:9924:21: warning: ‘PyUnicode_AsUnicode’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:580) [-Wdeprecated-declarations]
      src/_hydra.c:9924:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
                               (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                               ^
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:580) [-Wdeprecated-declarations]
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c:9940:25: warning: ‘PyUnicode_AsUnicode’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:580) [-Wdeprecated-declarations]
      src/_hydra.c:9940:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/cpython/unicodeobject.h:446) [-Wdeprecated-declarations]
      src/_hydra.c: In function ‘__Pyx_CyFunction_Call’:
      src/_hydra.c:11521:2: warning: ‘PyCFunction_Call’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/methodobject.h:33) [-Wdeprecated-declarations]
        return PyCFunction_Call(func, arg, kw);
        ^
      src/_hydra.c: In function ‘__pyx_CyFunction_init’:
      src/_hydra.c:11586:5: warning: ‘PyCFunction_Call’ is deprecated (declared at /home/HPC/lclissahpc/miniconda3/envs/sam/include/python3.9/methodobject.h:33) [-Wdeprecated-declarations]
           __pyx_CyFunctionType_type.tp_call = PyCFunction_Call;
           ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Hydra
  Running setup.py clean for Hydra
Failed to build Hydra
ERROR: Could not build wheels for Hydra, which is required to install pyproject.toml-based projects

Any idea?