Unexpected np.NaN AttributeError when connecting to certain vaults
In some cases, for some specific vaults only, I get the following error after execting vault = otools.Vault(vaultpath).connect().gather()
The error returned is: AttributeError: np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.
It seems like it is coming from within [obsidiantools/api.py] section """pipe func for mutating df"""
As a workaround, on my requirements.txt I added this:
obsidiantools
numpy<2.0.0
I had this problem too. You can get around some of it by adding the bit below in your obsidiantools caller:
# HACK to get around the np.NaN error caused by a very out-of-date obsidiantools library
import numpy as np
np.NaN = np.nan
Do a build of the package from the dev branch. Fix merged: https://github.com/mfarragher/obsidiantools/pull/47