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

can't import joblib from sklearn.externals #8

Open
slchan3 opened this issue Aug 30, 2022 · 3 comments
Open

can't import joblib from sklearn.externals #8

slchan3 opened this issue Aug 30, 2022 · 3 comments

Comments

@slchan3
Copy link

slchan3 commented Aug 30, 2022

Hello Pat,

Many thanks for sharing your work on Free Wilson analysis!

I am trying it out.

  1. I cloned your repository onto my computer.
  2. I created a new rdkit environment by "conda create -c conda-forge -n freewilson rdkit"
  3. I installed the dependencies as suggested, using "pip install docopt tqdm pyfancy sklearn scipy". Upon finishing, it says "Successfully installed docopt-0.6.2 joblib-1.1.0 pyfancy-2.4.5 scikit-learn-1.1.2 scipy-1.9.1 sklearn-0.0 threadpoolctl-3.1.0 tqdm-4.64.0" so I suppose it went well.
  4. I tried to run the demo as suggested. I went into Free-Wilson/data/ and do "../free_wilson.py all --scaffold scaffold.mol --in fw_mols.smi --act fw_act.csv --prefix test"

Unfortunately it says "ImportError: cannot import name 'joblib' from 'sklearn.externals' (..../miniconda3/envs/freewilson/lib/python3.10/site-packages/sklearn/externals/init.py)
"
Just wonder what am I missing?

Thank you again!

Ling Chan

@slchan3
Copy link
Author

slchan3 commented Sep 5, 2022

After some searches, it turns out that I only need to change the lines
from sklearn.externals import joblib
to
import joblib
for the crash goes away. I assume that things are working.

@PatWalters
Copy link
Owner

Thanks for letting me know. I updated the code. Btw, there's a better Free-Wilson implementation in my Practical Cheminformatics Tutorials repo.

@slchan3
Copy link
Author

slchan3 commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants