Skip to content
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

Getting error when importing sklearn library in Python Notebook #53

Closed
courtney-layman opened this issue Apr 25, 2018 · 5 comments
Closed
Labels

Comments

@courtney-layman
Copy link

When I try running the following import in Python notebook: from sklearn.cluster import KMeans, I get the following error: ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory

@jaroslaw-osmanski
Copy link

Is libgfortran.so.1 present in sessionmanager container?
Does "/opt/conda/bin/conda install libgfortran==1" in sessionmanger help?
Is it Seahorse 1.4.3 ?

@courtney-layman
Copy link
Author

courtney-layman commented Apr 27, 2018

Running this code in the jupyter notebook fixes the ImportError:

import sys
!{sys.executable} -m conda install -y libgfortran==1

@courtney-layman
Copy link
Author

Yes, it's Seahorse 1.4.3

@mobsy74
Copy link

mobsy74 commented Apr 27, 2018

@jaroslaw-osmanski Yes, installing libgfortran on the sessionmanager fixes this issue. We just added the following line to the sessionmanager/docker.sbt file:
runRaw("/opt/conda/bin/conda install -y libgfortran==1")

@jaroslaw-osmanski
Copy link

This should fix it:
#56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants