mailgun / talon

Apache License 2.0
1.26k stars 287 forks source link

error in importing signature #229

Open arjuniyer1978 opened 1 year ago

arjuniyer1978 commented 1 year ago

import talon from talon import quotations from talon import signature .\email_extract.py Traceback (most recent call last): File ".\email_extract.py", line 6, in

File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\site-packages\talon\signature\learning\classifier.py", line 34, in load return joblib.load(saved_classifier_filename) File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\site-packages\joblib\numpy_pickle.py", line 587, in load obj = _unpickle(fobj, filename, mmap_mode) File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\site-packages\joblib\numpy_pickle.py", line 506, in _unpickle obj = unpickler.load() File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\pickle.py", line 1088, in load dispatchkey[0] File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\pickle.py", line 1376, in load_global klass = self.find_class(module, name) File "c:\users\local\AppData\Local\Programs\Python\Python37\lib\pickle.py", line 1426, in find_class import(module, level=0) ModuleNotFoundError: No module named 'sklearn.svm.classes'

following are the versions - Talon - 1.4.4 scikit-learn - 0.24.1 ( read few threads that scikit-learn has to be a lower version) joblib - 1.1.0

If i go to lower sckit versions, i get lot of deprecated np.float64 usage warnings.

Could someone please share the right versions for scikit-learn, talon , dependencies that would work with python 3.7 and higher? Thanks