-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expecteddeprecatedItems related to behavior that has been deprecatedItems related to behavior that has been deprecatedscipy.optimize
Milestone
Description
Describe your issue.
There is a deprecation warning for importing MemoizeJac
that recommends importing it from scipy.optimize
as a new approach, but I can't import it from scipy.optimize
.
Reproducing Code Example
Python 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:46:39)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.33.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import scipy
In [2]: scipy.__version__
Out[2]: '1.9.3'
In [3]: from scipy.optimize.optimize import MemoizeJac
<ipython-input-3-ad2abe888e13>:1: DeprecationWarning: Please use `MemoizeJac` from the `scipy.optimize` namespace, the `scipy.optimize.optimize` namespace is deprecated.
from scipy.optimize.optimize import MemoizeJac
In [4]: from scipy.optimize import MemoizeJac
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-2958dec3cdad> in <cell line: 1>()
----> 1 from scipy.optimize import MemoizeJac
ImportError: cannot import name 'MemoizeJac' from 'scipy.optimize' (/home/moorepants/miniconda/lib/python3.8/site-packages/scipy/optimize/__init__.py)
In [5]: import scipy.optimize
In [6]: scipy.optimize.MemoizeJac
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-d0f0a395bf46> in <cell line: 1>()
----> 1 scipy.optimize.MemoizeJac
AttributeError: module 'scipy.optimize' has no attribute 'MemoizeJac'
### Error message
```shell
See above.
SciPy/NumPy/Python version information
1.9.3 1.23.5 sys.version_info(major=3, minor=8, micro=15, releaselevel='final', serial=0)
mlondschien
Metadata
Metadata
Assignees
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expecteddeprecatedItems related to behavior that has been deprecatedItems related to behavior that has been deprecatedscipy.optimize