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
{{ message }}
Repository navigation
[BUG]: Can't use PYBIND11_NUMPY_DTYPE with subinterpreters #5781
What version (or hash if on master) of pybind11 are you using?
3.0.0
Problem description
Registering a DTYPE fails in subinterpreters because the DTYPE is already registered. Any thoughts on how to make this subinterpreter safe?
ImportError: NumPy: dtype is already registered
Edit: I think numpy may not work in subinterpreters; if I suppress this error when it's already loaded, then it looks like numpy throws an error when importing. So it might not be very important to solve until numpy supports subinterpreters.
Activity