# Troubleshooting

Source: https://finnyai.tech/docs/troubleshooting

## Python + yfinance required for backtesting

If Scout is not working, especially backtesting, make sure you have Python 3 and `yfinance` installed:

```bash
pip install yfinance
```

Scout shells out to Python for data fetching and backtest execution. Without these dependencies, commands like `/backtest` will fail.

## Common issues

- **"Command not found: finny"**: Ensure Scout is installed globally (`npm i -g finny`). Check that your npm global bin directory is on your `PATH`.
- **"API key not set"**: Run `/init` inside the Scout CLI to configure your API key and provider.
- **Backtest returns no data**: Verify the ticker symbol is valid and that yfinance can fetch data for it. Some delisted or very new tickers may not have historical data.
- **Broker connection fails after install**: Reset the managed Python env from `/settings` → Paper Trading. The first run after a reset takes 30–60s to reinstall `alpaca-py` / `ccxt`.
