Skip to content

Latest commit

 

History

History
148 lines (98 loc) · 3.62 KB

TROUBLESHOOT.md

File metadata and controls

148 lines (98 loc) · 3.62 KB

Troubleshooting Guide / 排障指南

Python External Environment Restriction (PEP 668)

Symptom: macOS system prevents direct pip global installation.

Cause: Python externally managed environment限制 - macOS系统不允许直接用pip全局安装包

Solution for Agent/AI Usage:

When using yt-dlp in an agent or AI context, you MUST use the skilless virtual environment:

# Switch to skilless directory and use uv run
cd ~/.agents/skills/skilless/ && uv run yt-dlp [args]

# Or use skilless scripts (recommended)
cd ~/.agents/skills/skilless/ && uv run scripts/youtube.py <URL>

Example - Download video:

cd ~/.agents/skills/skilless/ && uv run yt-dlp -f "best" -o "~/Downloads/video.mp4" "URL"

⚠️ Agent Prompt Rule: Always use cd ~/.agents/skills/skilless/ && uv run before any yt-dlp command. Never call system pip or global yt-dlp directly.


uv Installation Failure / uv 安装失败

Symptom: curl command hangs or fails during uv download.

Solution:

# Install uv manually
curl -LsSf https://astral.sh/uv/install.sh | sh
# Then re-run the Skilless installer
curl -LsSf https://skilless.ai/install | bash

Network Issues (China) / 网络问题(中国大陆)

Symptom: Downloads are extremely slow or time out.

The installer automatically detects if pypi.org is unreachable and switches to the Tsinghua TUNA mirror. If this auto-detection fails:

# Set mirror manually before installing
export UV_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
curl -LsSf https://skilless.ai/install | bash

Permission Errors / 权限错误

Symptom: Permission denied during installation.

Solution:

# Ensure ~/.local/bin is writable
mkdir -p ~/.local/bin
chmod 755 ~/.local/bin

# Ensure ~/.agents is writable
mkdir -p ~/.agents/skills
chmod -R 755 ~/.agents

Note: Skilless does NOT require sudo. If you're being asked for sudo, something is wrong with your directory permissions.


yt-dlp / ffmpeg Issues / 视频工具问题

Symptom: cd ~/.agents/skills/skilless/ && uv run scripts/youtube.py fails with ffmpeg-related errors.

Solution:

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

# Windows (via winget)
winget install ffmpeg

yt-dlp is installed automatically, but ffmpeg must be available on your system PATH for video processing.


Python Version Issues / Python 版本问题

Symptom: No interpreter found for Python >=3.12

Skilless requires Python 3.12+. The installer uses uv to manage Python, but if it can't find a suitable version:

# Install Python 3.12+ via uv
uv python install 3.12

# Then re-run installer
curl -LsSf https://skilless.ai/install | bash

Verify Installation / 验证安装

Run the built-in health check:

cd ~/.agents/skills/skilless/ && uv run scripts/cli.py doctor

This will verify:

  • ✅ uv is installed and accessible
  • ✅ Virtual environment exists
  • ✅ All Python dependencies are installed
  • ✅ CLI tools (search, web, ytd, media) are functional
  • ✅ ffmpeg is available (optional, for video processing)

Uninstall / 卸载

To completely remove Skilless:

rm -rf ~/.agents/skills/skilless
rm -rf ~/.agents/skills/skilless-brainstorming
rm -rf ~/.agents/skills/skilless-research
rm -rf ~/.agents/skills/skilless-writing

Still Need Help? / 还需要帮助?