You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the BEAST installation docs, the library files need to be installed with beast get_libfiles. There are two hiccups for getting this script to run:
ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration'
The script utilizes update_default_config from astropy.config.configuration found in _astropy_init.py., which is deprecated as of astropy v6.0.0 as indicated in the official changelog of Astropy. Currently, the astropy version installed with pip install beast is v6.1.4. I implemented a temporary fix of removing this from ~/beast/lib/python3.11/site-packages/beast/_astropy_init.py.
ImportError: cannot import name 'trapz' from 'scipy.integrate' scipy.integrate.trapz is utilized in beast.observationalmodel.phot, which is deprecated as of scipy v1.14.0. Switching to scipy.integrate.trapezoid in ~/beast/lib/python3.11/site-packages/beast/observationmodel/phot.py seems to have solved this issue.
If deemed appropriate, I'm willing to create a pull request to update scipy.integrate.trapz to scipy.integrate.trapezoid in phot.py. A more permanent solution for update_default_config is a bit beyond me though. Let me know your thoughts.
The text was updated successfully, but these errors were encountered:
Thanks for the issue. Both issues should be fixed in the dev version. This really tells me that a new pip installable release is needed. I will prioritize that for this week. If you wanted to get the dev version, go ahead and install it via github (i.e., pip install git+https://github.com/BEAST-Fitting/beast.git) and comment on this issue if it fixes both issues.
Wonderful! Thank you for the quick response. I tested the dev version's installation following the exact installation instructions, and get_libfiles works now!
If it is at all helpful for future reference, I'm using scipy v1.14.1 and numpy 2.1.1, and below are the build dependences for scipy. Please let me know if there's anything else I can do to support getting the issue resolved.
In the BEAST installation docs, the library files need to be installed with
beast get_libfiles
. There are two hiccups for getting this script to run:ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration'
The script utilizes
update_default_config
fromastropy.config.configuration
found in_astropy_init.py.
, which is deprecated as of astropy v6.0.0 as indicated in the official changelog of Astropy. Currently, the astropy version installed withpip install beast
is v6.1.4. I implemented a temporary fix of removing this from~/beast/lib/python3.11/site-packages/beast/_astropy_init.py
.ImportError: cannot import name 'trapz' from 'scipy.integrate'
scipy.integrate.trapz
is utilized inbeast.observationalmodel.phot
, which is deprecated as of scipy v1.14.0. Switching toscipy.integrate.trapezoid
in~/beast/lib/python3.11/site-packages/beast/observationmodel/phot.py
seems to have solved this issue.If deemed appropriate, I'm willing to create a pull request to update
scipy.integrate.trapz
toscipy.integrate.trapezoid
inphot.py
. A more permanent solution forupdate_default_config
is a bit beyond me though. Let me know your thoughts.The text was updated successfully, but these errors were encountered: