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

Deprecated joblib #136

Open
StanislavPy opened this issue May 13, 2020 · 1 comment
Open

Deprecated joblib #136

StanislavPy opened this issue May 13, 2020 · 1 comment

Comments

@StanislavPy
Copy link

If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS 10.15.4
  • TensorFlow/Keras version: 1.14.0/2.3.1
  • Python version: 3.7.0

Describe the problem

In the project setup.py requirements there is a dependency on 'scikit-learn>=0.19.1', but in the module anago.preprocessing there is a dependency on joblib from sklearn.externals which is deprecated after scikit-learn version 0.23.

Source code / logs

from sklearn.externals import joblib

 File "/usr/lib/python3.7/site-packages/anago/__init__.py", line 3, in <module>
    from anago.wrapper import Sequence
  File "/usr/lib/python3.7/site-packages/anago/wrapper.py", line 7, in <module>
    from anago.preprocessing import IndexTransformer
  File "/usr/lib/python3.7/site-packages/anago/preprocessing.py", line 9, in <module>
    from sklearn.externals import joblib
ImportError: cannot import name 'joblib' from 'sklearn.externals' (/usr/lib/python3.7/site-packages/sklearn/externals/__init__.py)
@behitek
Copy link

behitek commented Jun 11, 2020

Temp fix:

pip uninstall scikit-learn
pip install scikit-learn==0.21.3

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