# Troubleshooting

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

## Python + yfinance required for backtesting

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

```bash
pip install yfinance
```

Finny 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 Finny 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 Finny 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`.
