一键导入
bianinho-python314-compatibility
Python 3.14 compatibility issues and fixes for Bianinho OS scripts — specifically the os.argv AttributeError bug.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Python 3.14 compatibility issues and fixes for Bianinho OS scripts — specifically the os.argv AttributeError bug.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Transforms the Hermes agent from a reactive question-answerer into a proactive autonomous executor. ARCHITECT takes any high-level goal, decomposes it into a dependency-aware task graph, executes each step with validation, self-corrects on failure, and delivers results — all without hand-holding. The missing execution layer for personal AI agents. Zero dependencies. Zero config. Works with any model. Pairs with apex-agent and agent-memoria for the complete autonomous agent stack.
Auto-reflective self-improvement skill — extracts learnings from corrections and success patterns, permanently encodes them into memory and skills. Philosophy: Correct once, never again.
Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4) Establishing review and quality gates, (5) Managing async communication and artifact sharing between agents.
Integrate existing autonomous agents (like Hermes) into multi-agent orchestration platforms (AionUI, LangChain, etc.) via ACP over stdio.
MiniMax Agent Platform (agent.minimax.io) — MaxHermes, MaxClaw, Skills marketplace. Relacao com Hermes Agent (NousResearch) e OpenClaw.
Paperclip AI agent operations — creating agents with hierarchy, autonomous operation via hierarchical issues, and troubleshooting. Use when: creating agents, setting up org hierarchy, recovering from errors, or monitoring agent health.
| name | bianinho-python314-compatibility |
| version | 1.0.0 |
| description | Python 3.14 compatibility issues and fixes for Bianinho OS scripts — specifically the os.argv AttributeError bug. |
| category | devops |
| tags | ["python","compatibility","python3.14","bug","scripts"] |
| tools | ["python3","terminal"] |
os.argv MissingEnvironment: Python 3.14.4 on this server (~/.local/bin/python3)
Symptom:
AttributeError: module 'os' has no attribute 'argv'
Root Cause: In Python 3.14, os.argv was removed. Scripts that use os.argv fail at runtime.
Affected code pattern:
import os
workspace = Path(os.argv[1]) if len(os.argv) > 1 else Path.home() / ".hermes"
Fix: Always use sys.argv instead:
import sys
workspace = Path(sys.argv[1]) if len(sys.argv) > 1 else Path.home() / ".hermes"
python3 -c "import os; print(hasattr(os, 'argv'))"
# Returns: False
python3 -c "import sys; print(sys.argv)"
# Returns: ['-c'] (works fine)
ALL scripts in ~/.hermes/scripts/ must use sys.argv, NEVER os.argv.
When creating new scripts, use this template:
#!/usr/bin/env python3
import sys
import json
from pathlib import Path
# ... other imports
def main():
workspace = Path(sys.argv[1]) if len(sys.argv) > 1 else Path.home() / ".hermes"
# ...
if __name__ == "__main__":
main()
~/.hermes/scripts/learning_loop/init.py — FIXED~/.hermes/scripts/learning_loop/extract.py — FIXED~/.hermes/scripts/learning_loop/promote_rules.py — FIXED~/.hermes/scripts/learning_loop/confidence_decay.py — was already using sys.argv~/.hermes/scripts/learning_loop/inject_rules.py — was already using sys.argv~/.hermes/scripts/learning_loop/update_metrics.py — was already using sys.argv~/.hermes/scripts/learning_loop/self_audit.py — FIXED (26/04/2026 cron job)~/.hermes/scripts/learning_loop/event_types.py — was already using sys.argvFound on 2026-04-21 during the OpenClaw skills adaptation session.
When running init.py, the error was AttributeError: module 'os' has no attribute 'argv'
despite the file clearly having import os at the top.
Diagnosis: which python3 showed Python 3.14.4 at ~/.local/bin/python3.
Python 3.14 removed os.argv as part of cleanup — it was deprecated since Python 3.9.
Symptom: Installed flask, pillow, websockify but python3 -c "import flask" → ModuleNotFoundError.
Root Cause: python3 --version → 3.14.4. pip install --break-system-packages installs to Python 3.14 site-packages. But the skill system runs scripts in a sandbox that may use a different Python interpreter.
Diagnosis:
python3 --version # which python3
python3 -c "import flask" # test if installed
pip3 show flask # where it was installed
Fix: Always test after install:
python3 -c "from flask import Flask; print('OK')"
Xlib was installed in Python 3.12 but script ran with 3.14:
/home/alvarobiano/.local/lib/python3.12/site-packages/~/.local/bin/python3)~/.local/share/uv/python/cpython-3.14.4-linux-x86_64-gnu/bin/pip install --break-system-packages python3-xlibPattern: When a module installs but import fails — check pip show <module> Location vs python3 --version.
sys.path may be empty in some invocation modes — always be explicit__pycache__ may be created even when using -B flag initially, then persistpython3 -B script.py to prevent .pyc creation if needed/home/alvarobiano/.local/bin/python3 → Python 3.14.4~/.hermes/hermes-agent/venv/bin/python → Python 3.11 (has os.argv)