Closed kmodexc closed 2 years ago
Hmmm. Interesting. I will be looking into this.
The relevant code in numpy
:
try:
dtype = numeric.dtype(dtype)
except TypeError:
# In case a float instance was given
dtype = numeric.dtype(type(dtype))
Weird. The first call to numeric.dtype
throws TypeError
and then None
is not callable.
FI: The issue only happens on Python 3.10
. I have successfully profiled above in 3.9
.
Found the issue. It is this line causing the problem on Python 3.10
: https://github.com/sumerc/yappi/blob/513513c8871f1dbdaa401cecd756254a160b2feb/yappi/_yappi.c#L661
I still do not know how PyFrame_FastToLocals
mutates an object. I will need to dig a bit deeper to understand the root cause before proposing a fix.
Issue is fixed in latest release: 1.3.5
Using
matplotlib
,pandas
andyappi
together to throw an error:Example-code:
I already posted on matplotlib here but it seems to be a problem from yappi.