Troubleshooting¶
This page collects common setup and runtime issues for online-fdr.
rpy2 and R Parity Issues¶
Parity tests require:
rpy2installed in the active environment- R available on
PATH - Bioconductor
onlineFDRpinned to2.18.0 - R
4.5.x(for Bioconductor3.22)
Symptom: R or Rscript not found¶
Check runtime availability:
If unavailable, install R and ensure executables are on PATH.
Install the Python parity dependency group:
Symptom: Bioconductor/R version mismatch¶
Example error:
Bioconductor version '3.22' requires R version '4.5'
Fix by upgrading to R 4.5.x, then reinstalling:
Rscript -e "options(repos = c(CRAN = 'https://cloud.r-project.org')); if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager')"
Rscript -e "BiocManager::install(version = '3.22', ask = FALSE, update = FALSE)"
Rscript -e "BiocManager::install('onlineFDR', version = '3.22', ask = FALSE, update = FALSE)"
Rscript -e "stopifnot(as.character(utils::packageVersion('onlineFDR')) == '2.18.0')"
Symptom: Linux build error with missing tirpc¶
If rpy2 build fails with linker errors such as cannot find -ltirpc, install:
Then reinstall dependencies.
Import Errors¶
Symptom: ModuleNotFoundError: No module named 'online_fdr'¶
Install package dependencies and run from repository root:
Test Selection Problems¶
Symptom: R parity setup is incomplete¶
The default test command excludes live R parity through the live_r_parity pytest marker, so local development can run without R:
After R setup is complete, run:
uv run python -m pytest -m live_r_parity tests/test_onlinefdr_parity.py tests/test_async_methods.py -q
Documentation Build Issues¶
Symptom: mkdocs command not found¶
Install docs dependencies:
Then run: