-
Notifications
You must be signed in to change notification settings - Fork 31
Description
I just tried installing a fresh phoebe environment, and following the procedure on the installation page leads to a nasty import error when trying to import phoebe.
>>> import phoebe
Traceback (most recent call last):
File "", line 1, in
File "/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/phoebe/init.py", line 379, in
from .frontend.bundle import Bundle
File "/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/phoebe/frontend/bundle.py", line 39, in
from phoebe.backend import backends, mesh
File "/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/phoebe/backend/init.py", line 2, in
from .backends import *
File "/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/phoebe/backend/backends.py", line 17, in
from phoebe.backend import universe, etvs, horizon_analytic
File "/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/phoebe/backend/universe.py", line 3, in
from scipy.special import sph_harm as Y
ImportError: cannot import name 'sph_harm' from 'scipy.special' (/home/michael/software/anaconda3/envs/phoebe_test_env/lib/python3.11/site-packages/scipy/special/init.py)
I've tracked this down to scipy v1.17.0. It appears that scipy.special.sph_harm has been deprecated and replaced with scipy.special.sph_harm_y. I haven't checked if there are any other issues with scipy1.17.0, but I guess we can take care of all of these together if there are.