Lightning-AI / Lightning-AI/pytorch-lightning

compatibility with rich 15.0.0

Open
#21,865 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug progress bar: rich ver: 2.6.x
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Bug description

Hello

I would like to install `lightning[pytorch-extra] 2.6.5` and `rich 15.0.0` in the same python environment
But when I run `pip install lightning[pytorch-extra]==2.6.5 rich==15.0.0` I have this conflict :
```
The user requested rich==15.0.0
lightning[pytorch-extra] 2.6.5 depends on rich<15.0 and >=12.3.0; extra == "pytorch-extra"
```
Would it be possible to ensure a compatibility with `rich 15.0.0` ?

By the way, I can't find the requirement file, or setup.py file, or pyproject.toml file from which comes this constraint `rich<15.0`...

Regards

### What version are you seeing the problem on?

v2.6.5

### Reproduced in studio

_No response_

### How to reproduce the bug

```python
Run `pip install lightning[pytorch-extra]==2.6.5 rich==15.0.0`
```

### Error messages and logs

```
The user requested rich==15.0.0
lightning[pytorch-extra] 2.6.5 depends on rich<15.0 and >=12.3.0; extra == "pytorch-extra"
```

### Environment

Current environment

```
#- PyTorch Lightning Version : 2.6.5
#- PyTorch Version : 2.13.0
#- Python version : 3.13.13
#- OS : rockylinux 8.8
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning : pip
```

### More info

_No response_

cc @ethanwharris

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the packaging metadata that defines the `pytorch-extra` dependency for `lightning==2.6.5`, then inspect why it restricts `rich` to versions below 15. Reproduce the reported `pip install lightning[pytorch-extra]==2.6.5 rich==15.0.0` conflict and confirm that the updated constraint permits both versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.