You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/cupy/__init__.py - ModuleNotFoundError: No module named 'cupy'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/cupy/_aliases.py - ModuleNotFoundError: No module named 'cupy'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/cupy/_typing.py - ModuleNotFoundError: No module named 'cupy'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/cupy/linalg.py - ModuleNotFoundError: No module named 'cupy'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/torch/__init__.py - ModuleNotFoundError: No module named 'torch'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/torch/_aliases.py - ModuleNotFoundError: No module named 'torch'
ERROR build-install/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/torch/linalg.py - ModuleNotFoundError: No module named 'torch'
ERROR build-install/lib/python3.11/site-packages/scipy/interpolate/_interpnd_info.py - ModuleNotFoundError: No module named 'sympy'
The current solution is to exclude _lib/array_api_compat and _interpnd_info.py from doctesting:
This is a problem for testing installed scipy: pytest --pyargs scipy fails collection. For dev installs, we can add explicit ignores indeed. Otherwise, we probably want to invent a way to add a way to blacklist modules and to skip collection of things which try to import blacklisted things.
Pytest collection fails on an attempt at importing
cupy
andpytorch
for_lib/array_api_compat
andsympy
for_interpnd_info.py
.To reproduce on the Scipy shell:
The current solution is to exclude
_lib/array_api_compat
and_interpnd_info.py
from doctesting:The text was updated successfully, but these errors were encountered: