Skip to main content
Run any Skill in Manus
with one click

nautilus-trader-logger-singleton

Stars0
Forks0
UpdatedMay 7, 2026 at 12:40

Fix for nautilus_trader's global Rust logger panicking on second init within the same Python process. Use when: (1) you see "thread '<unnamed>' panicked at crates/common/src/ffi/logging.rs:146:14: Failed to initialize logging: attempted to set a logger after the logging system was already initialized", (2) a second `BacktestEngine` instantiation crashes mid-process even when the first one succeeded, (3) `Fatal Python error: Aborted` from a nautilus test after a prior test in the same pytest run already created an engine, (4) running `compete run` / any harness that creates multiple BacktestEngine instances per run aborts the second engine. Covers the bypass_logging fix, the pytest-process-isolation pattern, and why TradingNode → BacktestEngine sequences hit it too.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly