obsidiantools icon indicating copy to clipboard operation
obsidiantools copied to clipboard

Unexpected np.NaN AttributeError when connecting to certain vaults

Open leaui opened this issue 1 year ago • 1 comments

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"""

leaui avatar Aug 18 '24 09:08 leaui

As a workaround, on my requirements.txt I added this:

obsidiantools
numpy<2.0.0

Terae avatar Sep 05 '24 09:09 Terae

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

notuntoward avatar Dec 02 '24 19:12 notuntoward

Do a build of the package from the dev branch. Fix merged: https://github.com/mfarragher/obsidiantools/pull/47

mfarragher avatar Jun 25 '25 21:06 mfarragher