question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'scipy.sparse._coo'

See original GitHub issue

Rasa 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:closed
  • Created 2 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

12reactions
rgstephenscommented, Mar 17, 2022

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 to 1.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.x

0reactions
melindaloubser1commented, May 11, 2022

Glad 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found