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

Install fails for python 3.11: longintrepr.h: No such file or directory #18

Open
jessjaco opened this issue Jul 10, 2023 · 1 comment
Open

Comments

@jessjaco
Copy link

pip install hdstats on python 3.11.x produces the following error. Additional context here.

Collecting hdstats
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /srv/conda/envs/notebook/lib/python3.11/site-packages (from hdstats) (1.24.3)
Requirement already satisfied: scipy in /srv/conda/envs/notebook/lib/python3.11/site-packages (from hdstats) (1.10.1)
Building wheels for collected packages: hdstats
  Building wheel for hdstats (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for hdstats (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      {'include_dirs': ['/tmp/pip-build-env-zn64f58o/overlay/lib/python3.11/site-packages/numpy/core/include'], 'extra_compile_args': ['-fopenmp'], 'extra_link_args': ['-fopenmp'], 'define_macros': []}
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/__init__.py -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/tsslow.py -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/utils.py -> build/lib.linux-x86_64-cpython-311/hdstats
      running egg_info
      writing hdstats.egg-info/PKG-INFO
      writing dependency_links to hdstats.egg-info/dependency_links.txt
      writing requirements to hdstats.egg-info/requires.txt
      writing top-level names to hdstats.egg-info/top_level.txt
      reading manifest file 'hdstats.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.rst' anywhere in distribution
      warning: no files found matching '*.pxd' anywhere in distribution
      warning: no files found matching '*.h' anywhere in distribution
      no previously-included directories found matching '.eggs'
      no previously-included directories found matching 'tests'
      no previously-included directories found matching 'data'
      no previously-included directories found matching 'docs'
      no previously-included directories found matching '.vscode'
      writing manifest file 'hdstats.egg-info/SOURCES.txt'
      copying hdstats/dtw.c -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/dtw.pyx -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/geomad.c -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/geomad.pyx -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/geomedian.c -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/geomedian.pyx -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/ts.c -> build/lib.linux-x86_64-cpython-311/hdstats
      copying hdstats/ts.pyx -> build/lib.linux-x86_64-cpython-311/hdstats
      running build_ext
      skipping 'hdstats/geomedian.c' Cython extension (up-to-date)
      skipping 'hdstats/geomad.c' Cython extension (up-to-date)
      skipping 'hdstats/ts.c' Cython extension (up-to-date)
      skipping 'hdstats/dtw.c' Cython extension (up-to-date)
      building 'hdstats.geomedian' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/hdstats
      /srv/conda/envs/notebook/bin/x86_64-conda-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /srv/conda/envs/notebook/include -fPIC -O2 -isystem /srv/conda/envs/notebook/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /srv/conda/envs/notebook/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /srv/conda/envs/notebook/include -fPIC -I/tmp/pip-build-env-zn64f58o/overlay/lib/python3.11/site-packages/numpy/core/include -I/srv/conda/envs/notebook/include/python3.11 -c hdstats/geomedian.c -o build/temp.linux-x86_64-cpython-311/hdstats/geomedian.o -fopenmp
      hdstats/geomedian.c:196:12: fatal error: longintrepr.h: No such file or directory
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/srv/conda/envs/notebook/bin/x86_64-conda-linux-gnu-cc' failed with exit code 1
      [end of output]
@pgodwin-cdu
Copy link

I had the same issue using Python 3.10.13

Building wheels for collected packages: hdstats, timezonefinder, pims
Building wheel for hdstats (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for hdstats (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
{'include_dirs': ['C:\Users\godwip01\AppData\Local\Temp\pip-build-env-ya2yv6by\overlay\Lib\site-packages\numpy\core\include'], 'extra_compile_args': ['-fopenmp'], 'extra_link_args': ['-fopenmp'], 'define_macros': []}
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\hdstats
copying hdstats\tsslow.py -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\utils.py -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats_init_.py -> build\lib.win-amd64-cpython-310\hdstats
running egg_info
writing hdstats.egg-info\PKG-INFO
writing dependency_links to hdstats.egg-info\dependency_links.txt
writing requirements to hdstats.egg-info\requires.txt
writing top-level names to hdstats.egg-info\top_level.txt
reading manifest file 'hdstats.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.rst' anywhere in distribution
warning: no files found matching '
.pxd' anywhere in distribution
warning: no files found matching '*.h' anywhere in distribution
no previously-included directories found matching '.eggs'
no previously-included directories found matching 'tests'
no previously-included directories found matching 'data'
no previously-included directories found matching 'docs'
no previously-included directories found matching '.vscode'
writing manifest file 'hdstats.egg-info\SOURCES.txt'
copying hdstats\dtw.c -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\dtw.pyx -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\geomad.c -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\geomad.pyx -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\geomedian.c -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\geomedian.pyx -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\ts.c -> build\lib.win-amd64-cpython-310\hdstats
copying hdstats\ts.pyx -> build\lib.win-amd64-cpython-310\hdstats
running build_ext
Compiling hdstats/geomedian.pyx because it changed.
[1/1] Cythonizing hdstats/geomedian.pyx
building 'hdstats.geomedian' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hdstats

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

2 participants