Closed lijxug closed 3 years ago
Did you install petsc4py
/slepc4py
as e.g. pip install 'cellrank[krylov]'
? If not, the crash can be due to the fact that if PETSc is not installed, the full Schur decomposition is calculated using scipy
, for which the transition matrix is densified (this can crash the Python process, esp. for large number of cells).
In any case, I'd check the logs in terminal from jupyter and/or also increase the verbosity as:
import cellrank
cr.settings.verbosity = 4
Do you still experience the issue @lijxug ?
Thanks for the reply @michalk8 .
It turns out that my petsc4py
wasn't installed properly.
This error message pops up during the installation:
WARNING: Discarding https://files.pythonhosted.org/packages/7c/e7/5b089013c5188ee5f619ad64749fc3e6355943950dfcf421c327d66ee2ac/petsc4py-3.13.0.tar.gz#sha256=ace21f71102e752fefac6c81b65207edba89a6974b3c58c71599c6c358640f39 (from https://pypi.org/simple/petsc4py/). Comman d errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I am still struggling to fix this. Although I understand that this might be a totally different issue, I'd still like your opinion on this if you have seen this before.
The error is most likely because petsc4py
must be installed after petsc
and it isn't.
For Linux, you can try the steps mentioned in: https://cellrank.readthedocs.io/en/stable/installation.html#dependencies
Alternatively, you can also try using the conda package, see: https://cellrank.readthedocs.io/en/stable/installation.html#bioconda
If none of the above works, please take a look at PETSc forums here or here - there are similar solutions that also might be helpful.
Any progress on this @lijxug?
Sorry for the delay. Yes, I uninstalled the packages mentioned by @michalk8 and then reinstalled them. Now cellrank is working as expected.
Marius Lange @.***> 于2021年10月6日周三 上午12:29写道:
Any progress on this @lijxug https://github.com/lijxug?
When running cellrank, specifically on the step 'g.compute_schur(n_components=20)' or when 'cr.tl.terminal_states' hits the step 'Computing Schur decomposition', my jupyter lab always warns me that the kernal have died and restarted.
I'd like to paste the error messages here but there is none in the notebook. Could you help me troubleshooting?
Versions: