BDNYC / sedkit

Spectral energy distribution construction and analysis tools
https://sedkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
18 stars 13 forks source link

Failed building wheel for healpy #141

Open tombickleastro opened 20 hours ago

tombickleastro commented 20 hours ago

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

kelle commented 20 hours ago

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

tombickleastro commented 20 hours ago

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-t2jsa3\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 commented 20 hours ago

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 commented 20 hours ago

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 https://github.com/BDNYC/sedkit/issues/118.