cellrank: Unable to import scvelo as scv
After installing cellrank with conda and creating the cellrank environment, I activate the environment, and in python I try to import scvelo but I can’t import it at all.
Python 3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 05:02:46)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scvelo as scv
Illegal instruction (core dumped)
$
Python 3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 05:02:46)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scvelo as scv
Illegal instruction (core dumped)
$
Versions:
…
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17
Hi @mihem ,
The problem seems to be this line in scvelo: https://github.com/theislab/scvelo/blob/master/scvelo/settings.py#L300 The quick workaround is to use:
this will cause an Exception to be raised which is caught immediatelly afterwards. I’ve created an issue on
scvelohttps://github.com/theislab/scvelo/issues/437. The reason why you’re getting this after installing CellRank is that in our requirements, we haveipywidgets, which also pulls theipython, which causes this. If there’s not IPython installed,style='scvelo'works just fine. Theipywidgetsrequirement from our side has already been removed on thedevbranch in https://github.com/theislab/cellrank/pull/571.numba is pinned in https://github.com/theislab/cellrank/blob/master/requirements.txt#L9 to
>=0.52.2,<0.53.0finish with numba==‘0.52.0’, fail in numba==‘0.53.1’