Closed v1j4y closed 5 months ago
Hi @v1j4y ,
Good catch. Indeed, TREXIO compatibility with NumPy API 2.0 has not been tested and I do not have time to investigate that right now. There are many packages that report this error nowadays because NumPy 2.0 got officially deployed. It's going to be a big mess :-)
In requirements.txt
we still have numpy<1.27.0
so if you just downgrade NumPy to < 2.0 - this error should disappear. That's the best solution for now.
That solved the issue !
Here are the steps to revolve the issue:
conda install -c conda-forge numpy=1.26.0
That's it !
Now import trexio
succeeds !
Amazing that I can now use trexio on my mac m2 👍
(trex) chilkuri@vijays-Mac-mini trexio % python
Python 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.26.0'
>>>
(trex) chilkuri@vijays-Mac-mini trexio % python
Python 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import trexio
>>>
@v1j4y I got the CI working on macos@arm64 so next TREXIO release should include the pre-compiled Python wheels for this arch so pip install trexio
should work on new Macs with ARM chips. Stay tuned !
Hi @q-posev I saw that you've started working on supporting aarch64. I have a mac mini m2 with 13.2.1 and I tried, following your recipe, to install the python API.
The compilation and checks for trexio succeded so did the installation of the python API. However,
import trexio
failed with the following message:Looks like a numpy compatibility error. Have you run across this before ? I'll try to debug a little further to check what's going on.
I'm using trexio-master: 92504e0beaf2141
Thanks !