-
Notifications
You must be signed in to change notification settings - Fork 58
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
pip install fitsio fails on up-to-date Microsoft Windows 10 #313
Comments
UPDATE:
Unfortunately, retrying pip install produced the following result: PS C:\WINDOWS\system32> pip install fitsio |
Regarding: Is AttributeError: 'MSVCCompiler' object has no attribute 'compiler' when trying to install a numpy extension (https://stackoverflow.com/questions/45702457/attributeerror-msvccompiler-object-has-no-attribute-compiler-when-trying-to) relevant? |
None of the core developers uses windows, so we haven't been able to dig into any of the windows related issues. A contribution from a windows expert would be highly valued. |
Hello Erin. Thanks for your quick response. Regarding: AttributeError: 'MSVCCompiler' object has no attribute 'compiler' when trying to install a numpy extension (https://stackoverflow.com/questions/45702457/attributeerror-msvccompiler-object-has-no-attribute-compiler-when-trying-to) contains the following information: If you want to fix this yourself, I recommend looking for any line of your setup.py file containing the "self.compiler.compiler[0]" part and commenting it out._ |
Yeah, the |
Also, you may want to make this package pep517-compliant so that builds (compiling the C source code) happen in an isolated, defined environment. That means adding a This would make installations more reliable as the package maintainers can then specify what build dependencies are, not relying on whatever happens to be installed on the user's system, which is what happens under a "legacy" build. After all, building the package and using the package may have different dependency requirements. |
I'm having the same issue. Has anyone been able to figure it out? |
Hi everyone! Maybe this could be useful f you need to just install fitsio and it does not matter with which compilers:
Here is the test output i had after installation: Click to expand!`testNonStandardKeyValue (fitsio.test.TestWarnings) ... okRan 1 test in 0.044s OK ======================================================================
|
Hello. I saw an earlier issue regarding pip install, but my issue appears to be different. I am using python 3.9. I hope someone is able to provide assistance; let me know how I can help. A copy of my console session follows:
PS C:\Users\jgv\Documents\My Projects\FITS\jv_FITS> pip install fitsio
Collecting fitsio
Downloading fitsio-1.1.3.tar.gz (5.0 MB)
|████████████████████████████████| 5.0 MB 2.2 MB/s
Collecting numpy
Using cached numpy-1.19.4-cp39-cp39-win_amd64.whl (13.0 MB)
Using legacy 'setup.py install' for fitsio, since package 'wheel' is not installed.
Installing collected packages: numpy, fitsio
Running setup.py install for fitsio ... \ ** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
error
ERROR: Command errored out with exit status 1:
command: 'c:\users\jgv\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py'"'"'; file='"'"'C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jgv\AppData\Local\Temp\pip-record-vo0z4_eo\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jgv\appdata\local\programs\python\python39\Include\fitsio'
cwd: C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio
Complete output (61 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\fitsio
copying fitsio\fitslib.py -> build\lib.win-amd64-3.9\fitsio
copying fitsio\header.py -> build\lib.win-amd64-3.9\fitsio
copying fitsio\test.py -> build\lib.win-amd64-3.9\fitsio
copying fitsio\util.py -> build\lib.win-amd64-3.9\fitsio
copying fitsio_init_.py -> build\lib.win-amd64-3.9\fitsio
creating build\lib.win-amd64-3.9\fitsio\hdu
copying fitsio\hdu\base.py -> build\lib.win-amd64-3.9\fitsio\hdu
copying fitsio\hdu\image.py -> build\lib.win-amd64-3.9\fitsio\hdu
copying fitsio\hdu\table.py -> build\lib.win-amd64-3.9\fitsio\hdu
copying fitsio\hdu_init_.py -> build\lib.win-amd64-3.9\fitsio\hdu
running 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
reading manifest file 'fitsio.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fitsio.egg-info\SOURCES.txt'
copying fitsio\fitsio_pywrap.c -> build\lib.win-amd64-3.9\fitsio
creating build\lib.win-amd64-3.9\fitsio\test_images
copying fitsio\test_images\test_gzip_compressed_image.fits.fz -> build\lib.win-amd64-3.9\fitsio\test_images
running build_ext
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py", line 272, in
setup(
File "c:\users\jgv\appdata\local\programs\python\python39\lib\site-packages\setuptools_init_.py", line 165, in setup
return distutils.core.setup(**attrs)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\jgv\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\command\install.py", line 546, in run
self.run_command('build')
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\jgv\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py", line 63, in run
import numpy
File "c:\users\jgv\appdata\local\programs\python\python39\lib\site-packages\numpy_init_.py", line 305, in
win_os_check()
File "c:\users\jgv\appdata\local\programs\python\python39\lib\site-packages\numpy_init.py", line 302, in _win_os_check
raise RuntimeError(msg.format(file)) from None
RuntimeError: The current Numpy installation ('c:\users\jgv\appdata\local\programs\python\python39\lib\site-packages\numpy\init.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jgv\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py'"'"'; file='"'"'C:\Users\jgv\AppData\Local\Temp\pip-install-ekovcklr\fitsio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jgv\AppData\Local\Temp\pip-record-vo0z4_eo\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jgv\appdata\local\programs\python\python39\Include\fitsio' Check the logs for full command output.
PS C:\Users\jgv\Documents\My Projects\FITS\jv_FITS>
The text was updated successfully, but these errors were encountered: