hiredis-py icon indicating copy to clipboard operation
hiredis-py copied to clipboard

New release for cp3.10 is not on pypi

Open mayli opened this issue 2 years ago • 6 comments

Time for a new release? Btw, travis-ci.org is dead, maybe time to move to github action and cibuildwheel?

mayli avatar Jan 22 '22 04:01 mayli

Will a new release address this problem in 3.10.4?

(sosmgr3.10) src $ python --version
Python 3.10.4
(sosmgr3.10) src $ pip install hiredis
Collecting hiredis
  Using cached hiredis-2.0.0.tar.gz (75 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: hiredis
  Building wheel for hiredis (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      /tmp/pip-install-u_xazdnw/hiredis_c419aefbe7734c3187bb5db074c64b23/setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
        import sys, imp, os, glob, io
      /home/paul/wk/cliosoft/sosmgrweb/venv/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/hiredis
      copying hiredis/__init__.py -> build/lib.linux-x86_64-3.10/hiredis
      copying hiredis/version.py -> build/lib.linux-x86_64-3.10/hiredis
      copying hiredis/hiredis.pyi -> build/lib.linux-x86_64-3.10/hiredis
      copying hiredis/py.typed -> build/lib.linux-x86_64-3.10/hiredis
      running build_ext
      building 'hiredis.hiredis' extension
      creating build/temp.linux-x86_64-3.10
      creating build/temp.linux-x86_64-3.10/src
      creating build/temp.linux-x86_64-3.10/vendor
      creating build/temp.linux-x86_64-3.10/vendor/hiredis
      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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ivendor -I/home/paul/wk/cliosoft/sosmgrweb/venv/include -I/usr/include/python3.10 -c src/hiredis.c -o build/temp.linux-x86_64-3.10/src/hiredis.o
      In file included from src/hiredis.c:1:
      src/hiredis.h:4:10: fatal error: Python.h: No such file or directory
          4 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      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 hiredis
  Running setup.py clean for hiredis
Failed to build hiredis
Installing collected packages: hiredis
  Running setup.py install for hiredis ... error
  error: subprocess-exited-with-error

pwhipp avatar May 23 '22 00:05 pwhipp

Answering my own question: No. Just have to remember to sudo apt install python3.10-dev doh.

pwhipp avatar May 23 '22 00:05 pwhipp

Ping.

messense avatar Jul 01 '22 08:07 messense

ping

DriverX avatar Jul 29 '22 15:07 DriverX

Bump

jdubs11 avatar Aug 08 '22 16:08 jdubs11

https://github.com/redis/hiredis-py/pull/122

mayli avatar Aug 08 '22 22:08 mayli