EMAD Windows Setup Guide
π Quick Fix for Your Issue
The error you encountered is now fixed. Here's how to proceed:
Step 1: Run Diagnostics (Recommended)
First, let's check if everything is set up correctly:
python troubleshoot-emad.pyThis will check:
β Python version compatibility
β Required packages installation
β File availability
β GitHub token configuration
β API connectivity
β File permissions
Step 2: Install Dependencies
If diagnostics show missing packages, install them:
pip install requests pywin32Step 3: Easy Service Installation
Use the automated installer (run as Administrator):
Option A: Batch File (Recommended)
Option B: PowerShell
Option C: Manual Installation
π§ What Was Fixed
The original error occurred because:
β Python couldn't import
emad_auto_syncfromemad-auto-sync.py(hyphen vs underscore)β Fixed: Created
emad_auto_sync.pythat properly imports from the main scriptβ Fixed: Updated service wrapper to use correct imports
β Fixed: Added automated installation scripts
π Step-by-Step Manual Setup
If you prefer manual setup:
1. Check Prerequisites
2. Install Required Packages
3. Test the Main Script
4. Install Windows Service
5. Start the Service
6. Check Service Status
π― Service Management Commands
Once installed, you can manage the service with:
π Monitoring the Service
View Logs
Windows Event Viewer
Open Event Viewer (
eventvwr.msc)Navigate to: Windows Logs β Application
Look for "EMADAutoSync" entries
Service Manager
Open Services (
services.msc)Find "EMAD Auto-Sync Monitoring Service"
Check status and configure startup type
π Troubleshooting
Common Issues & Solutions
Issue: Service won't install
Issue: Import errors
Issue: GitHub authentication fails
Issue: Permission denied
Debug Mode
If the service isn't working, run in debug mode to see detailed output:
This runs the service in the foreground so you can see all log messages.
π File Structure
After setup, you should have:
β
Verification
After installation, verify everything works:
Check service status:
Check logs:
Test GitHub connection:
Monitor for changes:
Make a small change to any file in JAEGIS-METHOD
Wait for the next monitoring cycle (default: 1 hour)
Check logs for sync activity
π Success!
Once everything is working, you should see:
β Service running in Windows Services
β Log entries every hour showing monitoring activity
β Automatic PRs created when files change
β Repository stays synchronized with local changes
The EMAD Auto-Sync service will now continuously monitor your JAEGIS-METHOD directory and automatically sync any changes to your GitHub repository!
π Need Help?
If you encounter any issues:
Run diagnostics:
python troubleshoot-emad.pyCheck logs: Look in the
logs/directoryTry debug mode:
python emad-auto-sync-service.py debugVerify permissions: Ensure you're running as Administrator
The system is now fully automated and should work seamlessly in the background! πβ¨
Last updated