Failure in PyMemoryView_FromObject when import scikit-learn
xref https://github.com/scikit-learn/scikit-learn/pull/17994
I think the issue is that len(format string)
is 168, and we have a hard coded limit of 128. The code tries to raise a warning, which I do not see, but the analysis is consistent with the scikit-learn report and when stepping in with a debugger I see 160 as the format string length.
Edit: 168 not 160, here is the format string "T{q:parent:(8)q:children:q:cell_id:q:point_index:i:is_leaf:f:squared_max_width:q:depth:q:cumulative_size:(3)f:center:(3)f:barycenter:(3)f:min_bounds:(3)f:max_bounds:}"