mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
43 stars 11 forks source link

pip installation fails with Python 3.10.8 #115

Closed frazar closed 1 year ago

frazar commented 1 year ago

Installation fails using on Arch. Maybe similar to #79 and related to #100.

Precise indication of pip, pyhton, and mpfr version:

$ python -V
Python 3.10.8
$ pip -V
pip 22.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)
$ pacman -Q | grep mpfr
mpfr 4.1.0.p13-3

Full log:

$ pip install --user bigfloat
Collecting bigfloat
  Using cached bigfloat-0.4.0.tar.gz (258 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from bigfloat) (1.16.0)
Building wheels for collected packages: bigfloat
  Building wheel for bigfloat (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [132 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/version.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/rounding_mode.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/mpfr_supplemental.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/ieee.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/formatting.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/core.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/context.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/__init__.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      creating build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_rounding_mode.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_mpfr.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_formatting.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_context.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_bigfloat.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test___all__.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/__init__.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      running build_ext
      building 'mpfr' extension
      creating build/temp.linux-x86_64-cpython-310
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/usr/include/python3.10 -c mpfr.c -o build/temp.linux-x86_64-cpython-310/mpfr.o
      mpfr.c: In function ‘__pyx_pf_4mpfr_68mpfr_root’:
      mpfr.c:8552:3: warning: ‘mpfr_root’ is deprecated [-Wdeprecated-declarations]
       8552 |   __pyx_t_2 = __Pyx_PyInt_From_int(mpfr_root((&__pyx_v_rop->_value), (&__pyx_v_op->_value), __pyx_v_k, __pyx_v_rnd)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 801, __pyx_L1_error)
            |   ^~~~~~~~~
      In file included from mpfr.c:615:
      /usr/include/mpfr.h:727:21: note: declared here
        727 | __MPFR_DECLSPEC int mpfr_root (mpfr_ptr, mpfr_srcptr, unsigned long,
            |                     ^~~~~~~~~
      mpfr.c: In function ‘__pyx_tp_dealloc_4mpfr_Mpfr_t’:
      mpfr.c:26974:5: error: lvalue required as increment operand
      26974 |     ++Py_REFCNT(o);
            |     ^~
      mpfr.c:26976:5: error: lvalue required as decrement operand
      26976 |     --Py_REFCNT(o);
            |     ^~
      mpfr.c: In function ‘__Pyx_ParseOptionalKeywords’:
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from mpfr.c:21:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c: In function ‘__Pyx_decode_c_bytes’:
      mpfr.c:33173:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
      33173 |         return PyUnicode_FromUnicode(NULL, 0);
            |         ^~~~~~
      /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      mpfr.c: In function ‘__Pyx_decode_c_string’:
      mpfr.c:33436:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
      33436 |         return PyUnicode_FromUnicode(NULL, 0);
            |         ^~~~~~
      /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      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 bigfloat
  Running setup.py clean for bigfloat
Failed to build bigfloat
Installing collected packages: bigfloat
  Running setup.py install for bigfloat ... error
  error: subprocess-exited-with-error

  × Running setup.py install for bigfloat did not run successfully.
  │ exit code: 1
  ╰─> [134 lines of output]
      running install
      /usr/lib/python3.10/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-310
      creating build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/version.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/rounding_mode.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/mpfr_supplemental.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/ieee.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/formatting.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/core.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/context.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      copying bigfloat/__init__.py -> build/lib.linux-x86_64-cpython-310/bigfloat
      creating build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_rounding_mode.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_mpfr.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_formatting.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_context.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test_bigfloat.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/test___all__.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      copying bigfloat/test/__init__.py -> build/lib.linux-x86_64-cpython-310/bigfloat/test
      running build_ext
      building 'mpfr' extension
      creating build/temp.linux-x86_64-cpython-310
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/usr/include/python3.10 -c mpfr.c -o build/temp.linux-x86_64-cpython-310/mpfr.o
      mpfr.c: In function ‘__pyx_pf_4mpfr_68mpfr_root’:
      mpfr.c:8552:3: warning: ‘mpfr_root’ is deprecated [-Wdeprecated-declarations]
       8552 |   __pyx_t_2 = __Pyx_PyInt_From_int(mpfr_root((&__pyx_v_rop->_value), (&__pyx_v_op->_value), __pyx_v_k, __pyx_v_rnd)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 801, __pyx_L1_error)
            |   ^~~~~~~~~
      In file included from mpfr.c:615:
      /usr/include/mpfr.h:727:21: note: declared here
        727 | __MPFR_DECLSPEC int mpfr_root (mpfr_ptr, mpfr_srcptr, unsigned long,
            |                     ^~~~~~~~~
      mpfr.c: In function ‘__pyx_tp_dealloc_4mpfr_Mpfr_t’:
      mpfr.c:26974:5: error: lvalue required as increment operand
      26974 |     ++Py_REFCNT(o);
            |     ^~
      mpfr.c:26976:5: error: lvalue required as decrement operand
      26976 |     --Py_REFCNT(o);
            |     ^~
      mpfr.c: In function ‘__Pyx_ParseOptionalKeywords’:
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from mpfr.c:21:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32897:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32897 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      mpfr.c:32913:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      32913 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      mpfr.c: In function ‘__Pyx_decode_c_bytes’:
      mpfr.c:33173:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
      33173 |         return PyUnicode_FromUnicode(NULL, 0);
            |         ^~~~~~
      /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      mpfr.c: In function ‘__Pyx_decode_c_string’:
      mpfr.c:33436:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
      33436 |         return PyUnicode_FromUnicode(NULL, 0);
            |         ^~~~~~
      /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      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: legacy-install-failure

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

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

The wrong usage of python refcount seems to be fixed in github main.

frazar commented 1 year ago

I confirm the package installs succesfully now. Thanks!


$ pip install git+https://github.com/mdickinson/bigfloat
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/mdickinson/bigfloat
  Cloning https://github.com/mdickinson/bigfloat to /tmp/pip-req-build-7dyp3cj2
  Running command git clone --filter=blob:none --quiet https://github.com/mdickinson/bigfloat /tmp/pip-req-build-7dyp3cj2
  Resolved https://github.com/mdickinson/bigfloat to commit 6a9dc17e4b6d82fb652ea6161986f3c3bdea2b55
  Preparing metadata (setup.py) ... done
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from bigfloat==0.5.0.dev0) (1.16.0)
Building wheels for collected packages: bigfloat
  Building wheel for bigfloat (setup.py) ... done
  Created wheel for bigfloat: filename=bigfloat-0.5.0.dev0-cp310-cp310-linux_x86_64.whl size=845732 sha256=b114392cc160ccb63e3d4c83275ebb34a90620fcae22bed12137740d78f6d6aa
  Stored in directory: /tmp/pip-ephem-wheel-cache-k5rwoh81/wheels/92/7e/ba/4321c49bfefe24699b7411a889728beada9c08b4df8df9c99f
Successfully built bigfloat
Installing collected packages: bigfloat
Successfully installed bigfloat-0.5.0.dev0```
LucasMahieu commented 7 months ago

Hello, is it planned to release a new version on PyPI to fix this issue ?

thanks