Installation Guide
1 Installation Guide
This guide walks you through installing and setting up VeritaScribe on your system.
1.1 Prerequisites
Before installing VeritaScribe, ensure you have:
- Python 3.13 or higher: VeritaScribe requires modern Python features
- OpenAI API Key: Required for LLM-based analysis
- uv: Modern Python package manager (recommended)
1.2 Step 1: Check Python Version
Verify you have Python 3.13 or higher:
python --version
# Should show Python 3.13.x or higher
If you need to install or upgrade Python:
# Using Homebrew
brew install python@3.13
# Using pyenv
pyenv install 3.13.0
pyenv global 3.13.0
# Add deadsnakes PPA for latest Python versions
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.13 python3.13-venv python3.13-pip
Download Python 3.13 from python.org or use:
# Using Chocolatey
--version=3.13.0
choco install python
# Using winget
.Python.3.13 winget install Python
1.3 Step 2: Install uv (Recommended)
uv is a fast Python package manager that VeritaScribe uses for dependency management:
curl -LsSf https://astral.sh/uv/install.sh | sh
-c "irm https://astral.sh/uv/install.ps1 | iex" powershell
pip install uv
1.4 Step 3: Clone Repository
Clone the VeritaScribe repository:
git clone <repository-url>
cd VeritaScribe
1.5 Step 4: Install Dependencies
Install all required dependencies using uv:
uv sync
This will: - Create a virtual environment automatically - Install all dependencies specified in pyproject.toml
- Set up the project for development
1.6 Step 5: Configure Environment
1.6.1 Create Environment File
Copy the example environment configuration:
cp .env.example .env
1.6.2 Edit Configuration
Open .env
in your preferred text editor and add your OpenAI API key:
# Required: OpenAI API Configuration
OPENAI_API_KEY=your_openai_api_key_here
# Optional: Customize other settings as needed
DEFAULT_MODEL=gpt-4
MAX_TOKENS=2000
TEMPERATURE=0.1
VeritaScribe requires an OpenAI API key to function. You can obtain one from the OpenAI Platform.
Security Note: Never commit your API key to version control. The .env
file is already included in .gitignore
.
1.7 Step 6: Verify Installation
Test your installation with the built-in system test:
uv run python -m veritascribe test
This will verify: - ✅ Configuration loading - ✅ PDF processing capabilities - ✅ LLM connectivity (if API key is configured)
You should see output similar to:
Running VeritaScribe system tests...
✓ Configuration loading works
✓ PDF processing works
✓ Analysis modules work
Test Results: 3/3 passed
🎉 All tests passed! VeritaScribe is ready to use.
1.8 Step 7: Try the Demo
Run the demo to see VeritaScribe in action:
uv run python -m veritascribe demo
This will: 1. Create a sample thesis PDF 2. Perform a quick analysis 3. Display results and save example reports
1.9 Alternative Installation Methods
1.9.1 Using pip (without uv)
If you prefer to use pip directly:
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -e .
1.9.2 Development Installation
For development work, install with additional dev dependencies:
uv sync --dev
1.10 Troubleshooting Installation
1.10.1 Common Issues
“uv not found” - Ensure uv is installed and in your PATH - Restart your terminal after installation - Try the alternative pip installation method
“Python version not supported” - Verify Python 3.13+ is installed: python --version
- You may need to use python3.13
explicitly - Consider using pyenv to manage Python versions
“OpenAI API key not configured” - Ensure .env
file exists in the project root - Verify your API key is correct and has credits - Check for extra spaces or characters in the key
“Permission denied” errors - On macOS/Linux, you may need to use chmod +x
on scripts - Ensure you have write permissions in the installation directory
“SSL Certificate” errors - Update certificates: pip install --upgrade certifi
- Check corporate firewall/proxy settings
1.10.2 Getting Help
If you continue to experience issues:
Check system compatibility:
uv run python -m veritascribe config
Enable verbose logging:
uv run python -m veritascribe test --verbose
Verify environment:
uv run python -c "import sys; print(sys.version)" uv run python -c "from veritascribe import config; print('Import successful')"
1.11 Next Steps
Now that VeritaScribe is installed:
- Configure your settings for optimal performance
- Learn the basic usage with examples
- Review the API reference for advanced usage
Installation complete! You’re ready to start analyzing thesis documents with VeritaScribe.