Prerequisites
Before installing Scribe Backend, ensure you have:- Python 3.13+ installed on your system
- Git for cloning the repository
- PostgreSQL or a Supabase account
- Redis 5.0+ for Celery task queue
Scribe Backend requires Python 3.13 or higher. Check your version with
python3 --version.Step 1: Clone Repository
Clone the Scribe Backend repository to your local machine:Step 2: Create Virtual Environment
Create an isolated Python environment to manage dependencies:Activate virtual environment
(venv) indicating the environment is active.Step 3: Install Python Dependencies
Install all required Python packages fromrequirements.txt:
Key Dependencies Installed
| Package | Version | Purpose |
|---|---|---|
| fastapi | 0.109+ | Web framework and API server |
| sqlalchemy | 2.0.25+ | ORM for database operations |
| alembic | 1.13.1+ | Database migration management |
| celery | 5.3+ | Distributed task queue |
| redis | 5.0+ | Celery broker and result backend |
| anthropic | 0.72.1+ | Claude AI integration |
| pydantic-ai-slim | 1.18+ | Structured AI agents |
| playwright | 1.56+ | Web scraping (headless browser) |
| supabase | 2.3+ | Authentication and database client |
| logfire | 4.14.2+ | Observability and monitoring |
Installation may take 2-5 minutes depending on your internet connection. The complete dependency list includes ~50 packages.
Step 4: Install Playwright Browsers
Scribe uses Playwright for web scraping with JavaScript support. Install the Chromium browser:Verify Playwright Installation
Check that Chromium was installed successfully:Troubleshooting Playwright
Error: Executable not found
Error: Executable not found
If you see errors about missing executables:On Linux, you may need additional system libraries:
Running in containers/serverless
Running in containers/serverless
For Docker or serverless deployments, use the
--no-sandbox flag (already configured in the codebase):Step 5: Verify Installation
Confirm all dependencies are installed correctly:Expected Output
Next Steps
Now that installation is complete:- Configure environment variables → Configuration Guide
- Set up the database → Database Setup Guide
- Run the application locally → Running Locally Guide
Common Issues
pip: command not found
pip: command not found
Install pip or use
python -m pip instead:Permission denied errors
Permission denied errors
Don’t use
sudo with pip in a virtual environment. Ensure you’ve activated the venv:Python 3.13 not found
Python 3.13 not found
Install Python 3.13 using your system’s package manager:macOS (Homebrew):Ubuntu/Debian:
Installation takes too long
Installation takes too long
Use a faster mirror or upgrade pip:
