-
Notifications
You must be signed in to change notification settings - Fork 169
Troubleshooting
Try installing in a fresh virtual environment:
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# or .venv\Scripts\activate on Windows
pip install -e ".[google]"The CLI entry point wasn't installed. Verify you used pip install -e ".[google]" (not just pip install). If using a virtual environment, make sure it's activated.
The key needs to be available as an environment variable. Check:
-
.envfile exists in the project root withGOOGLE_API_KEY=your-key - Or export it directly:
export GOOGLE_API_KEY=your-key - Or pass it in the MCP config's
envblock
- Verify the key at Google AI Studio
- Ensure the Gemini API is enabled for your Google Cloud project
- Free tier keys have rate limits. If you're hitting them, wait a few minutes and retry.
Gemini's free tier has per-minute and per-day limits. Each diagram generation makes multiple API calls (planning, styling, 3x visualizer, 3x critic). If you're generating many diagrams in sequence, add delays between runs or use a paid API key.
This occasionally happens with Gemini's image generation. Re-run the same command. The non-deterministic nature of generation means a second attempt often succeeds.
This is usually a retrieval or planning issue. Try:
- Making the methodology text more detailed and explicit
- Increasing
num_retrieval_examplesin config to give the Planner more reference context - Adjusting the caption to be more specific about what the diagram should emphasize
The Critic should catch this across iterations, but if it persists after 3 rounds, the description may be overloading the Visualizer. Simplify the methodology text or break a complex system into sub-diagrams.
The plot pipeline generates Matplotlib code via Gemini. If the generated code has errors:
- Check
outputs/run_<timestamp>/for the generated.pyfile - Review and manually correct the code
- Report the issue with the data file and intent string so we can improve the prompts
- Verify the
cwdpath in your MCP config points to the PaperBanana installation root - Check that
python -m mcp_serverworks when run manually from the project directory - Restart your IDE after modifying MCP configuration
Diagram generation takes 30-90 seconds. If your MCP client has a timeout shorter than this, you'll need to increase it. Check your client's documentation for timeout configuration.
Open a Discussion with the error output, your environment details, and what you've already tried.