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
Importing from skfda import FDataGrid gives you ValueError #315
Comments
Hum, the timing is suspiciously similar to the release of numpy version 1.20, the 30th of January. Versions of scikit-fda older than version 0.5 compiled a vendored subset of fdasrsf implemented in C, and I think that could be related (maybe it is trying to compile against a numpy version different to the one installed, although I do not know how). I would try updating to version 0.5 if you can, as it no longer vendors fdasrsf, but instead depends on it. I hope that you do not need to change much code to update to the newer version. Updating is also recommended nevertheless, as we do not have enough developers to support arbitrarily old versions. |
@vnmabus thank you for the quick response. Do you know what version of pandas needs the version 0.5 to work? we are using pandas==0.25.3, and doesn't seem to be compatible. I've seen that it's at least pandas==1.0.0. Upgrading numpy version to 1.20.0, it solves the issue of importing FDataGrid from skfda with skfda version 0.3. |
What error did you get with pandas==0.25.3? I think we only use pandas in order to add support for using |
Hello @vnmabus, We get the this error, when updating to skfda version 0.5 is the following:
The function check_array_indexer from pandas.api.indexers was added in pandas 1.0.0: https://pandas.pydata.org/docs/reference/api/pandas.api.indexers.check_array_indexer.html Maybe would be good to specify it like a hard dependency. Best |
Pandas dependency on version 1.0 has been added to setup.py in 7c6f33d, so I guess we can close this issue. |
Describe the bug
When importing FDataGrid from skfda it will launch the following error:
` ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
`To Reproduce
We are installing scikit-fda==0.3 with the following docker image:
Expected behavior
To be able to import the library
Version information
Additional context
Add any other context about the problem here.
Since 01/02/2021 we have the issue of not being able to import the library. Before of that date we could import it without problem with the same requirements and environment
Error Thread:
The text was updated successfully, but these errors were encountered: