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

Building with Python 3.11 fails #358

Closed
dstansby opened this issue May 6, 2023 · 1 comment
Closed

Building with Python 3.11 fails #358

dstansby opened this issue May 6, 2023 · 1 comment

Comments

@dstansby
Copy link
Contributor

dstansby commented May 6, 2023

Re-opening #297 as it isn't fixed for me locally:

% python -m build --wheel
* Creating venv isolated environment...
* Installing packages in isolated environment... (cython==0.29.32, extension-helpers, oldest-supported-numpy, setuptools, setuptools_scm, wheel)
* Getting dependencies for wheel...
* Installing packages in isolated environment... (setuptools_scm, wheel)
* Building wheel...
running bdist_wheel
running build
running build_py
creating build/lib.macosx-11.0-arm64-cpython-311
creating build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/wcs_utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/conftest.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/version.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/array_utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
copying reproject/utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/tests
copying reproject/tests/test_utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests
copying reproject/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests
copying reproject/tests/helpers.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests
copying reproject/tests/test_high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
copying reproject/mosaicking/subset_array.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
copying reproject/mosaicking/background.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
copying reproject/mosaicking/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
copying reproject/mosaicking/coadd.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
copying reproject/mosaicking/wcs_helpers.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/overlap.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/setup_package.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix
copying reproject/healpix/high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix
copying reproject/healpix/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix
copying reproject/healpix/core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix
copying reproject/healpix/utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive
copying reproject/adaptive/high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive
copying reproject/adaptive/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive
copying reproject/adaptive/core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation
copying reproject/interpolation/high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation
copying reproject/interpolation/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation
copying reproject/interpolation/core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
copying reproject/mosaicking/tests/test_coadd.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
copying reproject/mosaicking/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
copying reproject/mosaicking/tests/test_subset_array.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
copying reproject/mosaicking/tests/test_background.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
copying reproject/mosaicking/tests/test_wcs_helpers.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/tests
copying reproject/spherical_intersect/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/tests
copying reproject/spherical_intersect/tests/test_reproject.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/tests
copying reproject/spherical_intersect/tests/test_overlap.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/tests
copying reproject/spherical_intersect/tests/test_high_level.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests
copying reproject/healpix/tests/test_utils.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests
copying reproject/healpix/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests
copying reproject/healpix/tests/test_healpix.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests
copying reproject/adaptive/tests/test_core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests
copying reproject/adaptive/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests
copying reproject/interpolation/tests/test_core.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests
copying reproject/interpolation/tests/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/mwpan2_RGB_3600.hdr -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/equatorial_3d.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/gc_ga.hdr -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/secchi_l0_b.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/cube.hdr -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/aia_171_level1.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/galactic_2d.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/secchi_l0_a.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/gc_eq.hdr -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/tests/data/aia_171_level1.asdf -> build/lib.macosx-11.0-arm64-cpython-311/reproject/tests/data
copying reproject/spherical_intersect/overlapArea.h -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/reproject_slice_c.h -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
copying reproject/spherical_intersect/mNaN.h -> build/lib.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests/reference
copying reproject/mosaicking/tests/reference/test_coadd_solar_map.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/mosaicking/tests/reference
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests/data
copying reproject/healpix/tests/data/reference_result.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests/data
copying reproject/healpix/tests/data/bayestar.fits.gz -> build/lib.macosx-11.0-arm64-cpython-311/reproject/healpix/tests/data
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests/reference
copying reproject/adaptive/tests/reference/test_reproject_adaptive_2d.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests/reference
copying reproject/adaptive/tests/reference/test_reproject_adaptive_uncentered_jacobian.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests/reference
copying reproject/adaptive/tests/reference/test_reproject_adaptive_roundtrip.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests/reference
copying reproject/adaptive/tests/reference/test_reproject_adaptive_2d_rotated.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/adaptive/tests/reference
creating build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests/reference
copying reproject/interpolation/tests/reference/test_small_cutout.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests/reference
copying reproject/interpolation/tests/reference/test_reproject_roundtrip.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests/reference
copying reproject/interpolation/tests/reference/test_reproject_celestial_2d_gal2equ.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests/reference
copying reproject/interpolation/tests/reference/test_reproject_celestial_3d_equ2gal.fits -> build/lib.macosx-11.0-arm64-cpython-311/reproject/interpolation/tests/reference
running build_ext
skipping 'reproject/spherical_intersect/_overlap.c' Cython extension (up-to-date)
skipping './reproject/adaptive/deforest.c' Cython extension (up-to-date)
building 'reproject.spherical_intersect._overlap' extension
creating build/temp.macosx-11.0-arm64-cpython-311
creating build/temp.macosx-11.0-arm64-cpython-311/reproject
creating build/temp.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dstansby/mambaforge/envs/sunpy-dev/include -arch arm64 -fPIC -O2 -isystem /Users/dstansby/mambaforge/envs/sunpy-dev/include -arch arm64 -I/var/folders/m4/v0b71w0s22z34l90psw9j82w0000gn/T/build-env-j0chczv6/lib/python3.11/site-packages/numpy/core/include -Ireproject/spherical_intersect -I/var/folders/m4/v0b71w0s22z34l90psw9j82w0000gn/T/build-env-j0chczv6/include -I/Users/dstansby/mambaforge/envs/sunpy-dev/include/python3.11 -c reproject/spherical_intersect/_overlap.c -o build/temp.macosx-11.0-arm64-cpython-311/reproject/spherical_intersect/_overlap.o -O2
reproject/spherical_intersect/_overlap.c:196:12: fatal error: 'longintrepr.h' file not found
  #include "longintrepr.h"
           ^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

ERROR Backend subproccess exited when trying to invoke build_wheel
@dstansby
Copy link
Contributor Author

dstansby commented May 6, 2023

Woops, this is because I had some old pre-compiled files hanging around.

@dstansby dstansby closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2023
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