Skip to content
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

Pip warns about non-standard dependency specifier #18563

Closed
mowangmodi opened this issue Sep 15, 2023 · 5 comments
Closed

Pip warns about non-standard dependency specifier #18563

mowangmodi opened this issue Sep 15, 2023 · 5 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file release ver: 1.7.x

Comments

@mowangmodi
Copy link

mowangmodi commented Sep 15, 2023

Bug description

When I used pip install copy lighting=1.7.7 on ubuntu20.04, the following problem occurred:
DEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063

What version are you seeing the problem on?

v1.7

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info

No response

cc @Borda

@mowangmodi mowangmodi added bug Something isn't working needs triage Waiting to be triaged by maintainers labels Sep 15, 2023
@awaelchli awaelchli changed the title warn Pip warns about non-standard dependency specifier Sep 15, 2023
@awaelchli awaelchli added help wanted Open to be worked on and removed needs triage Waiting to be triaged by maintainers labels Sep 15, 2023
@Borda
Copy link
Member

Borda commented Sep 18, 2023

This was fixed in later releases. Is there a specific reason you need to use this old version and can't jump to a newer one? The only other was trying to make one more/pst release with this fix...

Just checking, and 1.8 shall have it fixed

@Borda Borda added release dependencies Pull requests that update a dependency file and removed help wanted Open to be worked on labels Sep 18, 2023
@chriss1245
Copy link

This was fixed in later releases. Is there a specific reason you need to use this old version and can't jump to a newer one? The only other was trying to make one more/pst release with this fix...

Just checking, and 1.8 shall have it fixed

In my case, I need to use an older version because of the restrictions of other libraries: pyannote.audio==0.0.1 requires pytorch_lightning<1.7

@Borda
Copy link
Member

Borda commented Oct 6, 2023

Would conda distribution be an option?

@chriss1245
Copy link

not really :c

@awaelchli
Copy link
Contributor

Closing since this was fixed in all the recent versions. For the older versions that see this deprecation, we can't really make any new releases. The workaround will be either ignore the warning or downgrade pip to an earlier version that didn't warn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file release ver: 1.7.x
Projects
None yet
Development

No branches or pull requests

4 participants