-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Very vague error without scipy installed #1495
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
Comments
Thanks for the report. Does any-one know how/whether pip checks dependencies? And where the error comes from? |
I think we need a requirements setting in setup.py https://github.com/scikit-learn/scikit-learn/blob/master/setup.py#L111 |
On 02/17/2013 04:51 PM, Hrishikesh Huilgolkar wrote:
|
Adding an |
Numpy itself requires an older version of itself or else errors during installation. |
Resolved by installing pip install scipy I avoided using specific version, earlier I was using latest version of scipy that might be the reason I was getting error. |
+1 for at least improving the error message triggered by |
Wouldn't the "right" way be to add scipy to the |
@larsmans we could use build-requires as scipy does, right: |
It would probably lead to some horrible message crashing because of the |
How about in setup.py we do a try:
import numpy
except ImportError:
raise SomeError("Install a decent pre-compiled numpy")
try:
import scipy
except ImportError:
raise SomeError("install a decent scipy") |
That sounds good (with a good error message, probably pointing to online |
Exactly. |
Possibly even without the error traceback would be better, i.e. print to On 27 January 2015 at 10:00, Andreas Mueller notifications@github.com
|
No: errors are mean exactly for this: to be captured elsewhere. An |
Mhmmm. I guess it is actually an ImportError and I wasn't thinking of the On 27 January 2015 at 10:59, Gael Varoquaux notifications@github.com
|
Not sure if this is properly filed with scikit-learn or pip, but this is what I found. I assumed that pip would install all necessary dependencies upon running
However, pip did not install scipy. This lead to a traceback with a very vague error message from the file sklearn/init.py,
It seems reasonable that scikit-learn would instead alert the user to the fact that there is a missing dependency, and is not actually installed incorrectly.
The text was updated successfully, but these errors were encountered: