Closed yurivict closed 1 year ago
Thanks for the report!
This is indeed a bug (and a difficult to spot one as well). As the error message says, we cannot hash numpy object arrays directly, but what ubelt should do is interpret it as an iterable object and effectively treat it like a list. The bug is that if the first call you make to hash_data is with an object, the extension that registers how to deal with numpy objects isn't properly initialized. I've made a patch to 1.3.1 which will ensure the extensions are initialized before this iterable check happens: https://github.com/Erotemic/ubelt/pull/148
Describe the bug
Version: 1.3.0 Python-3.9 FreeBSD 13.2