Open SiFroehl opened 4 months ago
I had the same issue. Here is how I fixed it: Uninstall numpy. Then, run pip install numpy==1.26.0. Hope that helps.
Thanks. The fix within the trackpy code is straightforward; you can see it in #770 and it will go in the next release. However, trackpy optionally uses PyTables to store data in files, and the PyTables team is still working on compatibility: https://github.com/PyTables/PyTables/issues/1172 . So, even once #770 is merged, I recommend sticking with numpy 1, unless you are certain you will not use trackpy's storage features. That means one of
numpy=1
when you make a custom conda environment. Version 0.6.4 is now available via pip install trackpy
and should be on conda-forge by July 15. I'm leaving this issue open until PyTables is updated.
Trackpy internally uses np.Inf which was removed in numpy version 2.0.0 (should use np.inf instead) leading in an error in multiple trackpy functions (such as link). To replicate, install numpy 2.0.0 (newest version as of now) and trackpy 0.6.3 (newest version as of now), import both and call trackpy.link