claude-os/docs/archive/INSTALL_FIXES.md
Claude f6a1d6b417
🗂️ ORGANIZE: Reorganize root directory structure
Moved 25 files from root to organized subdirectories while keeping
essential scripts (install.sh, setup.sh, start*.sh, stop*.sh) in root.

## Changes:

### New Directory Structure:
- Created `/scripts/` for utility scripts
- Created `/docs/guides/` for user guides
- Created `/docs/development/` for dev documentation
- Created `/docs/archive/` for historical/legacy docs

### Moved Files:

**To `/scripts/` (7 files):**
- backup_claude_os.sh
- restore_claude_os.sh
- run_tests.sh
- setup_native.sh
- start_mcp_server.sh
- start_redis_workers.sh
- entrypoint.sh

**To `/docs/guides/` (7 files):**
- AUTH_SETUP.md
- BACKUP_RESTORE_GUIDE.md
- HOOK_SETUP_QUICK_START.md
- SHARING_GUIDE.md
- START_SCRIPTS_GUIDE.md
- PORTS_GUIDE.md
- WHAT_IS_CLAUDE_OS.md

**To `/docs/development/` (4 files):**
- COMPREHENSIVE_REVIEW.md
- SECURITY_FIXES.md
- CLAUDE_OS_DEVELOPER_GUIDE.md
- PROJECT_SETUP_AND_COMMANDS.md

**To `/docs/archive/` (10 files):**
- HYBRID_INDEXING_COMPLETE.md
- INITIALIZE_PROJECT_HOOKS_FIX.md
- INSTALL_ENHANCEMENTS.md
- INSTALL_FIXES.md
- PISTN_TEST_RESULTS.md
- SESSION_SUMMARY.md
- TEST_COVERAGE.md
- TEST_RESULTS.md
- TESTING_STATUS.md
- README_TESTING.md

### Updated References:

**Fixed broken documentation links in:**
- docs/QUICK_REFERENCE.md
- docs/PRODUCTION_DEPLOYMENT.md
- docs/SCRIPTS_GUIDE.md
- docs/development/SECURITY_FIXES.md
- docs/guides/BACKUP_RESTORE_GUIDE.md
- docs/development/CLAUDE_OS_DEVELOPER_GUIDE.md
- tests/TESTING_GUIDE.md
- tests/TEST_COVERAGE.md

**Script references updated to:**
- `./scripts/backup_claude_os.sh`
- `./scripts/restore_claude_os.sh`
- `./scripts/run_tests.sh`
- `./scripts/setup_native.sh`
- `./scripts/start_mcp_server.sh`
- `./scripts/start_redis_workers.sh`

### Remaining in Root (9 essential files):
- install.sh
- setup.sh
- start.sh
- start_all_services.sh
- stop_all_services.sh
- restart_services.sh
- README.md
- CLAUDE.md
- requirements.txt (+ GEMINI_DIAGRAM_PROMPT.md)

## Benefits:
✅ Cleaner root directory (9 files vs 34 files)
✅ Organized documentation by purpose
✅ Scripts grouped in dedicated directory
✅ Essential startup commands still in root
✅ All references updated and verified
✅ No broken links

Version: 2.0.2
2025-11-04 21:34:26 +00:00

