Environment:AI Builder Club Skills Python 3
| Knowledge Sources | |
|---|---|
| Domains | Runtime, Scripting |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
Standard Python 3 runtime environment for running CLI scripts that process JSON, images, and subtitle files.
Description
This environment provides a baseline Python 3 interpreter with standard library access (argparse, json, re, subprocess, pathlib, sys, math, random). It is the foundation for scripts that do not require GPU acceleration but do require Python 3 syntax features (f-strings, pathlib, type hints). Scripts in this environment use #!/usr/bin/env python3 shebangs and are invoked directly as CLI tools.
Usage
Use this environment for Python scripts in the Karaoke Captions and Visual Flow GIF workflows that process text, JSON, and image data without GPU acceleration. Specifically required by gen_ass (ASS subtitle generation), match_style_from_image (image analysis with Pillow+NumPy), and render_animated_gif (Pillow-based GIF rendering).
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Any (macOS, Linux, Windows) | Cross-platform |
| Hardware | Any CPU | No GPU required |
| Disk | 1GB free space | Python interpreter + pip packages |
Dependencies
System Packages
- Python 3.8+ (f-strings, pathlib, walrus operator not required)
Python Packages
- Standard library only (argparse, json, re, subprocess, pathlib, sys, math, random)
- See Environment:AI_Builder_Club_Skills_Pillow for image-processing scripts
- See Environment:AI_Builder_Club_Skills_FFmpeg for scripts using ffprobe
Credentials
No credentials required.
Quick Install
# Ensure Python 3 is available
python3 --version # should be 3.8+
# No additional packages needed for the runtime itself;
# per-script dependencies are documented in their respective environment pages.
Code Evidence
Shebang declaration from gen_ass.py:1, match_style_from_image.py:1, render_animated_gif.py:1:
#!/usr/bin/env python3
Standard library imports from gen_ass.py:15-20:
import argparse
import json
import re
import subprocess
import sys
from pathlib import Path
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
python: command not found |
Python 3 not installed or not on PATH | Install Python 3.8+ and ensure python3 is on PATH
|
ModuleNotFoundError: No module named 'PIL' |
Pillow not installed in this Python env | See Environment:AI_Builder_Club_Skills_Pillow |
SyntaxError: invalid syntax on f-strings |
Python version < 3.6 | Upgrade to Python 3.8+ |
Compatibility Notes
- macOS: System Python may be outdated; use Homebrew
python@3or pyenv. - Windows: Use WSL2 for best compatibility with subprocess calls to
ffprobe. - Linux: Most distributions ship Python 3; ensure
python3symlink exists.