omicverse icon indicating copy to clipboard operation
omicverse copied to clipboard

Conflict on scanpy and omicverse

Open yifanfu01 opened this issue 1 month ago • 2 comments

I installed omicverse on the HPC with pip, followed the suggestion mentioned on #60 and when import omicverse, i met errors:

Traceback (most recent call last):
  File "py_test.py", line 17, in <module>
    import omicverse as ov
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/omicverse/__init__.py", line 11, in <module>
    from . import bulk,single,mofapy2,utils,bulk2single,pp,space,pl,spatrio
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/omicverse/bulk/__init__.py", line 8, in <module>
    from ._Gene_module import pyWGCNA
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/omicverse/bulk/_Gene_module.py", line 14, in <module>
    import scanpy as sc
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/scanpy/__init__.py", line 45, in <module>
    from . import datasets, experimental, external, get, logging, metrics, queries
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/scanpy/datasets/__init__.py", line 5, in <module>
    from ._datasets import (
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/scanpy/datasets/_datasets.py", line 15, in <module>
    from ..readwrite import read, read_visium
  File "/public/home/USER/.conda/envs/omicverse/lib/python3.8/site-packages/scanpy/readwrite.py", line 1015
    ) as t,
      ^
SyntaxError: invalid syntax

I think it is due to conflict of scanpy. I used scanpy 1.10.1 Then I reinstall scanpy to 1.9.8 it will solved. But i choose to uninstall and re-install, so some dependencies are not available.

Installing collected packages: scanpy
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
omicverse 1.5.9 requires ctxcore>=0.2, which is not installed.
omicverse 1.5.9 requires datetime>=4.5, which is not installed.
omicverse 1.5.9 requires ERgene>=1.2, which is not installed.
omicverse 1.5.9 requires graphtools>=1.5, which is not installed.
omicverse 1.5.9 requires gseapy==0.10.8, which is not installed.
omicverse 1.5.9 requires ktplotspy>=0.1, which is not installed.
omicverse 1.5.9 requires metatime>=1.3.0, which is not installed.
omicverse 1.5.9 requires mofax>=0.3, which is not installed.
omicverse 1.5.9 requires phate>=1.0, which is not installed.
omicverse 1.5.9 requires pybedtools>=0.8.1, which is not installed.
omicverse 1.5.9 requires pybind11>=2.10, which is not installed.
omicverse 1.5.9 requires pydeseq2<=0.4.0,>=0.3, which is not installed.
omicverse 1.5.9 requires python-dotplot>=0.0.1, which is not installed.
omicverse 1.5.9 requires scrublet>=0.2, which is not installed.
omicverse 1.5.9 requires pygam==0.8.0, but you have pygam 0.9.1 which is incompatible.
Successfully installed scanpy-1.9.8

But it seems I haven't met other errors. I'm wondering whether it occurs due to conflict of specific version of scanpy

BTW, i tried to sololy install STALigner, but I falled XD.

yifanfu01 avatar May 09 '24 04:05 yifanfu01