222 lines
5.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Installation Script Fixes
## Issues Found and Fixed
### Issue 1: Python 3.13+ Compatibility Error
**Problem:**
```
ERROR: Could not find a version that satisfies the requirement tree-sitter-languages>=1.10.0
```
**Root Cause:**
- System had Python 3.14.0 as default
- `tree-sitter-languages` only supports Python 3.9-3.12
- Script was using incompatible Python version
**Fix Applied:**
- Updated `install.sh` to detect and use Python 3.11 or 3.12
- Added intelligent fallback: checks `python3.12`, `python3.11`, then default `python3`
- Shows helpful error message if only Python 3.13+ is available:
```
❌ Default python3 is version 3.14, but Claude OS requires Python 3.11 or 3.12
Please install Python 3.11 or 3.12:
• macOS with Homebrew: brew install python@3.12
• Ubuntu/Debian: sudo apt install python3.12
• Or download from: https://www.python.org/downloads/
```
**Files Changed:**
- `README.md` - Updated badge from `Python 3.11+` to `Python 3.11 | 3.12`
- `README.md` - Added note about Python 3.13+ not supported
- `install.sh` - Added Python version detection (lines 18-58)
---
### Issue 2: Script Stops After Agent-OS Failure
**Problem:**
```
📦 Installing Agent-OS...
📥 Cloning Agent-OS from GitHub...
[script stops, no completion message]
```
**Root Cause:**
- Agent-OS repository doesn't exist at `github.com/builder-methods/agent-os`
- `git clone` was redirected to `/dev/null`, failing silently
- Script didn't continue after Agent-OS failure
**Fix Applied:**
- Capture `git clone` output instead of suppressing it
- Check exit status and provide appropriate feedback
- Distinguish between "repo not found" vs "connection error"
- **Script now continues** even if Agent-OS fails (it's optional)
- Set `AGENT_OS_INSTALLED="no"` and continue to completion
**New Error Handling:**
```bash
if [ $CLONE_STATUS -eq 0 ] && [ -d "$AGENT_OS_DIR" ]; then
echo " ✅ Agent-OS installed successfully"
else
if echo "$CLONE_OUTPUT" | grep -q "not found"; then
echo " ⚠️ Agent-OS repository is not currently available"
echo " Note: Agent-OS integration is coming soon"
else
echo " ❌ Failed to clone Agent-OS"
fi
# Script continues...
fi
```
**Files Changed:**
- `install.sh` - Fixed Agent-OS cloning logic (lines 220-245)
---
### Issue 3: Missing Completion Message
**Problem:**
- Script stopped early, never showed completion summary
- User left wondering if installation succeeded
**Fix Applied:**
- Added prominent completion message with visual separators
- Shows exactly what was installed
- Clear numbered next steps
- Links to documentation
**New Completion Message:**
```
════════════════════════════════════════
✨ Installation complete!
════════════════════════════════════════
📋 What was set up:
✅ Commands linked to ~/.claude/commands/ (7 commands)
✅ Skills linked to ~/.claude/skills/ (3 skills)
⏭️ Agent-OS not installed (optional - not available)
✅ Python 3.12.12 virtual environment
✅ Dependencies installed (including tree-sitter)
✅ MCP server configured
════════════════════════════════════════
🎯 Next steps:
════════════════════════════════════════
1️⃣ Start Claude OS:
./start.sh
2️⃣ In Claude Code, go to your project:
cd /path/to/your/project
3️⃣ Initialize your project:
/claude-os-init
4️⃣ Start coding with AI memory! 🚀
```
**Files Changed:**
- `install.sh` - Enhanced completion message (lines 340-383)
---
## Installation Now Works!
### What Users Get:
✅ **Automatic Python Version Detection**
- Finds Python 3.12 or 3.11 automatically
- Clear error if incompatible version
✅ **Graceful Agent-OS Handling**
- Script continues if Agent-OS unavailable
- Clear feedback about optional features
✅ **Complete Installation**
- All core features installed
- Proper completion message
- Clear next steps
### Test Results:
```bash
./install.sh
```
**Output:**
- ✅ Python 3.12.12 detected and used
- ✅ Virtual environment created
- ✅ All dependencies installed (tree-sitter-languages 1.10.2)
- ✅ 7 commands symlinked
- ✅ 3 skills symlinked
- ✅ MCP server configured
- ✅ start.sh created
- ✅ Completion message shown
---
## For Users Reporting Errors
### Error: "tree-sitter-languages" can't be installed
**Solution:**
```bash
# Install Python 3.12
brew install python@3.12
# Run install (will auto-detect Python 3.12)
./install.sh
```
### Error: "Script stops after Agent-OS"
**Solution:**
- This is now fixed! Script will show:
```
⚠️ Agent-OS repository is not currently available
Note: Agent-OS integration is coming soon
```
- Then continues to completion
### Error: "No completion message shown"
**Solution:**
- Fixed! You'll now see a full completion message with:
- What was installed
- Next steps
- Documentation links
---
## Backup System Also Added!
As part of this troubleshooting session, we also created:
✅ `backup_claude_os.sh` - Backup all data
✅ `restore_claude_os.sh` - Restore from backup
✅ `BACKUP_RESTORE_GUIDE.md` - Complete guide
**Create backup before testing:**
```bash
./backup_claude_os.sh
```
**Restore if needed:**
```bash
./restore_claude_os.sh <timestamp>
```
---
## Summary
**Total Fixes:** 3 major issues resolved
**Files Modified:** 2 (README.md, install.sh)
**New Files:** 4 (backup/restore scripts + guides)
**Status:** ✅ Installation fully functional
**Your current installation is complete and ready to use!**
Run `./start.sh` to start Claude OS.