mailgun / talon

Apache License 2.0
1.27k stars 285 forks source link

joblib warning #206

Open pengyu opened 4 years ago

pengyu commented 4 years ago

I got the following warning, when I try the tolon. Could anybody fix this problem? Thanks.

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sklearn/externals/joblib/__init__.py:15: FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=FutureWarning)
tommilligan commented 4 years ago

This is now a hard error in scikit-learn==0.23 and up. Opened #207 with a fix.

import talon.signature
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-5b620dd250bd> in <module>
----> 1 import talon.signature

~/env/lib/python3.6/site-packages/talon/signature/__init__.py in <module>
     26 from . import extraction
     27 from . extraction import extract  #noqa
---> 28 from . learning import classifier
     29
     30

~/env/lib/python3.6/site-packages/talon/signature/learning/classifier.py in <module>
      9
     10 from numpy import genfromtxt
---> 11 from sklearn.externals import joblib
     12 from sklearn.svm import LinearSVC
     13

ImportError: cannot import name 'joblib'
arseniybanayev commented 4 years ago

I'm not sure there is anybody maintaining this repository anymore

vovanec commented 4 years ago

I also have the same problem. Can this be fixed any time soon?