-
Notifications
You must be signed in to change notification settings - Fork 75
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
[BUG]I think Cubeviz might be incompatible with the latest version of astropy #3150
Comments
What version of jdaviz are you seeing this? The upcoming release of jdaviz will require astropy 6.0+, but maybe there is something that we need to backport as a bugfix to jdaviz 3.10.x that slipped by. (And while you're at it, can you please update the issue description with all the versions of python packages listed above so we can try to reproduce and track down what's happening?) Thanks! |
Using jdaviz 3.10.3, software packages updated above, thanks! |
@samrose30 , can you please upgrade spectral-cube ?
|
after updating spectral cube from 0.6.0 to 0.6.5 the same traceback error appears when trying to import jdaviz |
The offending code was removed last year in radio-astro-tools/spectral-cube#891 (released in v0.6.3). So it is quite impossible to get that traceback in 0.6.5. Did you restart your Python session and so on? |
Also for completeness, Jdaviz does not use spectral-cube but glue pulls it in anyway, hence the trouble of us unable to pin it directly. Related: |
ImportError Traceback (most recent call last) File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/jdaviz/init.py:15 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/jdaviz/app.py:31 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/glue_astronomy/translators/init.py:3 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/glue_astronomy/translators/spectral_cube.py:9 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/spectral_cube/init.py:5 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/spectral_cube/spectral_cube.py:33 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/radio_beam/init.py:3 File ~/opt/anaconda3/envs/webb/lib/python3.10/site-packages/radio_beam/_astropy_init.py:21 ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' (/Users/samrose/opt/anaconda3/envs/webb/lib/python3.10/site-packages/astropy/config/configuration.py) After restarting python session, it is a different traceback |
Ah, that is from yet another package we don't need but got pulled in by glue-astronomy. Please update this too.
|
0.3.4 to 0.3.7 and that fixes it, thanks! |
Good to hear. Thanks for letting us know! |
Jdaviz component
Cubeviz
Description
Cubeviz fails to import for astropy version 6.1.2
Can get it to work for astropy version 5.3.4
Seems to be an inssue within spectral_cube
How to Reproduce
See below the traceback error when importing cubeviz.
Expected behavior
No response
Browser
No response
Jupyter
jupyter --version
IPython : 8.10.0
ipykernel : 6.21.2
ipywidgets : 8.1.3
jupyter_client : 7.4.1
jupyter_core : 5.2.0
jupyter_server : 1.23.6
jupyterlab : 3.6.1
nbclient : 0.7.2
nbconvert : 7.2.9
nbformat : 5.7.3
notebook : 6.5.2
qtconsole : 5.4.1
traitlets : 5.9.0
Software versions
macOS-10.16-x86_64-i386-64bit
Python 3.10.9 (main, Jan 11 2023, 09:18:20) [Clang 14.0.6 ]
Numpy 1.25.2
astropy 6.1.2
matplotlib 3.7.0
scipy 1.9.3
scikit-image 0.24.0
asdf 3.2.0
stdatamodels 2.0.0
gwcs 0.21.0
regions 0.7
specutils 1.16.0
specreduce 1.3.0
photutils 1.12.0
astroquery 0.4.6
pyyaml 6.0.1
asteval 0.9.29
idna 3.4
traitlets 5.9.0
bqplot 0.12.43
bqplot-image-gl 1.4.11
glue-core 1.21.1
glue-jupyter 0.22.0
glue-astronomy 0.10.0
echo 0.8.0
ipyvue 1.9.0
ipyvuetify 1.8.4
ipysplitpanes 0.2.0
ipygoldenlayout 0.4.0
ipypopout 1.0.0
Jinja2 3.1.2
voila 0.4.0
vispy 0.12.1
sidecar 0.5.2
The text was updated successfully, but these errors were encountered: