pyplati / platipy

Processing Library and Analysis Toolkit for Medical Imaging in Python
https://pyplati.github.io/platipy/
Apache License 2.0
105 stars 24 forks source link

pip hanging when trying to resolve dependencies #115

Closed rnfinnegan closed 1 year ago

rnfinnegan commented 2 years ago

When installing platipy using pip install platipy, the install will hang indefinitely due to the built-in conflict resolver in pip.

karllandheer commented 2 years ago

I also have had this issue. Does anyone know the solution to this?

pchlap commented 2 years ago

Hi @karllandheer,

one thing to try first it to update pip. I noticed that this issue seemed to often be resolved on the newer versions of pip.

pip install --upgrade pip

If the issue persists, let me know what pip version you are using as well as which OS and Python version.

karllandheer commented 2 years ago

Hello, thank you for your comment. This did resolve the issue for me.

thomasjtaylor commented 2 years ago

I am experiencing this same problem in Google Colab running any of the platipy notebooks. Installed pip version is 21.1, using pip install --upgrade pip - upgrades to pip version 22.1

Using examples/visualise.ipynb

try:
    import platipy
except:
    !pip install git+https://github.com/pyplati/platipy.git
    import platipy

colab-platipy-install-log.txt

From the logs (attached), a significant amount of time is spent downloading multiple versions of the same dependency

I get the same behavior using pip install -U platipy and pip install platipy

So far, after 24 hours using a default Google Colab notebook, platipy has still not completed install.

pchlap commented 2 years ago

I am experiencing this same problem in Google Colab running any of the platipy notebooks. Installed pip version is 21.1, using pip install --upgrade pip - upgrades to pip version 22.1

Using examples/visualise.ipynb

try:
    import platipy
except:
    !pip install git+https://github.com/pyplati/platipy.git
    import platipy

colab-platipy-install-log.txt

From the logs (attached), a significant amount of time is spent downloading multiple versions of the same dependency

  • idna<4,>=2.5
  • certifi>=2017.4.17
  • charset-normalizer~=2.0.0
  • pytz>=2017.3

I get the same behavior using pip install -U platipy and pip install platipy

So far, after 24 hours using a default Google Colab notebook, platipy has still not completed install.

Hi @thomasjtaylor, apologies for the slow reply here... This is a real head scratcher, I don't know why this is happening...

There is workaround for now, but it isn't ideal... In colab, upgrade pip, the reinstall platipy:

!pip install --upgrade pip
!pip install platipy

You may still get an error, but if you then restart your runtime (Runtime->Restart Runtime), then run from the top again it should work. Not ideal I know, but a workaround for now.

Moving forward we'll be reworking the dependency management in platipy entirely using a tool called poetry. I'm just waiting for poetry 1.2 to land since that has some key features we'll make use of and hopefully all these issues will be resolved after that's done.

pchlap commented 1 year ago

Migration to poetry is now complete and platipy 0.5.0 seems the have resolved this problem. Please let us know if this issue reappears anywhere again.