pytorch-lightning
pytorch-lightning copied to clipboard
python collect_env_details.py requires setuptools-59.5.0 and cannot work with Lightning App in the cloud
π Bug
python collect_env_details.py requires setuptools-59.5.0 and cannot work with Lightning App in the cloud
To Reproduce
- download collect_env_details.py
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$ wget https://raw.githubusercontent.com/Lightning-AI/lightning/master/requirements/collect_env_details.py--2022-07-28 18:15:00-- https://raw.githubusercontent.com/Lightning-AI/lightning/master/requirements/collect_env_details.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2909 (2.8K) [text/plain]
Saving to: βcollect_env_details.pyβ
collect_env_details.py 100%[=========================================================================>] 2.84K --.-KB/s in 0s
2022-07-28 18:15:00 (44.7 MB/s) - βcollect_env_details.pyβ saved [2909/2909]
- running the collection tool results in
AttributeError: module 'distutils' has no attribute 'version'
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$ python collect_env_details.py
Traceback (most recent call last):
File "collect_env_details.py", line 28, in <module>
import pytorch_lightning # noqa: E402
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/__init__.py", line 30, in <module>
from pytorch_lightning.callbacks import Callback # noqa: E402
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/callbacks/__init__.py", line 26, in <module>
from pytorch_lightning.callbacks.pruning import ModelPruning
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/callbacks/pruning.py", line 31, in <module>
from pytorch_lightning.core.lightning import LightningModule
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/core/__init__.py", line 16, in <module>
from pytorch_lightning.core.lightning import LightningModule
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/core/lightning.py", line 40, in <module>
from pytorch_lightning.loggers import LightningLoggerBase, LoggerCollection
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/loggers/__init__.py", line 18, in <module>
from pytorch_lightning.loggers.tensorboard import TensorBoardLogger
File "/content/venv/lib/python3.8/site-packages/pytorch_lightning/loggers/tensorboard.py", line 26, in <module>
from torch.utils.tensorboard import SummaryWriter
File "/content/venv/lib/python3.8/site-packages/torch/utils/tensorboard/__init__.py", line 4, in <module>
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'
workaround to is to use pip install setuptools==59.5.0 which causes conflict
lightning 2022.7.18 requires pytorch-lightning<1.7.0,>=1.6.5, but you have pytorch-lightning 1.6.3 which is incompatible.
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$ pip install setuptools==59.5.0
Collecting setuptools==59.5.0
Downloading setuptools-59.5.0-py3-none-any.whl (952 kB)
ββββββββββββββββββββββββββββββββββββββββ 952.4/952.4 kB 68.8 MB/s eta 0:00:00
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 62.6.0
Uninstalling setuptools-62.6.0:
Successfully uninstalled setuptools-62.6.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lightning 2022.7.18 requires pytorch-lightning<1.7.0,>=1.6.5, but you have pytorch-lightning 1.6.3 which is incompatible.
Successfully installed setuptools-59.5.0
[notice] A new release of pip available: 22.1.2 -> 22.2
[notice] To update, run: pip install --upgrade pip
python collect_env_details.py does work after this. Not sure if this impacts lightning itself
zeus@lightningwork-01g8v3jstyeh3xeb4a8p5kc5wz:~$ python collect_env_details.py* CUDA:
- GPU:
- available: False
- version: 10.2
* Packages:
- lightning: 2022.7.18
- lightning_app: 0.5.2
- numpy: 1.23.1
- pyTorch_debug: False
- pyTorch_version: 1.9.0+cu102
- pytorch-lightning: 1.6.3
- tqdm: 4.64.0
* System:
- OS: Linux
- architecture:
- 64bit
- ELF
- processor: x86_64
- python: 3.8.10
- version: #1 SMP Thu May 26 12:49:47 UTC 2022
Expected behavior
Environment
Additional context
cc @tchaton @rohitgr7