-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Labels
Description
Describe the issue:
The current state of the dev branch (1.25.0.dev0+403.g0013550dc) breaks scipy.stats
completely.
Reproduce the code example:
import scipy.stats
Error message:
-traceback
Traceback (most recent call last):
File "/Users/robcleme/dev/friends/AMICAL/t.py", line 1, in <module>
import scipy.stats
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/stats/__init__.py", line 467, in <module>
from ._stats_py import *
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/stats/_stats_py.py", line 46, in <module>
from . import distributions
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/stats/distributions.py", line 8, in <module>
from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/stats/_distn_infrastructure.py", line 27, in <module>
from scipy import integrate
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/integrate/__init__.py", line 91, in <module>
from ._quadrature import *
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/integrate/_quadrature.py", line 31, in <module>
trapezoid = _copy_func(trapezoid)
File "/Users/robcleme/.pyenv/versions/amical-dev/lib/python3.10/site-packages/scipy/integrate/_quadrature.py", line 24, in _copy_func
g = types.FunctionType(f.__code__, f.__globals__, name=f.__name__,
AttributeError: 'numpy._ArrayFunctionDispatcher' object has no attribute '__code__'. Did you mean: '__call__'?
Runtime information:
1.25.0.dev0+403.g0013550dc
3.10.8 (main, Nov 13 2022, 10:42:10) [Clang 14.0.0 (clang-1400.0.29.202)]
WARNING: `threadpoolctl` not found in system! Install it by `pip install threadpoolctl`. Once installed, try `np.show_runtime` again for more detailed build information
[{'numpy_version': '1.25.0.dev0+403.g0013550dc',
'python': '3.10.8 (main, Nov 13 2022, 10:42:10) [Clang 14.0.0 '
'(clang-1400.0.29.202)]',
'uname': uname_result(system='Darwin', node='ipag-8102.u-ga.fr', release='22.2.0', version='Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64', machine='x86_64')},
{'simd_extensions': {'baseline': ['SSE', 'SSE2', 'SSE3'],
'found': ['SSSE3',
'SSE41',
'POPCNT',
'SSE42',
'AVX',
'F16C',
'FMA3',
'AVX2'],
'not_found': ['AVX512F',
'AVX512CD',
'AVX512_KNL',
'AVX512_SKX',
'AVX512_CLX',
'AVX512_CNL',
'AVX512_ICL']}}]
None
Context for the issue:
discovered today while running tests for a package that depends on both scipy and numpy, using nightly builds for both
https://github.com/SAIL-Labs/AMICAL/commit/8e7ebf05bf034218d1d78304542d29f4109ad534/checks?check_suite_id=10430628610