Error installing older version of astropy
See original GitHub issueInstalling astropy==2.0.4 with pip and cython==0.29.21 in a Python3 environment. Are these compatilble?
building 'astropy.table._np_utils' extension
creating build/temp.linux-x86_64-3.7/astropy/table
/data/users/abrought/miniconda/envs/env/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /data/users/abrought/miniconda/envs/env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /data/users/abrought/miniconda/envs/env/include -fPIC -I/data/users/abrought/miniconda/envs/env/lib/python3.7/site-packages/numpy/core/include -I/data/users/abrought/miniconda/envs/env/include/python3.7m -c astropy/table/_np_utils.c -o build/temp.linux-x86_64-3.7/astropy/table/_np_utils.o -Wp,-w -Wno-unused-function
astropy/table/_np_utils.c: In function '__Pyx__ExceptionSave':
astropy/table/_np_utils.c:7287:21: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'; did you mean 'curexc_type'?
*type = tstate->exc_type;
^~~~~~~~
curexc_type
astropy/table/_np_utils.c:7288:22: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
astropy/table/_np_utils.c:7289:19: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
astropy/table/_np_utils.c: In function '__Pyx__ExceptionReset':
astropy/table/_np_utils.c:7296:24: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'; did you mean 'curexc_type'?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
astropy/table/_np_utils.c:7297:25: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
astropy/table/_np_utils.c:7298:22: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
astropy/table/_np_utils.c:7299:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'; did you mean 'curexc_type'?
tstate->exc_type = type;
^~~~~~~~
curexc_type
astropy/table/_np_utils.c:7300:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
astropy/table/_np_utils.c:7301:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
astropy/table/_np_utils.c: In function '__Pyx__GetException':
astropy/table/_np_utils.c:7371:24: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'; did you mean 'curexc_type'?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
astropy/table/_np_utils.c:7372:25: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
astropy/table/_np_utils.c:7373:22: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
astropy/table/_np_utils.c:7374:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'; did you mean 'curexc_type'?
tstate->exc_type = local_type;
^~~~~~~~
curexc_type
astropy/table/_np_utils.c:7375:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
astropy/table/_np_utils.c:7376:13: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
error: command '/data/users/abrought/miniconda/envs/env/bin/x86_64-conda-linux-gnu-cc' failed with exit status 1
----------------------------------------
Rolling back uninstall of astropy
Moving to /data/users/abrought/miniconda/envs/env/bin/fits2bitmap
from /tmp/pip-uninstall-68pjcb65/fits2bitmap
Moving to /data/users/abrought/miniconda/envs/env/bin/fitscheck
from /tmp/pip-uninstall-68pjcb65/fitscheck
Moving to /data/users/abrought/miniconda/envs/env/bin/fitsdiff
from /tmp/pip-uninstall-68pjcb65/fitsdiff
Moving to /data/users/abrought/miniconda/envs/env/bin/fitsheader
from /tmp/pip-uninstall-68pjcb65/fitsheader
Moving to /data/users/abrought/miniconda/envs/env/bin/fitsinfo
from /tmp/pip-uninstall-68pjcb65/fitsinfo
Moving to /data/users/abrought/miniconda/envs/env/bin/samp_hub
from /tmp/pip-uninstall-68pjcb65/samp_hub
Moving to /data/users/abrought/miniconda/envs/env/bin/volint
from /tmp/pip-uninstall-68pjcb65/volint
Moving to /data/users/abrought/miniconda/envs/env/bin/wcslint
from /tmp/pip-uninstall-68pjcb65/wcslint
Moving to /data/users/abrought/miniconda/envs/env/lib/python3.7/site-packages/astropy-2.0.9.dist-info/
from /data/users/abrought/miniconda/envs/env/lib/python3.7/site-packages/~stropy-2.0.9.dist-info
Moving to /data/users/abrought/miniconda/envs/env/lib/python3.7/site-packages/astropy/
from /data/users/abrought/miniconda/envs/env/lib/python3.7/site-packages/~stropy
ERROR: Command errored out with exit status 1: /data/users/abrought/miniconda/envs/env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z3k3d51y/astropy_3e57fa01abfa4fdfa1c1d68c422022a4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z3k3d51y/astropy_3e57fa01abfa4fdfa1c1d68c422022a4/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k3_s5bfk/install-record.txt --single-version-externally-managed --compile --install-headers /data/users/abrought/miniconda/envs/env/include/python3.7m/astropy Check the logs for full command output.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Installation — Astropy v5.2
In most cases, this will install a pre-compiled version (called a wheel) of astropy, but if you are using a very recent version...
Read more >How to install Astropy 5.0 using pip? - python
From your pip --version output: pip 21.3.1 from /opt/conda/lib/python3.7/site-packages/pip (python 3.7). you are using Python 3.7, ...
Read more >Installation — Astropy v1.0.4
Normally Astropy will bootstrap newer version of setuptools via the network, but setuptools suggests that you first uninstall the old version (the easy_install ......
Read more >Installation problem of astropy via pip3
When I typed “pip3 install astropy”, installation of pyerfa failed. Though an installed version of pyerfa (0.0.0?) seems too old, ...
Read more >astropy
astropy 5.2. pip install astropy. Copy PIP instructions. Latest version. Released: Dec 12, 2022.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you’re right, I’ll raise an issue over there. Since 2.x.x is unsupported, I would mark this as closed.
Agreed this was not an astropy issue.