Open Lotfi-2007 opened 1 year ago
i keep getting this error, i didn't got it yesterday, but now, everytime it give me an error in the place of URLs, i get something like this: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /content/microsoftexcel/launch.py:38 in │ │ │ │ 35 │ │ 36 │ │ 37 if name == "main": │ │ ❱ 38 │ main() │ │ 39 │ │ │ │ /content/microsoftexcel/launch.py:34 in main │ │ │ │ 31 │ if args.test_server: │ │ 32 │ │ configure_for_tests() │ │ 33 │ │ │ ❱ 34 │ start() │ │ 35 │ │ 36 │ │ 37 if name == "main": │ │ │ │ /content/microsoftexcel/modules/launch_utils.py:330 in start │ │ │ │ 327 │ │ 328 def start(): │ │ 329 │ print(f"Launching {'API server' if '--nowebui' in sys.argv else 'W │ │ ❱ 330 │ import webui │ │ 331 │ if '--nowebui' in sys.argv: │ │ 332 │ │ webui.api_only() │ │ 333 │ else: │ │ │ │ /content/microsoftexcel/webui.py:28 in │ │ │ │ 25 startup_timer = timer.Timer() │ │ 26 │ │ 27 import torch │ │ ❱ 28 import pytorch_lightning # noqa: F401 # pytorch_lightning should be │ │ 29 warnings.filterwarnings(action="ignore", category=DeprecationWarning, │ │ 30 warnings.filterwarnings(action="ignore", category=UserWarning, module= │ │ 31 │ │ │ │ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/init.py:34 in │ │ │ │ │ │ 31 │ _logger.addHandler(logging.StreamHandler()) │ │ 32 │ _logger.propagate = False │ │ 33 │ │ ❱ 34 from pytorch_lightning.callbacks import Callback # noqa: E402 │ │ 35 from pytorch_lightning.core import LightningDataModule, LightningModule │ │ 36 from pytorch_lightning.trainer import Trainer # noqa: E402 │ │ 37 from pytorch_lightning.utilities.seed import seed_everything # noqa: E │ │ │ │ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/init │ │ .py:25 in │ │ │ │ 22 from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoin │ │ 23 from pytorch_lightning.callbacks.model_summary import ModelSummary │ │ 24 from pytorch_lightning.callbacks.prediction_writer import BasePredictio │ │ ❱ 25 from pytorch_lightning.callbacks.progress import ProgressBarBase, RichP │ │ 26 from pytorch_lightning.callbacks.pruning import ModelPruning │ │ 27 from pytorch_lightning.callbacks.quantization import QuantizationAwareT │ │ 28 from pytorch_lightning.callbacks.rich_model_summary import RichModelSum │ │ │ │ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress │ │ /init.py:22 in │ │ │ │ 19 │ │ 20 """ │ │ 21 from pytorch_lightning.callbacks.progress.base import ProgressBarBase │ │ ❱ 22 from pytorch_lightning.callbacks.progress.rich_progress import RichProg │ │ 23 from pytorch_lightning.callbacks.progress.tqdm_progress import TQDMProg │ │ 24 │ │ │ │ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress │ │ /rich_progress.py:20 in │ │ │ │ 17 from datetime import timedelta │ │ 18 from typing import Any, Dict, Optional, Union │ │ 19 │ │ ❱ 20 from torchmetrics.utilities.imports import _compare_version │ │ 21 │ │ 22 import pytorch_lightning as pl │ │ 23 from pytorch_lightning.callbacks.progress.base import ProgressBarBase │ ╰──────────────────────────────────────────────────────────────────────────────╯ ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)
i keep getting this error, i didn't got it yesterday, but now, everytime it give me an error in the place of URLs, i get something like this: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /content/microsoftexcel/launch.py:38 in │
│ │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ ❱ 38 │ main() │
│ 39 │
│ │
│ /content/microsoftexcel/launch.py:34 in main │
│ │
│ 31 │ if args.test_server: │
│ 32 │ │ configure_for_tests() │
│ 33 │ │
│ ❱ 34 │ start() │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ │
│ /content/microsoftexcel/modules/launch_utils.py:330 in start │
│ │
│ 327 │
│ 328 def start(): │
│ 329 │ print(f"Launching {'API server' if '--nowebui' in sys.argv else 'W │
│ ❱ 330 │ import webui │
│ 331 │ if '--nowebui' in sys.argv: │
│ 332 │ │ webui.api_only() │
│ 333 │ else: │
│ │
│ /content/microsoftexcel/webui.py:28 in │
│ │
│ 25 startup_timer = timer.Timer() │
│ 26 │
│ 27 import torch │
│ ❱ 28 import pytorch_lightning # noqa: F401 # pytorch_lightning should be │
│ 29 warnings.filterwarnings(action="ignore", category=DeprecationWarning, │
│ 30 warnings.filterwarnings(action="ignore", category=UserWarning, module= │
│ 31 │
│ │
│ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/init.py:34 in │
│ │
│ │
│ 31 │ _logger.addHandler(logging.StreamHandler()) │
│ 32 │ _logger.propagate = False │
│ 33 │
│ ❱ 34 from pytorch_lightning.callbacks import Callback # noqa: E402 │
│ 35 from pytorch_lightning.core import LightningDataModule, LightningModule │
│ 36 from pytorch_lightning.trainer import Trainer # noqa: E402 │
│ 37 from pytorch_lightning.utilities.seed import seed_everything # noqa: E │
│ │
│ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/init │
│ .py:25 in │
│ │
│ 22 from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoin │
│ 23 from pytorch_lightning.callbacks.model_summary import ModelSummary │
│ 24 from pytorch_lightning.callbacks.prediction_writer import BasePredictio │
│ ❱ 25 from pytorch_lightning.callbacks.progress import ProgressBarBase, RichP │
│ 26 from pytorch_lightning.callbacks.pruning import ModelPruning │
│ 27 from pytorch_lightning.callbacks.quantization import QuantizationAwareT │
│ 28 from pytorch_lightning.callbacks.rich_model_summary import RichModelSum │
│ │
│ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress │
│ /init.py:22 in │
│ │
│ 19 │
│ 20 """ │
│ 21 from pytorch_lightning.callbacks.progress.base import ProgressBarBase │
│ ❱ 22 from pytorch_lightning.callbacks.progress.rich_progress import RichProg │
│ 23 from pytorch_lightning.callbacks.progress.tqdm_progress import TQDMProg │
│ 24 │
│ │
│ /usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress │
│ /rich_progress.py:20 in │
│ │
│ 17 from datetime import timedelta │
│ 18 from typing import Any, Dict, Optional, Union │
│ 19 │
│ ❱ 20 from torchmetrics.utilities.imports import _compare_version │
│ 21 │
│ 22 import pytorch_lightning as pl │
│ 23 from pytorch_lightning.callbacks.progress.base import ProgressBarBase │
╰──────────────────────────────────────────────────────────────────────────────╯
ImportError: cannot import name '_compare_version' from
'torchmetrics.utilities.imports'
(/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)