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

Pip install for version >= 3.11 #84

Open
bioinfo-chru-strasbourg opened this issue Jun 19, 2024 · 0 comments
Open

Pip install for version >= 3.11 #84

bioinfo-chru-strasbourg opened this issue Jun 19, 2024 · 0 comments

Comments

@bioinfo-chru-strasbourg

Dear team,

For my project, I use bgzip package. I use conda to create an env with Python 3.10, and install bgzip using pip install bgzip.

I'd like to use bgzip with Python >= 3.11, to be compliant with all Python releases. However, with a conda env using Python 3.11, the pip command fail due to an error with longintrepr.h file (see bellow). Same with Python 3.12.

Is there a way to install bgzip with Python releases >= 3.11?

Thanks!

$ pip install bgzip
Collecting bgzip
  Using cached bgzip-0.4.0.tar.gz (62 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: bgzip
  Building wheel for bgzip (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-311
      creating build/lib.macosx-10.9-x86_64-cpython-311/bgzip
      copying bgzip/version.py -> build/lib.macosx-10.9-x86_64-cpython-311/bgzip
      copying bgzip/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-311/bgzip
      running build_ext
      building 'bgzip.bgzip_utils' extension
      creating build/temp.macosx-10.9-x86_64-cpython-311
      creating build/temp.macosx-10.9-x86_64-cpython-311/bgzip_utils
      clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /usr/local/Caskroom/miniconda/base/envs/python_v3.11/include -fPIC -O2 -isystem /usr/local/Caskroom/miniconda/base/envs/python_v3.11/include -I/usr/local/Caskroom/miniconda/base/envs/python_v3.11/include/python3.11 -c bgzip_utils/bgzip_utils.c -o build/temp.macosx-10.9-x86_64-cpython-311/bgzip_utils/bgzip_utils.o -O3 -Xpreprocessor -fopenmp
      bgzip_utils/bgzip_utils.c:198:12: fatal error: 'longintrepr.h' file not found
        198 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/local/opt/llvm/bin/clang' 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 bgzip
  Running setup.py clean for bgzip
Failed to build bgzip
ERROR: Could not build wheels for bgzip, which is required to install pyproject.toml-based projects

Best

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

No branches or pull requests

1 participant