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

Failed building wheel for healpy #141

Open
tombickleastro opened this issue Nov 21, 2024 · 5 comments
Open

Failed building wheel for healpy #141

tombickleastro opened this issue Nov 21, 2024 · 5 comments

Comments

@tombickleastro
Copy link

I can't pip install on my windows machine, as it fails to download healpy properly.

@kelle
Copy link
Member

kelle commented Nov 21, 2024

Can you tell us more about your configuration. What version of Windows? Are you using WSL? Could you post the error message? Thanks!

@tombickleastro
Copy link
Author

Sure - i'm on Windows 11. No WSL.

Error is:

Building wheels for collected packages: healpy
Building wheel for healpy (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for healpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [88 lines of output]
C:\Users\tombi\AppData\Local\Temp\pip-build-env-t2js_a3_\overlay\Lib\site-packages\setuptools_distutils\extension.py:139: UserWarning: Unknown Extension options: 'cython_directives'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\conftest.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\cookbook.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\fitsfunc.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\newvisufunc.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\pixelfunc.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\projaxes.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\projector.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\rotator.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\sphtfunc.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\version.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\visufunc.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy\zoomtool.py -> build\lib.win-amd64-cpython-312\healpy
copying lib\healpy_init_.py -> build\lib.win-amd64-cpython-312\healpy
creating build\lib.win-amd64-cpython-312\healpy\utils
copying lib\healpy\utils\deprecation.py -> build\lib.win-amd64-cpython-312\healpy\utils
copying lib\healpy\utils_init_.py -> build\lib.win-amd64-cpython-312\healpy\utils
running egg_info
writing lib\healpy.egg-info\PKG-INFO
writing dependency_links to lib\healpy.egg-info\dependency_links.txt
writing requirements to lib\healpy.egg-info\requires.txt
writing top-level names to lib\healpy.egg-info\top_level.txt
pkg-config is not installed, falling back to pykg-config
checking if configure script for library 'cfitsio' exists
checking if configure script for library 'sharp' exists
checking if configure script for library 'healpix_cxx' exists
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'lib\healpy.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'test\data\ipython*'
warning: no previously-included files found matching 'cextern\cfitsio*pdf'
warning: no previously-included files found matching 'cextern\cfitsio*ps'
warning: no previously-included files found matching 'cextern\cfitsio*doc'
warning: no previously-included files found matching 'cextern\cfitsio*tex'
no previously-included directories found matching 'cextern\cfitsio\docs'
warning: no previously-included files found matching '.so'
warning: no previously-included files found matching '
.a'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitmodules'
warning: no previously-included files found matching 'clean.sh'
warning: no files found matching 'src_line_integral_convolution_lib.h'
warning: no files found matching 'src_query_disc.cpp'
warning: no files found matching 'src_sphtools.cpp'
warning: no files found matching 'src_pixelfunc.cpp'
warning: no files found matching 'src_masktools.cpp'
warning: no files found matching 'src_hotspots.cpp'
warning: no files found matching 'src_line_integral_convolution.cpp'
adding license file 'COPYING'
writing manifest file 'lib\healpy.egg-info\SOURCES.txt'
creating build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0002.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0004.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0008.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0016.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0032.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0064.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0128.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0256.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n0512.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n1024.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n2048.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n4096.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\pixel_window_n8192.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00002.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00004.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00008.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00016.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00032.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00064.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00128.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00256.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n00512.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n01024.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n02048.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n04096.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\weight_ring_n08192.fits -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\planck_cmap.dat -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\planck_log_cmap.dat -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\wmap_cmap.dat -> build\lib.win-amd64-cpython-312\healpy\data
copying lib\healpy\data\totcls.dat -> build\lib.win-amd64-cpython-312\healpy\data
running build_clib
checking if library 'cfitsio' is installed
error: [WinError 193] %1 is not a valid Win32 application
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for healpy
Failed to build healpy
ERROR: Could not build wheels for healpy, which is required to install pyproject.toml-based projects

@kelle
Copy link
Member

kelle commented Nov 21, 2024

I'm gonna be honest with you: in my many years of running computing workshops and supporting/mentoring folks with a wide variety of machines, the only way I've ever found to make scientific computing work on a Windows machines is via WSL. WSL lets you run a Linux environment inside Windows and gives you a real Linux command line.

The install instructions are pretty good and the default Ubuntu installation is a fine choice: https://learn.microsoft.com/en-us/windows/wsl/install

@kelle
Copy link
Member

kelle commented Nov 21, 2024

Also, when is the last time you tried to install? We've recently made some packaging improvements which seemed to have fixed this healpy installation problem for other windows users: see #118.

@kelle
Copy link
Member

kelle commented Nov 22, 2024

I have confirmed with the other Windows user that they got it to install under WSL/Ubuntu.

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