-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error when install fitsio on linux, both 'pip install fitsio' and 'python setup.py install' failed. #406
Comments
× Building wheel for fitsio (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
You need to have the bzip2 library installed. |
Note you can also use |
When I run 'conda install fitsio', still failed:
PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're
and use the search bar at the top of the page. |
You need conda forge in your channels
|
Collecting fitsio
Downloading fitsio-1.2.4.tar.gz (4.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 8.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in ./anaconda3/lib/python3.11/site-packages (from fitsio) (1.26.4)
Building wheels for collected packages: fitsio
Building wheel for fitsio (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [191 lines of output]
/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fitsio
Running setup.py clean for fitsio
Failed to build fitsio
ERROR: Could not build wheels for fitsio, which is required to install pyproject.toml-based projects
2.Then, I used the 'python setup.py install', failed agian.
/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
!!
dist.fetch_build_eggs(dist.setup_requires)
running install
/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
!!
self.initialize_options()
/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
!!
self.initialize_options()
running bdist_egg
running egg_info
creating fitsio.egg-info
writing fitsio.egg-info/PKG-INFO
writing dependency_links to fitsio.egg-info/dependency_links.txt
writing requirements to fitsio.egg-info/requires.txt
writing top-level names to fitsio.egg-info/top_level.txt
writing manifest file 'fitsio.egg-info/SOURCES.txt'
reading manifest file 'fitsio.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'fitsio.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/fitsio
copying fitsio/init.py -> build/lib.linux-x86_64-cpython-311/fitsio
copying fitsio/fits_exceptions.py -> build/lib.linux-x86_64-cpython-311/fitsio
copying fitsio/fitslib.py -> build/lib.linux-x86_64-cpython-311/fitsio
copying fitsio/header.py -> build/lib.linux-x86_64-cpython-311/fitsio
copying fitsio/util.py -> build/lib.linux-x86_64-cpython-311/fitsio
creating build/lib.linux-x86_64-cpython-311/fitsio/hdu
copying fitsio/hdu/init.py -> build/lib.linux-x86_64-cpython-311/fitsio/hdu
copying fitsio/hdu/base.py -> build/lib.linux-x86_64-cpython-311/fitsio/hdu
copying fitsio/hdu/image.py -> build/lib.linux-x86_64-cpython-311/fitsio/hdu
copying fitsio/hdu/table.py -> build/lib.linux-x86_64-cpython-311/fitsio/hdu
creating build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/init.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/checks.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/makedata.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_empty_slice.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_header.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_header_junk.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_image.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_image_compression.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_lib.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_table.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
copying fitsio/tests/test_warnings.py -> build/lib.linux-x86_64-cpython-311/fitsio/tests
/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/build_py.py:204: _Warning: Package 'fitsio.test_images' is absent from the
packages
configuration.!!
!!
check.warn(importable)
copying fitsio/fitsio_pywrap.c -> build/lib.linux-x86_64-cpython-311/fitsio
creating build/lib.linux-x86_64-cpython-311/fitsio/test_images
copying fitsio/test_images/test_gzip_compressed_image.fits.fz -> build/lib.linux-x86_64-cpython-311/fitsio/test_images
running build_ext
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/Makefile.in
Hunk #1 succeeded at 70 (offset 1 line).
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/Makefile.in
Hunk #1 succeeded at 70 (offset 1 line).
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/configure.in
Hunk #1 succeeded at 129 (offset 76 lines).
Hunk #2 succeeded at 153 (offset 76 lines).
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/configure.in
Hunk #1 succeeded at 129 (offset 76 lines).
Hunk #2 succeeded at 153 (offset 76 lines).
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/configure
Hunk #3 succeeded at 3787 (offset 1162 lines).
Hunk #4 succeeded at 3816 with fuzz 1 (offset 1162 lines).
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/configure
Hunk #3 succeeded at 3787 (offset 1162 lines).
Hunk #4 succeeded at 3816 with fuzz 1 (offset 1162 lines).
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitscore.c
Hunk #1 succeeded at 197 (offset 3 lines).
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitscore.c
Hunk #1 succeeded at 197 (offset 3 lines).
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitsio.h
Hunk #1 succeeded at 810 (offset -1 lines).
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitsio.h
Hunk #1 succeeded at 810 (offset -1 lines).
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitsio2.h
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/fitsio2.h
checking file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/putcols.c
patching file build/temp.linux-x86_64-cpython-311/cfitsio-4.4.1-20240617/putcols.c
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for main in -lbz2... no
configure: error: Unable to locate bz2 library needed when enabling bzip2 support; try specifying the path
Traceback (most recent call last):
File "/home/wenlk/Downloads/fitsio/setup.py", line 319, in
setup(
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/install.py", line 84, in run
self.do_egg_install()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/install.py", line 132, in do_egg_install
self.run_command('bdist_egg')
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/wenlk/Downloads/fitsio/setup.py", line 106, in run
build_ext.run(self)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/wenlk/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/wenlk/Downloads/fitsio/setup.py", line 130, in build_extensions
self.configure_cfitsio(
File "/home/wenlk/Downloads/fitsio/setup.py", line 272, in configure_cfitsio
raise ValueError(
ValueError: could not configure cfitsio 4.4.1-20240617
The text was updated successfully, but these errors were encountered: