Error: Address already in use (os error 48)
Solution:
# Check what's using port 3000
lsof -i :3000 # macOS/Linux
netstat -ano | findstr :3000 # Windows
# Use a different port
depyler agent start --port 3001Error: Permission denied (os error 13)
Solution:
# Check file permissions
ls -la ~/.depyler/
# Fix permissions
chmod 755 ~/.depyler
chmod 644 ~/.depyler/agent.json
# Run without systemd integration
depyler agent start --foregroundError: Daemon already running or stale PID file
Solution:
# Check if actually running
depyler agent status
# If not running, remove stale PID
rm /tmp/depyler_agent.pid
# Restart
depyler agent startMCP server 'depyler' not found
Solution:
- Ensure Depyler is in PATH:
which depyler
# If not found:
export PATH="$HOME/.local/bin:$PATH"- Verify configuration path:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Restart Claude Desktop after configuration changes
Failed to connect to MCP server
Solution:
# Test MCP server directly
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | depyler agent start --foreground
# Check firewall settings
sudo ufw status # Linux
sudo pfctl -s rules # macOS
# Try with debug logging
RUST_LOG=debug depyler agent start --foreground --debugError: Unsupported Python construct: <feature>
Solution:
- Check supported features
- Simplify code to use basic Python constructs
- Use type annotations for better inference:
def add(a: int, b: int) -> int:
return a + bError: Cannot infer type for variable
Solution:
# Add type hints
x: int = 42
names: List[str] = ["Alice", "Bob"]
# Use explicit casts
result = int(calculate_value())Error: Cannot determine ownership for value
Solution:
- Avoid complex aliasing patterns
- Use immutable patterns where possible
- Clone values explicitly when needed:
original = [1, 2, 3]
copy = original.copy() # Explicit copyFile monitoring not triggering transpilation
Solution:
# Check inotify limits (Linux)
cat /proc/sys/fs/inotify/max_user_watches
# Increase if needed:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
# Verify watch patterns
depyler agent add-project /path/to/project --patterns "**/*.py"
# Check debounce settings (may be too long)
# Edit ~/.depyler/agent.json
{
"transpilation_monitor": {
"debounce_interval": 500 // Reduce from default
}
}Warning: File watch limit exceeded
Solution:
- Use more specific patterns:
depyler agent add-project ./src --patterns "src/**/*.py"
# Instead of:
depyler agent add-project . --patterns "**/*.py"- Exclude virtual environments:
{
"transpilation_monitor": {
"exclude_patterns": ["**/venv/**", "**/.git/**", "**/node_modules/**"]
}
}Agent consuming excessive CPU
Solution:
# Increase debounce interval
# Edit ~/.depyler/agent.json
{
"transpilation_monitor": {
"debounce_interval": 2000, // 2 seconds
"max_batch_size": 10 // Reduce batch size
}
}
# Disable auto-transpilation
{
"agent": {
"auto_transpile": false
}
}Agent memory usage increasing over time
Solution:
# Restart periodically
depyler agent restart
# Enable memory limits (if using systemd)
# Edit /etc/systemd/system/depyler-agent.service
[Service]
MemoryLimit=500M
MemoryMax=500M
# Monitor with:
systemctl status depyler-agentError: Generated Rust code fails compilation
Solution:
# Check Rust installation
rustc --version
cargo --version
# Try with basic verification only
depyler transpile input.py --verify=basic
# Check for missing dependencies
cargo check
# Manually fix common issues:
# - Add missing imports
# - Fix lifetime annotations
# - Add type annotationsWarning: Clippy found issues in generated code
Solution:
# Run clippy manually to see issues
cargo clippy -- -D warnings
# Common fixes:
# - Use .clone() explicitly
# - Add #[allow(dead_code)] for unused functions
# - Use &str instead of &String# Agent status
depyler agent status
# View recent logs
depyler agent logs -n 100
# Follow logs in real-time
depyler agent logs --follow
# Check version
depyler --version
# Test transpilation
echo 'print("test")' | depyler transpile /dev/stdin# Run with full debug output
RUST_LOG=trace depyler agent start --foreground --debug
# Save debug output
RUST_LOG=debug depyler agent start --foreground 2>&1 | tee debug.log
# Check configuration
cat ~/.depyler/agent.json | jq .# Stop agent
depyler agent stop
# Remove configuration
rm -rf ~/.depyler
# Remove PID file
rm -f /tmp/depyler_agent.pid
# Reinstall
curl -sSL https://github.com/paiml/depyler/raw/main/install.sh | bash
# Start fresh
depyler agent start --foreground- GitHub Issues: https://github.com/paiml/depyler/issues
- Documentation: https://docs.rs/depyler
- Discord: https://discord.gg/depyler
- Examples:
/examplesdirectory in repository
When reporting issues, please include:
- System Information:
depyler --version
rustc --version
uname -a # OS info- Error Messages:
# Full error output
RUST_LOG=debug depyler agent start --foreground 2>&1 | head -100- Configuration:
cat ~/.depyler/agent.json- Reproduction Steps:
- Exact commands run
- Sample Python file (if applicable)
- Expected vs actual behavior
- Depyler installed correctly:
which depyler - Rust toolchain installed:
rustc --version - Port available:
lsof -i :3000 - Permissions correct:
ls -la ~/.depyler - No stale PID:
ls /tmp/depyler_agent.pid - PATH configured:
echo $PATH - Claude config valid: JSON syntax check
- Firewall allows localhost connections
- Sufficient disk space:
df -h - File watch limits adequate:
cat /proc/sys/fs/inotify/max_user_watches