Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failures with scipy 1.15 #706

Closed
relf opened this issue Jan 6, 2025 · 0 comments · Fixed by #707
Closed

Tests failures with scipy 1.15 #706

relf opened this issue Jan 6, 2025 · 0 comments · Fixed by #707

Comments

@relf
Copy link
Member

relf commented Jan 6, 2025

With scipy 1.15, some tests fail due to the usage of scipy.misc.derivative in benchmark problems.

ImportError while importing test module 'D:\rlafage\workspace\smt\smt\tests\test_problems.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\..\miniconda3\Lib\importlib\__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
smt\tests\test_problems.py:11: in <module>
    from smt.problems import (
smt\problems\__init__.py:17: in <module>
    from .water_flow import WaterFlow
smt\problems\water_flow.py:17: in <module>
    from scipy.misc import derivative
E   ImportError: cannot import name 'derivative' from 'scipy.misc' (D:\rlafage\miniconda3\Lib\site-packages\scipy\misc\__init__.py)

scipy.misc.derivative seems to have ben moved to the new sub-module scipy.differentiate. See scipy 1.15 release notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant