STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
197 stars 65 forks source link

Install hangs failing to collect package metadata #123

Closed vdet closed 9 months ago

vdet commented 1 year ago

Hello,

While installing stereopy in an Apptainer container, conda hangs:

(st) Apptainer> conda install stereopy -c stereopy -c grst -c numba -c conda-forge -c bioconda
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): |  #spinning wheel, installer hangs until kill with ^C

Any idea about what went wrong?

In case this is relevant, the container was created with

singularity build stereopy.sif docker://ubuntu

I then entered in the container, installed miniconda, and followed the procedure recommended in https://stereopy.readthedocs.io/en/latest/content/00_Installation.html

Let me know if more details are useful.

vdet commented 1 year ago

Could not solve the issue above, but pip install stereopy did work.

limin321 commented 1 year ago

I have exactly the same issue while installing stereopy on Linux with conda. Then, I switch to pip install and it failed with error like this:

Screen Shot 2023-05-18 at 10 58 11 AM

Then, I tried pip install stereopy --use-pep517 it doesn't give me any error. Not sure what is supposed to be seen when installing successfully. While I try to import the package import stereo as st , it gave me so many warning, not sure how these warning will affect later analysis.

Screen Shot 2023-05-18 at 11 01 26 AM

I would appreciate if someone can explain the warnings, and how successfully installing should look like.

YAOJ-bioin commented 1 year ago

I meet the same problem as above, Ii stopped ar using cashed Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e5/24/6d7a55afa0f8aa420ddf8fa8ede8111398cc7887967dbcd0b55e56cdab48/stereopy-0.12.0.tar.gz (88.1 MB) when I use pip install -i https://pypi.tuna.tsinghua.edu.cn/simple stereopy.

LyonLen commented 1 year ago

Hello,

While installing stereopy in an Apptainer container, conda hangs:

(st) Apptainer> conda install stereopy -c stereopy -c grst -c numba -c conda-forge -c bioconda
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): |  #spinning wheel, installer hangs until kill with ^C

Any idea about what went wrong?

In case this is relevant, the container was created with

singularity build stereopy.sif docker://ubuntu

I then entered in the container, installed miniconda, and followed the procedure recommended in https://stereopy.readthedocs.io/en/latest/content/00_Installation.html

Let me know if more details are useful.

Look like it is just hung by your manually typing ctrl+c. Guess you are stuck at Collecting package metadata (repodata.json)?

vdet commented 1 year ago

Look like it is just hung by your manually typing ctrl+c.

No. I typed ctrl+c to regain control of the terminal after conda install remained hanged for hours. So that's definitively not the issue.

Guess you are stuck at Collecting package metadata (repodata.json)?

Rigth, no package is downloaded.

LyonLen commented 1 year ago

Look like it is just hung by your manually typing ctrl+c.

No. I typed ctrl+c to regain control of the terminal after conda install remained hanged for hours. So that's definitively not the issue.

Guess you are stuck at Collecting package metadata (repodata.json)?

Rigth, no package is downloaded.

You can try mamba-install instead of conda-install. Mamba is much quicker than conda while collecting package metadata. Re-create a clean conda environment. conda create -n try_mamba_install_st mamba -c conda-forge Install Stereopy (already include notebook and python3.8) mamba install stereopy -c stereopy -c grst -c numba -c conda-forge -c bioconda Hope this can help~ Thx for your reporting~

LyonLen commented 1 year ago

I have exactly the same issue while installing stereopy on Linux with conda. Then, I switch to pip install and it failed with error like this: Screen Shot 2023-05-18 at 10 58 11 AM Then, I tried pip install stereopy --use-pep517 it doesn't give me any error. Not sure what is supposed to be seen when installing successfully. While I try to import the package import stereo as st , it gave me so many warning, not sure how these warning will affect later analysis. Screen Shot 2023-05-18 at 11 01 26 AM

I would appreciate if someone can explain the warnings, and how successfully installing should look like.

Look like you had already installed Stereopy successfully. NumbaDeprecationWarning was reported by site package datashader, which means that it is incompatible with numba. It won't cause any logical bugs. We will fix that in the next version. Thx for your report.

sarahshuang commented 1 year ago

Hi,

I am encountered with the above problem as well. And I have tried all solutions mentioned above but failed.

When I run pip install -i https://pypi.tuna.tsinghua.edu.cn/simple stereopy and pip install stereopy --use-pep517, the following error occurred.

截屏2023-06-22 22 14 29 截屏2023-06-22 22 14 47 截屏2023-06-22 22 15 09

I want to know what should I do to successfully install stereopy. Thanks for your patience!

limin321 commented 1 year ago

pip install stereopy --use-pep517

Hi,

I am encountered with the above problem as well. And I have tried all solutions mentioned above but failed.

When I run pip install -i https://pypi.tuna.tsinghua.edu.cn/simple stereopy and pip install stereopy --use-pep517, the following error occurred. 截屏2023-06-22 22 14 29 截屏2023-06-22 22 14 47 截屏2023-06-22 22 15 09

I want to know what should I do to successfully install stereopy. Thanks for your patience!

Not a Dev member, just try to help. Could you please try pip install stereopy --use-pep517? I don't see you running it based on your screenshot. I helped someone else running this code and it works.

sarahshuang commented 1 year ago

pip install stereopy --use-pep517

Hi, I am encountered with the above problem as well. And I have tried all solutions mentioned above but failed. When I run pip install -i https://pypi.tuna.tsinghua.edu.cn/simple stereopy and pip install stereopy --use-pep517, the following error occurred. 截屏2023-06-22 22 14 29 截屏2023-06-22 22 14 47 截屏2023-06-22 22 15 09 I want to know what should I do to successfully install stereopy. Thanks for your patience!

Not a Dev member, just try to help. Could you please try pip install stereopy --use-pep517? I don't see you running it based on your screenshot. I helped someone else running this code and it works.

Thx! Acturally I tried pip install stereopy --use-pep517, but the similar error occurred as well.

截屏2023-06-23 09 27 37 截屏2023-06-23 09 27 44 截屏2023-06-23 09 27 55 截屏2023-06-23 09 28 27 截屏2023-06-23 09 28 33 截屏2023-06-23 09 29 09
limin321 commented 1 year ago

pip install stereopy --use-pep517

Hi, I am encountered with the above problem as well. And I have tried all solutions mentioned above but failed. When I run pip install -i https://pypi.tuna.tsinghua.edu.cn/simple stereopy and pip install stereopy --use-pep517, the following error occurred. 截屏2023-06-22 22 14 29 截屏2023-06-22 22 14 47 截屏2023-06-22 22 15 09 I want to know what should I do to successfully install stereopy. Thanks for your patience!

Not a Dev member, just try to help. Could you please try pip install stereopy --use-pep517? I don't see you running it based on your screenshot. I helped someone else running this code and it works.

Thx! Acturally I tried pip install stereopy --use-pep517, but the similar error occurred as well. 截屏2023-06-23 09 27 37 截屏2023-06-23 09 27 44 截屏2023-06-23 09 27 55 截屏2023-06-23 09 28 27 截屏2023-06-23 09 28 33 截屏2023-06-23 09 29 09

I saw you are using Mac. That is the issue. I never figure out how to install it on Mac, then I gave up. The tool is not compatible with Mac yet. Try using a Linux system.

sarahshuang commented 1 year ago

I saw you are using Mac. That is the issue. I never figure out how to install it on Mac, then I gave up. The tool is not compatible with Mac yet. Try using a Linux system.

Many thanks for your reply and suggestion! Okay, I will try using a Linux system and hope it will work finally.

playgamemy commented 1 year ago

Just reporting the same issue happended with both my Windows machine. Cannot install Stereopy using Conda following the instruction, keep spinning in solving environment after retry with next repodata source. Tried both specifying stereopy channel or just using the default channel and still the same. image

sarahshuang commented 1 year ago

Just reporting the same issue happended with both my Windows machine. Cannot install Stereopy using Conda following the instruction, keep spinning in solving environment after retry with next repodata source. Tried both specifying stereopy channel or just using the default channel and still the same. image

Maybe you could try pip install stereopy --use-pep517! By running the code, I successfully installed stereopy in Linux system.

playgamemy commented 1 year ago

Just reporting the same issue happended with both my Windows machine. Cannot install Stereopy using Conda following the instruction, keep spinning in solving environment after retry with next repodata source. Tried both specifying stereopy channel or just using the default channel and still the same. image

Maybe you could try pip install stereopy --use-pep517! By running the code, I successfully installed stereopy in Linux system.

I can indeed confirm installation of stereopy package in the new conda environment using pip instead, in both of my windows 11 machines with no error.

FYI my conda is 23.3.1, and pip within the python3.8 conda environment is 23.1.2. I have tried to create a new conda environement with stereopy package satisfied, and finally get the conflict error spit out which packages are in conflict. Attached below for R&D team reference to be resolved before rebuilding for the conda package. image

If conda package build for Windows x64 remaining an issue, and pip is the recommended way to go, maybe edit the installation tutorial and have pip as the first recommended method.

waniwal commented 1 year ago

I met the same problem. I eventually solved using run pip install stereopy in cmd as the terminal administrator's.