Open smoe opened 1 month ago
This fixes the numpy.dtype problem:
pipx install cellxgene --pip-args="numpy==1.26.4"
just now the removal of the imp package kicks in:
$ ~/.local/bin/cellxgene
Traceback (most recent call last):
File "/Users/u005069/.local/bin/cellxgene", line 5, in <module>
from server.cli.cli import cli
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/server/cli/cli.py", line 4, in <module>
from .launch import launch
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/server/cli/launch.py", line 12, in <module>
from server.app.app import Server
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/server/app/app.py", line 16, in <module>
import server.common.rest as common_rest
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/server/common/rest.py", line 26, in <module>
from server.common.fbs.matrix import decode_matrix_fbs
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/server/common/fbs/matrix.py", line 5, in <module>
from flatbuffers import Builder
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/flatbuffers/__init__.py", line 15, in <module>
from .builder import Builder
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/flatbuffers/builder.py", line 15, in <module>
from . import number_types as N
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/flatbuffers/number_types.py", line 18, in <module>
from . import packer
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/flatbuffers/packer.py", line 22, in <module>
from . import compat
File "/Users/u005069/.local/pipx/venvs/cellxgene/lib/python3.12/site-packages/flatbuffers/compat.py", line 19, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
The "imp" module was last supported in Python 3.9. And pipx only installs a Python version that is available on your machine, so you first need to install Python of said version. I used brew (not conda):
$ brew install python@3.9
followed by
pipx install cellxgene --python python3.9 --pip-args="numpy==1.26.4"
and if now there are issues then these likely warrant another tread:
$ ~/.local/bin/cellxgene launch example-dataset/pbmc3k.h5ad --title pbmc3k
[cellxgene] Starting the CLI...
[cellxgene] Loading data from pbmc3k.h5ad.
[cellxgene] Warning: Moving element from .uns['neighbors']['distances'] to .obsp['distances'].
This is where adjacency matrices should go now.
[cellxgene] Warning: Moving element from .uns['neighbors']['connectivities'] to .obsp['connectivities'].
This is where adjacency matrices should go now.
[cellxgene] Launching! Please go to http://localhost:5005 in your browser.
[cellxgene] Type CTRL-C at any time to exit.
Hello,
trying with docker, I ran into
With conda I admittedly did not use pip but pipx and then the installation itself runs fine, just when starting cellxgene, I get
This is some already well-documented issue in many projects and CELLxGENE is not to blame for it, except for its dependency constraints.
Can you please direct me on what I should try next? Like indeed use pip and a system-wide install?