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

numpy 2.0.0 lib dependency error #32

Open
Lucandia opened this issue Jun 28, 2024 · 0 comments
Open

numpy 2.0.0 lib dependency error #32

Lucandia opened this issue Jun 28, 2024 · 0 comments

Comments

@Lucandia
Copy link

The script hydralit_components/Loaders/loaders.py contains a numpy dependency: from numpy.lib.arraysetops import isin.
When I use hydralit components with the new version of Numpy (2.0.0), I get a dependency error (arraysetops is not found in numpy.lib). The numpy 2.0.0 migration guide states that:

Most of the functions available within np.lib are also present in the main namespace, which is their primary location. 
To make it unambiguous how to access each public function, np.lib is now empty and contains only a handful of specialized submodule [...].
If you get an AttributeError when accessing an attribute from np.lib you should try accessing it from the main np namespace then.

I suggest either indicating as a dependency the previous version of numpy (1.26) or trying to find the corresponding function of isin (maybe directly numpy.isin) in numpy 2.0 (also because there is only one script that requires it).
Should I fork the repository, try and fix and submit a pull request?

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

1 participant