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
numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216 #621
Comments
Can you please try using numpy>=1.16.0? According to this issue this should solve the problem: automl/ConfigSpace#107 |
Could you please give details about your operating system, how you installed Auto-sklearn and its dependencies and how I can reproduce this issue? For the last step it would be best if you can start from a fresh virtual environment or conda environment. |
OS - Ubuntu 16.04 I installed using pip install and dependencies auto installed in the process. New virtualenv was created before installing sklearn import autosklearn.classification to regenerate the error. |
This is a bit tough to debug for me as I don't have an ubuntu 16.04. I assume it's an issue with the compiler. I think that the numpy wheel is build with gcc 4.X, while your OS uses gcc 5.X and the compilations of both are not compatible. I don't really know how to solve this and you have to try yourself. There are three suggestions on how to proceed:
Sorry for not being able to give you a better advice. |
@mfeurer numpy 1.16 is not solving the issue. |
Could you please check my comment here? Maybe that helps? |
On Ubuntu 18.04 I had this error. Based on comments I just ran:
And without changing anything else it works! Thanks @KEggensperger |
I have Python (Version 2.7 and 3.4) and Pandas installed on [ec2-user@ip ~]$ python -V [ec2-user@ip ~]$ pip3 list awscli 1.16.105 [ec2-user@ip ~]$ python3
Any idea why getting this error. |
@hkandpal could you please describe how your post is related to this issue and Auto-sklearn? |
Closing this as the issue is already one your old, appears to be resolved, and we have had two new releases since. In case there are further issues with ConfigSpace compilation, a good explanation of what can go wrong is given in this issue: automl/ConfigSpace#141 |
thank you. It solved the issue. |
Importing the autosklearn . classification goes into this error.
import autosklearn.classification
File "/home/titan/Documents/autoenv/lib/python3.5/site-packages/autosklearn/classification.py", line 1, in
from autosklearn.estimators import AutoSklearnClassifier
File "/home/titan/Documents/autoenv/lib/python3.5/site-packages/autosklearn/estimators.py", line 5, in
from autosklearn.automl import AutoMLClassifier, AutoMLRegressor
File "/home/titan/Documents/autoenv/lib/python3.5/site-packages/autosklearn/automl.py", line 8, in
from ConfigSpace.read_and_write import pcs
File "/home/titan/Documents/autoenv/lib/python3.5/site-packages/ConfigSpace/init.py", line 33, in
from ConfigSpace.configuration_space import Configuration,
File "ConfigSpace/configuration_space.py", line 37, in init ConfigSpace.configuration_space
File "init.pxd", line 872, in init ConfigSpace.hyperparameters
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216
The text was updated successfully, but these errors were encountered: