Open rmndrs89 opened 3 months ago
It may have to do with the new numpy
release, I didn't realize this. Will try with a downgraded numpy
version.
EDIT: Yes, this seems to have been the issue. I changed the numpy version in my
pyproject.toml
tonumpy = "^1.26.0"
and not with numpy 1.26.4 I can dofrom vqf import VQF
as before.
Hi Robin,
Thanks for reporting this! I've seen a similar error with the jump to numpy 1.20. So this is certainly caused by the breaking changes in the ABI of numpy 2.0.
Unless there are other issues caused by the new numpy release, I think vqf should work fine when installing from source rather than using the binary wheels. (I think the --no-binary
parameter of pip should do the trick but I didn't test this. Or you can clone the repo and install the package from there.)
I'll try to find some solution without breaking the package for users of numpy < 2.0. Suggestions are welcome.
Note for myself: https://numpy.org/devdocs/dev/depending_on_numpy.html
Hi Daniel,
I tried to install
vqf
via poetry in a new project on my Windows 10 Professional operating system, however it complains about somenumpy.dtype
error. I am not sure what is happening here, so I was hoping that you may have a clue?To get there error, I did the following:
cd D:\Projects
.poetry
project:poetry new mimumove
.python
from vqf import VQF, BasicVQF, PyVQF
I have also tried using a
venv
virtual environment rather than apoetry
environment, but it gives the same error. Is this something related tovqf
ornumpy
?Best regards, Robbin