mcgrawia opened a new issue, #49:
URL: https://github.com/apache/datasketches-python/issues/49

   Hi datasketch team,
   
   We recently upgraded to numpy 2 and have ran into the following exception in 
our logs. It seems like data sketches only supports numpy 1? What will it take 
to add numpy 2 support?
   
   Thanks
   
   
   Full error
   ```
   A module that was compiled using NumPy 1.x cannot be run in
   NumPy 2.1.1 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.
   
   Traceback (most recent call last):  File "<string>", line 1, in <module>
     File "/app/repositories/metrics_repository.py", line 9, in <module>
       from datasketches import kll_floats_sketch
     File "/lib/python3.12/site-packages/datasketches/__init__.py", line 26, in 
<module>
       from _datasketches import *
   Traceback (most recent call last):
     File "/lib/python3.12/site-packages/numpy/core/_multiarray_umath.py", line 
44, in __getattr__
       raise ImportError(msg)
   ImportError:
   A module that was compiled using NumPy 1.x cannot be run in
   NumPy 2.1.1 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.
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to