Skip to content
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

import gala.coordinate #210

Closed
pbtoubol opened this issue Dec 13, 2023 · 3 comments
Closed

import gala.coordinate #210

pbtoubol opened this issue Dec 13, 2023 · 3 comments

Comments

@pbtoubol
Copy link

What is the problem?

I have download the package astronomy-python of https://datacarpentry.org/astronomy-python/
The installation is OK but when I want to check my installation, and i try :

'import gala.coordinates as gc'

I receive this message:

ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' (/home/pierre-bernard/anaconda3/envs/AstronomicalData/lib/python3.12/site-packages/astropy/config/configuration.py)

Do you have an idea ? thanks

Location of problem (optional)

No response

@abostroem
Copy link
Contributor

Can you please let me know what OS you are using and the version of astropy and gala that you have installed? You can access this information by starting up a python session and typing:

import astropy
print(astropy.__version__)
import gala 
print(gala.__version__)

It is possible the gala import will produce the same error you got above, in which case don't worry about getting the version.

@pbtoubol
Copy link
Author

I followed the advice of adrian price-whelan on Slack. I have downloaded the last version of GALA (development version) , with
pip install git+https://github.com/adrn/gala

...and it run perfectly !
My astropy.version is 6.0.0
and my new gala version is 1.7.2.dev45+g3aab5f14

Thank's . It's a very great job. I plan to use it in my Astronomical Association in France ( after translated)

@abostroem
Copy link
Contributor

Thanks for sharing your solution @pbtoubol. If you teach this lesson is would be great to submit it as a self organized workshop to the Carpentries so that we can track its use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants