DocumentationLocal Setup
Local Setup
Detailed local setup guide for Pynions.
Prerequisites Installation (Mac)
- Install Homebrew (if not already installed):
- Install Python 3.9 or higher:
- Install Git:
Project Setup
-
Open Terminal on your Mac
-
Create a new directory for your project:
- Initialize Git repository:
- Create the project structure:
- Create and activate virtual environment:
- Install dependencies:
Configuration Setup
- Create config.json:
- Open config.json in your editor (e.g., VS Code):
- Add your API keys:
Cursor IDE Setup
-
Install Cursor from https://cursor.sh/
-
Open Cursor and select "Open Folder"
-
Navigate to your project directory (~/Documents/pynions)
-
Set up Python interpreter:
- Click on the Python version in the bottom status bar
- Select the interpreter from your virtual environment:
~/Documents/pynions/venv/bin/python
Running Your First Workflow
- Make sure your virtual environment is activated:
- Run the example SERP analysis:
- Check the results in the
data
directory
Common Issues and Solutions
-
Module not found errors
- Ensure virtual environment is activated
- Run
pip install -r requirements.txt
again - Check if you're in the correct directory
-
API errors
- Verify API keys in config.json
- Check API service status
- Look at logs in data/pynions.log
-
Playwright errors
- Run
playwright install
again - Check Playwright documentation for Mac-specific issues
- Run
-
Permission errors
- Run
chmod +x venv/bin/python
if needed - Ensure write permissions in data directory
- Run
Development Workflow
- Activate virtual environment:
- Create new branch for features:
- Run tests:
- Commit changes:
Remember to:
- Always work with the virtual environment activated
- Keep config.json in .gitignore
- Check logs in data/pynions.log for issues
- Run tests before committing changes
Updated 5 days ago
Edit this page