Skip to content

Commit 1b72356

Browse files
committed
Do not try to upgrade the image's apt-installed PyJWT
The notebooks job installs with -U, which wants to replace PyJWT 2.7.0. That copy came from the image's debian packages, so it has no RECORD file and uv refuses: error: uninstall-no-record-file Cannot uninstall PyJWT 2.7.0 --ignore-installed leaves it in place. The image shipping PyJWT via apt rather than pip is the underlying issue.
1 parent 0d847b2 commit 1b72356

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.lightning/workflows/notebooks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ run: |
2727
bash scripts/remove-torch-lines.sh requirements/base.txt
2828
cat requirements/base.txt
2929
# double check on test requirements
30-
pip install -q -U -r requirements/base.txt -r requirements/notebooks.txt
30+
# PyJWT comes from the image's apt packages, so it has no RECORD and cannot be uninstalled
31+
# to make way for an -U upgrade; leave the installed one alone.
32+
pip install -q -U --ignore-installed PyJWT -r requirements/base.txt -r requirements/notebooks.txt
3133
# install this package
3234
pip install -e .
3335

0 commit comments

Comments
 (0)