pyNLO / PyNLO

Python package for nonlinear optics
https://pynlo.readthedocs.io/en/latest/
GNU General Public License v3.0
101 stars 55 forks source link

Scipy 1.7 (ImportError: cannot import name 'factorial' from 'scipy.misc') #61

Open vfreysz opened 2 years ago

vfreysz commented 2 years ago

In scipy 1.7 i have the following error:

ImportError: cannot import name 'factorial' from 'scipy.misc'

The factorial function in scipy onwards is located in scipy.special

Changing the from scipy.misc import factorial to from scipy.special import factorial solve the error

vfreysz commented 2 years ago

The pb come from the pip version. Git is ok