No module named 'scipy.sparse._coo'
See original GitHub issueRasa Open Source version
3.0.8
Rasa SDK version
No response
Rasa X version
No response
Python version
3.8
What operating system are you using?
Linux
What happened?
Recently built models (past week or so) will not load if they use DIET. Here’s the error from 3.0.8
but I have confirmed this issue affects 2.8.x
so I think this is somehow related to pip build environment changes.
2022-02-16 06:35:45 ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node ‘run_DIETClassifier5’, No module named ‘scipy.sparse._coo’
This may be related to #5303 and #10883.
Command / Request
Running rasa-production using standard Helm deployment
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
ImportError: No module named scipy.sparse - python
Update: I didn't import scipy in my python file, just imported keras. Here is the error message: (my_env) .. $ python test.py Using...
Read more >No module named 'scipy.sparse._coo'
I downgraded to Scipy 1.7.3 in my local machine (where the model is trained) and then re-uploaded to Rasa X, but still getting...
Read more >ImportError: No module named scipy.sparse
I get the following error message: chris@Chris-TrustyTahr:~/Bioinformatics/Software/QIIME/qiime-deploy$ print_qiime_config.py -t
Read more >scipy.sparse.coo_matrix — SciPy v1.9.3 Manual
COO is a fast format for constructing sparse matrices · Once a matrix has been constructed, convert to CSR or CSC format for...
Read more >[Fixed] ModuleNotFoundError: No module named 'scipy'
How to Fix “ModuleNotFoundError: No module named 'scipy'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Exalate commented:
rgstephens commented:
The problem is related to the release of scipy
1.8.0
on February 5. I worked around the problem by going back to1.7.3
. I think any models trained in an environment with Scipy 1.8.0 will fail when deployed to a production environment. It affects both 2.x & 3.xGlad it’s working now - if you have more questions on your specific scenario, please post them in the forum since it’s no longer about the original issue.