Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release for cp3.10 is not on pypi #121

Closed
mayli opened this issue Jan 22, 2022 · 6 comments · Fixed by #136
Closed

New release for cp3.10 is not on pypi #121

mayli opened this issue Jan 22, 2022 · 6 comments · Fixed by #136

Comments

@mayli
Copy link

mayli commented Jan 22, 2022

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

@pwhipp
Copy link

pwhipp commented May 23, 2022

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
Copy link

pwhipp commented May 23, 2022

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

@messense
Copy link

messense commented Jul 1, 2022

Ping.

@DriverX
Copy link

DriverX commented Jul 29, 2022

ping

studioego added a commit to studioego/hiredis-py that referenced this issue Aug 4, 2022
make use of CFLAG=-std=c99 for travis CI build
It can support to build for old gcc versions (manylinux1, centos7 with gcc 4.8.5) etc.

related issue redis#121
@jdubs11
Copy link

jdubs11 commented Aug 8, 2022

Bump

@mayli
Copy link
Author

mayli commented Aug 8, 2022

#122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants