mfarragher / obsidiantools

Obsidian tools - a Python package for analysing an Obsidian.md vault
Other
402 stars 28 forks source link

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

Open leaui opened 1 month ago

leaui commented 1 month ago

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 commented 1 month ago

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

obsidiantools
numpy<2.0.0