Installation Guide
Prerequisites
Python 3.11 or higher is required
pip (Python package installer)
Standard Installation
Install ParaDigMa from PyPI using pip:
pip install paradigma
This installs the latest stable release with all required dependencies.
Development Installation
For development or to run the tutorial notebooks with example data, you need to:
Install git-lfs
Clone the repository
Install in development mode
Step 1: Install git-lfs
ParaDigMa uses Git Large File Storage (git-lfs) for example data files. Install it before cloning.
Windows
Using Chocolatey:
choco install git-lfs
Or download the installer from https://git-lfs.com/
Linux
Ubuntu/Debian:
sudo apt-get install git-lfs
Fedora/RHEL:
sudo dnf install git-lfs
Arch Linux:
sudo pacman -S git-lfs
macOS
brew install git-lfs
Enable git-lfs (all platforms)
git lfs install
Step 2: Clone Repository
git clone https://github.com/biomarkersParkinson/paradigma.git
cd paradigma
If you already cloned without git-lfs:
git lfs install
git lfs pull
Step 3: Install Dependencies
Using pip:
pip install -e ".[dev]"
Using Poetry:
poetry install
Verify Installation
After installation, verify that ParaDigMa is installed correctly:
import paradigma
print(paradigma.__version__)
Installation from Source
For development or to use the latest development version, clone the repository and install in editable mode:
git clone https://github.com/biomarkersParkinson/paradigma.git
cd paradigma
pip install -e ".[dev]"
The [dev] extra includes development dependencies such as testing tools and linting utilities.
Dependencies
ParaDigMa requires the following core dependencies:
numpy
pandas
scipy
scikit-learn
pyyaml
Optional dependencies for specific data format support:
pyarrow
pytz
Troubleshooting
JSONDecodeError in Tutorials
Symptom: When running tutorials, you see:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Cause: Example data files are git-lfs pointer files instead of actual data.
Solution:
Install git-lfs (see Step 1 in Development Installation above)
Pull the actual data files:
git lfs install git lfs pull
Verify files are real data (not pointers):
Linux/macOS:
ls -lh example_data/verily/ppg/PPG_segment0001_meta.json # Should show ~886 bytes, not ~130 bytes head -n 1 example_data/verily/ppg/PPG_segment0001_meta.json # Should show JSON like {"file_name": ..., not "version https://git-lfs.github.com/spec/v1"
Windows PowerShell:
Get-Item example_data/verily/ppg/PPG_segment0001_meta.json | Select-Object Length # Should show ~886 bytes, not ~130 bytes Get-Content example_data/verily/ppg/PPG_segment0001_meta.json -Head 1 # Should show JSON, not "version https://git-lfs.github.com/spec/v1"
Still having issues?
Check if git-lfs is properly configured:
git lfs env
git lfs ls-files
The second command should list the binary data files being tracked by LFS.
Python Version Error
If you encounter an error like Python 3.11 or higher is required, ensure you have the correct Python version:
python --version
If you have multiple Python versions installed, specify Python 3.11+:
python3.11 -m pip install paradigma
Import Errors
If you get import errors after installation, try upgrading pip and reinstalling:
pip install --upgrade pip
pip install --force-reinstall paradigma
Dependency Conflicts
If there are dependency conflicts with your existing environment, consider creating a fresh virtual environment:
python -m venv paradigma_env
source paradigma_env/bin/activate # On Windows: paradigma_env\Scripts\activate
pip install paradigma
Virtual Environments (Recommended)
Using a virtual environment is recommended to avoid dependency conflicts:
Using venv
# Create virtual environment
python -m venv paradigma_env
# Activate it
source paradigma_env/bin/activate # On Windows: paradigma_env\Scripts\activate
# Install ParaDigMa
pip install paradigma
Using conda
# Create conda environment
conda create -n paradigma python=3.11
# Activate it
conda activate paradigma
# Install ParaDigMa
pip install paradigma
Getting Help
If you encounter issues during installation:
Search existing GitHub Issues
Open a new issue with:
Python version (
python --version)Error message (full traceback)
Operating system
Installation method used
Contact: paradigma@radboudumc.nl