-
Notifications
You must be signed in to change notification settings - Fork 18
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
ValueError: numpy.ndarray size changed #20
Comments
I have the same issue using scikit-fda. |
Sorry for not updating this issue with my findings. Recent versions of I still don't know why that problem in the dependency resolution method arises, but as a workaround you can force the installation of an older version of
|
@vnmabus What do you suggest to prevent this kind of bug from happening in the future? because the code was working then stoped working. |
If you are deploying an application you should pin the version of your dependencies. Keep a Nevertheless, the problem stated here shouldn't happen. |
tried the |
Did you do that BEFORE installing scikit-fda? |
I could not reproduce the bug if I install |
Sorry just getting caught up as somehow notifications got turned off, but yes this is the issue and has to do with install order and numba restricting numpy. I might just have to restrict numpy version further. Thoughts @vnmabus ? |
I think this issue throws some light in the problem, and also points to an easy solution: pypa/pip#9542. |
It still does not work, @jdtuck . It first installs |
@vnmabus okay moved everything to |
This still does not work BUT the error now appears importing GPy (I don't think this was the case on the first iterations). Seeing the GPy project, they have |
I have opened SheffieldML/GPy#974. |
So I have not had this error on Linux or MacOS. Only on Windows where its having a problem with GPy. I think has to do its pulling down a wheel. We do need to open an issue and thank you for doing that. |
not sure how fast they are going to respond as I provided a pull request, I use GP on the bayesian codes and really don't want to depend on all of scikit-learn.... |
The last commit is from 4 months ago, so I wouldn't expect that they merge it fast. I truly hope that the library is not unmaintained, as its predictions were better than scikit-learn ones. |
I installed fdasrsf today, and got the same error as above. I'm only interested in elastic registration, is Gpy necessary for this? ValueError Traceback (most recent call last) File ~\anaconda3\lib\site-packages\fdasrsf_init_.py:24, in File ~\anaconda3\lib\site-packages\fdasrsf\time_warping.py:9, in File ~\anaconda3\lib\site-packages\fdasrsf\utility_functions.py:21, in File src\optimum_reparamN2.pyx:1, in init optimum_reparamN2() ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject |
How did you install it and it is required for some of the registration (Bayesian)s |
pip install fdasrsf I don't think I want any bayesien alignment. I just want to calculate a distance matrix using the elastic metric. |
I would install off the GitHub repo using |
When I try to run setup.py, I get this error; git clone https://github.com/jdtuck/fdasrsf_python.git Traceback (most recent call last): Which appears to be an R package? https://github.com/amashadihossein/dpbuild I tried pip install dp_build, conda install dp_build and downloading directly from github. The github I linked to above doesn't have a setup.py |
No its not an R package, it looks as though you don't have all the requirements installed, what version of python? also do you have all the requirements install from |
Python 3.9.12 Yes, I just checked that I have all of the requirements. I was able to pip install, just not import. |
I can't reproduce on my end what os? Also try |
Windows 10 This seems to have worked: git clone https://github.com/jdtuck/fdasrsf_python.git Thanks |
This still doenst work with the pip install version of LOGS
Interestingly, this worked with py3.8 LOGS
|
Yes it does on multiple systems and compilers. What version of GCC are you using. Also this is a build problem isolated to your system need more info. |
I have the following error when importing
optimum_reparamN2
in my automatic tests (https://github.com/GAA-UAM/scikit-fda/runs/4740232727):I suspect that the error is related to the recent release of NumPy 1.22, but I don't know how to solve it. The full trace is shown below:
The text was updated successfully, but these errors were encountered: