[rank_strings 2.20201202 error]: AttributeError: module 'numpy' has no attribute 'typeDict'
Matthew-38 opened this issue · 0 comments
Rank_strings version 2.20201202
Also with version 3.20230711
Traceback given when I try to run rank_strings (with or without arguments):
Traceback (most recent call last):
File "/usr/local/bin/rank_strings", line 8, in
sys.exit(argmain())
File "/usr/local/lib/python3.8/dist-packages/stringsifter/rank_strings.py", line 140, in argmain
main(args.input_strings, args.limit, args.min_score,
File "/usr/local/lib/python3.8/dist-packages/stringsifter/rank_strings.py", line 28, in main
featurizer = joblib.load(os.path.join(modeldir, "featurizer.pkl"))
File "/usr/local/lib/python3.8/dist-packages/joblib/numpy_pickle.py", line 585, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/usr/local/lib/python3.8/dist-packages/joblib/numpy_pickle.py", line 504, in _unpickle
obj = unpickler.load()
File "/usr/lib/python3.8/pickle.py", line 1212, in load
dispatchkey[0]
File "/usr/lib/python3.8/pickle.py", line 1537, in load_stack_global
self.append(self.find_class(module, name))
File "/usr/lib/python3.8/pickle.py", line 1579, in find_class
import(module, level=0)
File "/usr/local/lib/python3.8/dist-packages/sklearn/init.py", line 80, in
from .base import clone
File "/usr/local/lib/python3.8/dist-packages/sklearn/base.py", line 21, in
from .utils import _IS_32BIT
File "/usr/local/lib/python3.8/dist-packages/sklearn/utils/init.py", line 20, in
from scipy.sparse import issparse
File "/usr/lib/python3/dist-packages/scipy/sparse/init.py", line 229, in
from .base import *
File "/usr/lib/python3/dist-packages/scipy/sparse/base.py", line 8, in
from .sputils import (isdense, isscalarlike, isintlike,
File "/usr/lib/python3/dist-packages/scipy/sparse/sputils.py", line 16, in
supported_dtypes = [np.typeDict[x] for x in supported_dtypes]
File "/usr/lib/python3/dist-packages/scipy/sparse/sputils.py", line 16, in
supported_dtypes = [np.typeDict[x] for x in supported_dtypes]
File "/usr/local/lib/python3.8/dist-packages/numpy/init.py", line 320, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'typeDict'