Skip to main content
The lerobot-info command displays comprehensive system information useful for debugging LeRobot issues and reporting bugs.

Command

Location: src/lerobot/scripts/lerobot_info.py

Overview

This utility:
  • Shows LeRobot and dependency versions
  • Reports system platform and Python version
  • Displays GPU and CUDA information
  • Lists installed LeRobot scripts
  • Runs without requiring LeRobot dependencies
  • Outputs in markdown format for easy copying

Output Example

Example output:

Information Displayed

LeRobot Information

str
Installed LeRobot package version or “N/A” if not installed.
list
All installed command-line scripts (e.g., lerobot-train, lerobot-record).

System Information

str
Operating system and architecture (e.g., Linux-6.5.0, Windows-10, macOS-14.0).
str
Python interpreter version.

Dependency Versions

str
Version of huggingface_hub package.
str
Version of datasets package.
str
Version of numpy package.
str
FFmpeg command-line tool version (required for video encoding).

PyTorch and GPU Information

str
PyTorch version including CUDA/ROCm build info.
bool
Whether PyTorch has CUDA support compiled in.
str
CUDA version PyTorch was built with.
str
GPU device name (e.g., “NVIDIA GeForce RTX 4090”).
str
Placeholder for user to fill in when reporting issues.

Use Cases

Bug Reports

When reporting issues on GitHub:
  1. Run lerobot-info
  2. Copy the output
  3. Paste into your issue description
  4. Fill in “Using GPU in script?” field
Example:

Debugging Installation Issues

Check if all dependencies are installed:
Look for “N/A” values:
  • LeRobot version: N/A → LeRobot not installed
  • PyTorch version: N/A → PyTorch not installed
  • FFmpeg version: N/A → FFmpeg not installed
  • Cuda version: N/A → CUDA not available

Verifying GPU Setup

Check CUDA availability:
Example output:
If CUDA is not available:
  • “Is PyTorch built with CUDA support?: False” → Install CUDA-enabled PyTorch
  • “Cuda version: N/A” → Install CUDA toolkit
  • “GPU model: N/A” → No GPU detected or driver issue

Comparing Environments

When collaborating, compare system info:

Checking Script Availability

Verify all LeRobot scripts are installed:
Expected scripts:
  • lerobot-calibrate
  • lerobot-dataset-viz
  • lerobot-edit-dataset
  • lerobot-eval
  • lerobot-find-cameras
  • lerobot-find-joint-limits
  • lerobot-find-port
  • lerobot-imgtransform-viz
  • lerobot-info
  • lerobot-record
  • lerobot-replay
  • lerobot-setup-can
  • lerobot-setup-motors
  • lerobot-teleoperate
  • lerobot-train
  • lerobot-train-tokenizer

Troubleshooting

FFmpeg Not Found

Output:
Solution:

PyTorch Not Using GPU

Output:
Solution: Install CUDA-enabled PyTorch:

Version Parsing Failed

Output:
Cause: Package is installed but version information is unavailable. Impact: Usually not a problem; package is functional.

Programmatic Usage

Custom Information Gathering

Script Features

Minimal Dependencies

The script is designed to run with minimal dependencies:
  • Uses only Python standard library
  • Gracefully handles missing packages
  • Returns “N/A” for unavailable information
  • Can run even if LeRobot is not installed

Safe Execution

The script:
  • Never modifies system state
  • Only reads information
  • Handles errors gracefully
  • Works on Windows, Linux, and macOS

See Also