[rank_strings 2.20201202 error]: AttributeError: module 'numpy' has no attribute 'typeDict'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- numpy, python, scikit-learn
- Domain
- machine-learning
Research direction
Read stringsifter/rank_strings.py at line 28 and inspect the dependency versions implicated by scipy/sparse/sputils.py and numpy/init.py. Run rank_strings with and without arguments to confirm the failure; done means it starts without the numpy.typeDict AttributeError.
Written by the indexing model from the issue text.
Description
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'
- Dominant language
- Python
- Stars
- 763
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mandiant/stringsifter
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mandiant/stringsifter#41 · 2 comments · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
mandiant/stringsifter#42 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
mandiant/stringsifter#39 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
mandiant/stringsifter#35 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
mandiant/stringsifter#26 · 1 comment ·
All issues in mandiant/stringsifter
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100