Skip to content

Commit f2e31ea

Browse files
committed
Fix bundle/05_spleen_segmentation_lightning: upgrade pytorch-lightning pin
pytorch-lightning~=2.0.0 (2.0.9) imports mlflow at module level via pytorch_lightning.loggers.mlflow; mlflow 3.13.0 fails to initialize under Python 3.12, making `import pytorch_lightning` fail in the training subprocess. pytorch-lightning>=2.1 uses lazy mlflow imports; confirmed working with 2.6.5: training and evaluation run to completion. Also documents the root cause in diagnose_1_6_release.md: two-part R7 issue (fd-limit download truncation + mlflow/pl import chain).
1 parent cc79a08 commit f2e31ea

2 files changed

Lines changed: 452 additions & 2 deletions

File tree

bundle/05_spleen_segmentation_lightning.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"outputs": [],
3939
"source": [
4040
"!python -c \"import monai\" || pip install -q \"monai-weekly[ignite,pyyaml]\"\n",
41-
"!pip install -q pytorch-lightning~=2.0.0"
41+
"!pip install -q pytorch-lightning>=2.1"
4242
]
4343
},
4444
{
@@ -855,7 +855,7 @@
855855
"execution_count": 11,
856856
"id": "c5ba337d-a5b0-47de-9ae2-1554a2cb4f86",
857857
"metadata": {},
858-
"outputs": [
858+
"outputs": [
859859
{
860860
"name": "stdout",
861861
"output_type": "stream",

0 commit comments

Comments
 (0)