You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an ImportError when trying to run CellPhoneDB commands in my conda environment. The error message indicates that cellphonedb cannot import the main module from the package.
(cpdb_env) ashamoon@c37:/projects/mpn/Arzoo/Fleischhauer_lab/Integrated_ScRNA_analysis/Sample1234/CellPhoneDB$ cellphonedb method analysis test_meta.txt test_counts.txt
Traceback (most recent call last):
File "/homes/ashamoon/mambaforge/envs/renv/bin/cellphonedb", line 2, in <module>
from cellphonedb import main
ImportError: cannot import name 'main' from 'cellphonedb' (/homes/ashamoon/mambaforge/envs/renv/envs/cpdb_env/lib/python3.8/site-packages/cellphonedb/__init__.py
(cpdb_env) ashamoon@c37:/projects/mpn/Arzoo/Fleischhauer_lab/Integrated_ScRNA_analysis/Sample1234/CellPhoneDB$ cellphonedb --help
Traceback (most recent call last):
File "/homes/ashamoon/mambaforge/envs/renv/bin/cellphonedb", line 2, in <module>
from cellphonedb import main
ImportError: cannot import name 'main' from 'cellphonedb' (/homes/ashamoon/mambaforge/envs/renv/envs/cpdb_env/lib/python3.8/site-packages/cellphonedb/__init__.py)
The text was updated successfully, but these errors were encountered:
Thanks for using CellPhoneDB! Seems like you're using CLI commands, but they are discontinued after v5 (not sure how they are both recognised and cannot be found) so you should use CellPhoneDB from Python instead of running CellPhoneDB commands from terminal.
Hope this helps!
Best,
Batu
cakirb
changed the title
Issue Title: ImportError in CellPhoneDB - Cannot Import main
ImportError in CellPhoneDB - Cannot Import main
Nov 22, 2024
I'm encountering an ImportError when trying to run CellPhoneDB commands in my conda environment. The error message indicates that cellphonedb cannot import the main module from the package.
I have tried
The text was updated successfully, but these errors were encountered: