Skip to content

BUG: cannot import ODEintWarning from scipy.integrate #17771

@ahawryluk

Description

@ahawryluk

Describe your issue.

Since SciPy 1.8.0, importing ODEintWarning from scipy.integrate.odepack raises the following warning:

DeprecationWarning: Please use ODEintWarning from the scipy.integrate namespace, the scipy.integrate.odepack namespace is deprecated.

However, importing ODEintWarning from scipy.integrate fails. I think the solution is to add ODEintWarning to scipy.integrate._odepack_py.__all__, but I want to check if I'm misunderstanding something obvious before I attempt a PR.

Reproducing Code Example

from scipy.integrate import ODEintWarning

Error message

ImportError: cannot import name 'ODEintWarning' from 'scipy.integrate' (C:\Anaconda3\lib\site-packages\scipy\integrate\__init__.py)

SciPy/NumPy/Python version information

1.9.3 1.23.4 sys.version_info(major=3, minor=9, micro=12, releaselevel='final', serial=0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.integrate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions