Skip to content

Conda installation defaults to using a very old version (0.8.5) instead of latest version (1.7) #14374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TheShadow29 opened this issue Aug 23, 2022 · 17 comments
Assignees
Labels
3rd party Related to a 3rd-party bug Something isn't working pl Generic label for PyTorch Lightning package priority: 0 High priority task

Comments

@TheShadow29
Copy link

🐛 Bug

On a new environment, doing the conda installation results in installing "conda-forge/noarch::pytorch-lightning-0.8.5-py_0".

To Reproduce

conda create -n test_env python=3.9
conda install ipython jupyter
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
conda install pytorch-lightning -c conda-forge

Expected behavior

It should install latest version when possible.

Environment

  • PyTorch Version (e.g., 1.10): 1.12
  • Python version (e.g., 3.9): 3.9
  • OS (e.g., Linux): Linux
  • CUDA/cuDNN version: 11.6
  • GPU models and configuration: 3090
  • How you installed PyTorch (conda, pip, source): conda
@TheShadow29 TheShadow29 added the needs triage Waiting to be triaged by maintainers label Aug 23, 2022
@awaelchli
Copy link
Contributor

I was able to reproduce it. It is enough to do:

conda create -n test_env python=3.9
conda install pytorch-lightning -c conda-forge

@Borda do you know what could be the reason for this? The latest version is correctly hosted here.

@awaelchli awaelchli added question Further information is requested and removed needs triage Waiting to be triaged by maintainers labels Aug 24, 2022
@Borda
Copy link
Member

Borda commented Aug 24, 2022

do you know what could be the reason for this? The latest version is correctly hosted here.

not sure, but it sounds strange that would take a version so old... :(
also I think that back then when 0.8.5 was released py 3.9 was not out yet 🐰

@carmocca carmocca added 3rd party Related to a 3rd-party bug Something isn't working pl Generic label for PyTorch Lightning package and removed question Further information is requested labels Aug 26, 2022
@maxencewynen
Copy link

Hi @Borda , do you have any updates on this issue? I have the exact same issue, and trying in a fresh conda environment - like this link suggests - does not resolve it.

@krshrimali krshrimali added the priority: 0 High priority task label Sep 18, 2022
@Borda
Copy link
Member

Borda commented Sep 19, 2022

ok, let me add CI for installing on conda... 🐰

@otaj
Copy link
Contributor

otaj commented Sep 19, 2022

Hi everyone, what conda version are you using? I just downloaded conda 4.14.0 and cannot reproduce on Linux

@awaelchli
Copy link
Contributor

My conda version was conda 4.12.0 (still is) and I'm on MacOS

@otaj
Copy link
Contributor

otaj commented Sep 21, 2022

I am running in circles while trying to reproduce this and was just not able to. Only thing that is remotely notable about pytorch-lightning 0.8.5 is the fact that it is the last version allowing tensorboard<2.

Could please all of you who are able to reproduce this behavior (@awaelchli, @maxencewynen, @TheShadow29) post here:

  • Series of commands leading to creating such environment, ideally as minimal as possible.
  • conda list of the resulting environment.
  • conda conda list -n base
  • your OS and ideally also method of obtaining conda as it seems different distributions differ in some default options.

Thank you!

@otaj
Copy link
Contributor

otaj commented Sep 21, 2022

There's one more notable difference between pytorch-lightning=0.8.5 and any newer version - pytorch-lightning=0.8.5 has a lower bound version pin on future>=0.17.1, whereas newer versions require future without any pin all the way to 1.7.2 and from 1.7.3 we don't require future at all. Could it be it? At the time of reporting this issue, 1.7.2 was the latest version published on conda-forge and 1.7.3 wasn't released out yet.

@awaelchli
Copy link
Contributor

Series of commands leading to creating such environment, ideally as minimal as possible.

I initially reproduced using #14374 (comment)
But now, spookingly, I CANNOT anymore. How is it possible. Still same conda version 4.12 (miniconda). And I didn't change anything since last time.

@TheShadow29
Copy link
Author

I can confirm as well. It now uses 1.7.6. I am not sure what changed though. My conda env is same as it was last time. My guess is some dependency somewhere was removed but I am not sure.

@otaj
Copy link
Contributor

otaj commented Sep 22, 2022

It might have been future, as I said, this dependency was dropped between 1.7.2 and 1.7.3 (at least on conda-forge side). Both of you reported at the time when latest version out was 1.7.2. It could be the fact that it had hard time finding some.

Let's wait on @maxencewynen and if he reports no issue anymore, I will close this. If he's able to still reproduce, I will investigate further (although I don't know where to anymore 😂)

@otaj
Copy link
Contributor

otaj commented Sep 22, 2022

It is possible something was broken and got fixed by this PR conda-forge/pytorch-lightning-feedstock#97

@awaelchli
Copy link
Contributor

@maxencewynen Has this been resolved for you as well? Would you mind checking that it downloads the latest version now? Thanks!

@maxencewynen
Copy link

Sorry for the late reply. The issue has been resolved for me as well!

@otaj
Copy link
Contributor

otaj commented Sep 29, 2022

Awesome! 🚀 Closing this issue then

@otaj otaj closed this as completed Sep 29, 2022
@otaj otaj moved this to Done in Frameworks Planning Sep 29, 2022
@Aroksak
Copy link

Aroksak commented Oct 31, 2022

Faced this today with latest conda (22.9.0). Resolved only with specifying pytorch-lightning==1.7.7.
For some reasons when installing pl 1.7.7 conda also downgraded openssl from 3.0.5 all the way down to 1.1.1, could it be connected?
Minimal steps to reproduce (or not?):
conda create -n test_pl python=3.10
conda activate test_pl
conda install pytorch-lightning

(probably worth mentioning that I have conda-forge added to default channels in .condarc)

@iceboundflame
Copy link

iceboundflame commented Nov 25, 2022

Also observed this happening (conda install pytorch-lightning -c conda-forge installed pytorch-lightning 0.8.5 and openssl 1.1.1).

Edit: conda update pytorch-lightning -c conda-forge produced a very large number of packages to update, including updating pytorch-lightning to 1.7.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Related to a 3rd-party bug Something isn't working pl Generic label for PyTorch Lightning package priority: 0 High priority task
Projects
No open projects
Status: Done
Development

No branches or pull requests

9 participants