5.8 KiB
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-languagesonly supports Python 3.9-3.12- Script was using incompatible Python version
Fix Applied:
- Updated
install.shto detect and use Python 3.11 or 3.12 - Added intelligent fallback: checks
python3.12,python3.11, then defaultpython3 - 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 fromPython 3.11+toPython 3.11 | 3.12README.md- Added note about Python 3.13+ not supportedinstall.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 clonewas redirected to/dev/null, failing silently- Script didn't continue after Agent-OS failure
Fix Applied:
- Capture
git cloneoutput 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:
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:
./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:
# 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:
./backup_claude_os.sh
Restore if needed:
./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.