Skip to content

Keep R from loading the system libpython in the tutorial notebooks - #1185

Merged
Zethson merged 1 commit into
mainfrom
fix-tutorials-ubuntu-26
Oct 23, 2026
Merged

Zethson merged 1 commit into
mainfrom
fix-tutorials-ubuntu-26

Conversation

@Zethson

@Zethson Zethson commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

On Ubuntu 26.04, which is now ubuntu-latest, R prepends the system library directory to LD_LIBRARY_PATH, so joblib's worker processes load Ubuntu's libpython3.14 instead of setup-python's and cannot import joblib. Presetting R_LD_LIBRARY_PATH to R's own lib directory fixes the milo and differential gene expression notebooks.

@codecov-commenter

codecov-commenter commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.01%. Comparing base (f19ae9b) to head (ae9f636).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1185   +/-   ##
=======================================
  Coverage   74.01%   74.01%           
=======================================
  Files          56       56           
  Lines        8875     8875           
=======================================
  Hits         6569     6569           
  Misses       2306     2306           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

On ubuntu-latest, now Ubuntu 26.04, R's etc/ldpaths prepends
/usr/lib/x86_64-linux-gnu to LD_LIBRARY_PATH when rpy2 starts R. That
directory has Ubuntu's own libpython3.14, which then wins over the
setup-python binary's RUNPATH in every child process, so joblib's loky
workers start without the hostedtoolcache site-packages and fail with
'No module named joblib'. This broke the PyDESeq2 cells in the milo and
differential gene expression notebooks, which run after EdgeR has
started R. Presetting R_LD_LIBRARY_PATH to R's own lib directory keeps
the system directory out; the loader searches it by default anyway.
@Zethson Zethson changed the title Fix the R tutorials on Ubuntu 26.04 Keep R from loading the system libpython in the tutorial notebooks Oct 23, 2026
@Zethson
Zethson force-pushed the fix-tutorials-ubuntu-26 branch from 36880fa to ae9f636 Compare October 23, 2026 10:24
@Zethson
Zethson marked this pull request as ready for review October 23, 2026 10:24
@Zethson
Zethson merged commit 6feb8d6 into main Oct 23, 2026
21 of 22 checks passed
@Zethson
Zethson deleted the fix-tutorials-ubuntu-26 branch October 23, 2026 10:27
Zethson added a commit that referenced this pull request Nov 3, 2026
Adds the changelog for 1.5.0 and bumps the release drafter templates.
The version itself comes from the git tag via hatch-vcs.
The v1.5.0 section gains the guide assignment rework (#1172, #1173), the Mixscape min_cells fix (#1189), the Python 3.13 requirement and the CI and template PRs (#1165, #1184, #1185, #1190), and its two Maintenance blocks are merged in the 1.4.0 section order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants