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

vaex does not work with numpy==2.0.0 #2425

Open
iisakkirotko opened this issue Jun 17, 2024 · 1 comment
Open

vaex does not work with numpy==2.0.0 #2425

iisakkirotko opened this issue Jun 17, 2024 · 1 comment

Comments

@iisakkirotko
Copy link

iisakkirotko commented Jun 17, 2024

Hi! Noticed an issue caused by vaex in our daily ci run on solara. This issue should break any new install of vaex where the version of numpy is not restricted.

Description:
vaex is not compatible with the newly released numpy==2.0.0.

Software information

  • Vaex version: any
  • Vaex was installed via: pip
  • OS: any

To Reproduce:

install vaex, which pulls in the newest numpy. Run import vaex. This results in

Traceback (most recent call last):  File "<stdin>", line 1, in <module>
  File "/Users/.../lib/python3.10/site-packages/vaex/__init__.py", line 45, in <module>
    import vaex.dataframe
  File "/Users/.../lib/python3.10/site-packages/vaex/dataframe.py", line 30, in <module>
    import vaex.grids
  File "/Users/.../lib/python3.10/site-packages/vaex/grids.py", line 3, in <module>
    import vaex.vaexfast
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/.../lib/python3.10/site-packages/vaex/__init__.py", line 45, in <module>
    import vaex.dataframe
  File "/Users/.../lib/python3.10/site-packages/vaex/dataframe.py", line 30, in <module>
    import vaex.grids
  File "/Users/.../lib/python3.10/site-packages/vaex/grids.py", line 3, in <module>
    import vaex.vaexfast
ImportError: numpy.core.multiarray failed to import

with the following hint:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
iisakkirotko added a commit to widgetti/solara that referenced this issue Jun 21, 2024
`vaex` is also added as a dependency here, meaning if a user installed `solara[dev]` without the documentation extra they would still get a broken installation.

See vaexio/vaex#2425 for the source of the issue.
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

2 participants