Installation - jejellyroll-fr/fpdb-3 GitHub Wiki

Installation

Two ways in: a prebuilt binary that bundles its own Python, or an install from source. The binary is the shorter road and is what most people want; installing from source is what you need to follow development, to run the tests, or to contribute.

fpdb running with its dark theme and a populated report

Requirements

Operating system Linux, macOS, Windows
Python (source install only) 3.11+, 3.13 recommended
Build tools (source install only) a C compiler and CMake — see Native equity engine
HUD X11 on Linux (see [Linux, X11 and Wayland](/jejellyroll-fr/fpdb-3/wiki/FPDB‐3-and-Different-Linux-Distributions,-X11-or-Wayland-Support-and-different-desktop-environment-(WIP))); native window support on macOS and Windows

Prebuilt binaries

Builds for macOS (Apple Silicon), Windows x64 and Linux x64 are attached to every release. They embed their own Python runtime, so there is nothing to install first.

Source installations require Python 3.11 or newer. The current PyOxidizer 0.24 configuration embeds CPython 3.10.14 because that PyOxidizer release cannot link CPython 3.11+; this is a property of the bundled binary, not the source installation minimum.

Linux ships both PyOxidizer and PyInstaller builds. Windows ships PyInstaller for normal use; its PyOxidizer path is not supported. macOS ships only the PyOxidizer Apple Silicon application.

Build What it is
fpdb-pyoxidizer-* A single embedded interpreter, on Linux and macOS.
fpdb-pyinstaller-* A directory distribution, on Linux and Windows.

On Windows, take the PyInstaller build. The PyOxidizer one does not currently run.

macOS: getting past Gatekeeper

When release signing secrets are configured, the macOS build is Developer ID signed and notarized. Without them, the workflow publishes an explicit ad-hoc fallback. For an ad-hoc or non-notarized build, Gatekeeper assesses fpdb.app as a unit, but a browser download arrives quarantined; move the bundle out of ~/Downloads and clear the attribute:

mv ~/Downloads/fpdb.app /Applications/
xattr -dr com.apple.quarantine /Applications/fpdb.app

Extracting the archive with tar rather than double-clicking it in Finder avoids the quarantine flag being set in the first place. The full explanation, including what each part of Gatekeeper is actually checking, is in docs/macos-gatekeeper.md.

Installing from source

git clone https://github.com/jejellyroll-fr/fpdb-3.git
cd fpdb-3
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[test]

On Windows PowerShell, use py -3 -m venv .venv and .venv\Scripts\Activate.ps1 instead.

Or, considerably faster:

uv pip install -e .[test]

Optional extras, on top of the base install:

Extra For
.[linux] Linux window detection (xcffib)
.[windows] Windows window detection (pywin32)
.[macos] macOS
.[postgresql] PostgreSQL — already a base dependency, see Databases
.[mysql] MySQL / MariaDB (mysqlclient)
.[test] The test suite, ruff and mypy
.[build] Producing the binaries yourself (PyInstaller)

Native equity engine

Equity calculations — the all-in-or-fold analyses and the replayer's EV readouts — run on pypoker-eval, a C extension. It is a required dependency pinned to v1.2.0, and pip builds it from source during the install above. That is why a C compiler and CMake are prerequisites, and it is the most common reason a source install fails on a fresh machine.

Install them first if pip install stops on a build error:

# Debian / Ubuntu
sudo apt install build-essential cmake python3-dev

# Fedora
sudo dnf install gcc gcc-c++ cmake python3-devel

# macOS
xcode-select --install && brew install cmake

On Windows you need the Build Tools for Visual Studio (the "Desktop development with C++" workload) and CMake.

Details in docs/EQUITY_ENGINE.md.

Running it

uv run fpdb_3_legacy                    # full launcher (console script)
python fpdb_3_legacy/fpdb.pyw           # desktop GUI directly
python fpdb_3_legacy/HUD_main.pyw       # the HUD process on its own

To run against a configuration file other than the default one — a second profile, or the demo database from Screenshots and privacy:

python fpdb_3_legacy/fpdb.pyw -c /path/to/HUD_config.xml

Linux and Wayland

The HUD needs X11 to find and follow table windows. Under a Wayland session, force fpdb onto XWayland:

./fpdb-xwayland.sh        # from the repository root

or set FPDB_FORCE_X11=1 in the environment. Desktop-environment specifics are collected in Linux, X11 and Wayland.

First launch

On first run fpdb creates its configuration file, HUD_config.xml, from the bundled example, and a SQLite database under it:

Platform Configuration directory
Linux, macOS ~/.fpdb/
Windows %APPDATA%\fpdb\

Help → About prints the exact file it loaded, which is the quickest way to find out which configuration a running instance is actually using.

Nothing else is needed to start: go to Quickstart.

Profiling

Off by default. To record a session, set FPDB_PROFILE=1; fpdb writes a .prof and a readable summary to ~/fpdb_profiles when it exits.

FPDB_PROFILE=1 python fpdb_3_legacy/fpdb.pyw

Running the tests

make test                 # main suite, excluding the GUI
make test-all             # including the GUI
make lint && make format