Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected np.NaN AttributeError when connecting to certain vaults #42

Open
leaui opened this issue Aug 18, 2024 · 2 comments
Open

Unexpected np.NaN AttributeError when connecting to certain vaults #42

leaui opened this issue Aug 18, 2024 · 2 comments

Comments

@leaui
Copy link

leaui commented Aug 18, 2024

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

@Terae
Copy link

Terae commented Sep 5, 2024

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

obsidiantools
numpy<2.0.0

@notuntoward
Copy link

notuntoward commented Dec 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants