Closed whitneyt1 closed 3 months ago
Additionally, here are my installed packages accessed by conda list
I would say this is an issue caused by a newer version of numba that makes scanpy incompatible with it. You can either update scanpy, or try downgrading numba. I would recommend updating scanpy.
If that doesn't work, try what was commented here: https://github.com/openai/whisper/discussions/1103#discussioncomment-5791748
which is basically running this: python pip install llvnlite --ignore-installed
, then reinstall/update numba
hmm. thank you @earmingol!
I was able to successfully install scanpy 1.9.8, install llvmlite (0.41.1) and update numba (0.58.1) but now import cell2cell as c2c
kills the kernel, and I receive the error,
Kernel Restarting The kernel for Whitney_Analysis/Liana_Visium/Untitled.ipynb appears to have died. It will restart automatically.
I have also tried updating tensorflow based on some other googling, but to no avail.
Thank you for your advice
Hi @whitneyt1,
Maybe it's easier if you create a new environment. If you're using liana-py just create a new env and install liana-py with all dependecies: https://liana-py.readthedocs.io/en/latest/installation.html
For R, maybe recreating our tested env as in the protocol is best: https://github.com/saezlab/ccc_protocols/blob/main/env_setup/env_python.yml
Then you can pass this environment as a param when calling cell2cell from R.
Hope this helps!
PS. I recommend using liana-py - let me know if you need any help converting your object. :)
Thank you @dbdimitrov I have created a new environment with python 3.7 (as recommended by cell2cell installation page https://github.com/earmingol/cell2cell) on a cluster node with gpu. lianaxcell2cell.txt however, this has led to an inability to read in pickle files created from my previous liana environment on my local.
This was solved by reloading my liana_res and rerunning the to_tensor_c2c
function.
Thank you!
Oh, that version was for when I created cell2cell. I forgot that I left it there. I recommend using a newer version, maybe 3.10
Also use this instructions to create an env compatible with cell2cell and lianapy: https://github.com/saezlab/ccc_protocols/tree/main/env_setup
If you have problems loading metadata with pickle, this is because of the version of pandas you are using. Make sure to use the same pandas version you used to save the file.
thanks @earmingol ! Sounds good. If I have any other issues, i'll update everything in a new python env with python 3.10.
哦,那个版本是我创建 cell2cell 时用的。我忘了把它放在那里了。我建议使用更新的版本,比如 3.10
还可以使用此说明创建与 cell2cell 和 lianapy 兼容的环境:https://github.com/saezlab/ccc_protocols/tree/main/env_setup
如果您在使用 pickle 加载元数据时遇到问题,这是由于您使用的 pandas 版本所致。请确保使用与保存文件时相同的 pandas 版本。
Still fails. could you help to put forward a installtion tutorials using pip or conda (liana pytorch cell2cell all-in one)?
@huiyijiangling this seems related with an issue associated to your OS. See reply here too: https://github.com/saezlab/ccc_protocols/issues/17#issuecomment-2269285591
Could you provide more information?
Hi!
I am trying to use cell2cell and liana on a linux cluster but when I try to import cell2cell, I repeatedly get this error:
If I try to update my numba from 0.55.2 to the most updated version (0.58.1) I get the same error.
Please advise.
Thank you! :)