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
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.hfile (see bellow). Same with Python 3.12.Is there a way to install bgzip with Python releases >= 3.11?
Thanks!
Best