From 09979c86709fa0a87aadbee915d8c31604012110 Mon Sep 17 00:00:00 2001 From: Taariq Lewis <701864+taariq@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:30:32 -0800 Subject: [PATCH] fix(polymarket): add venv-first setup for py-clob-client skills --- polymarket/_shared/polymarket_live.py | 3 ++- polymarket/high-throughput-paired-basis-maker/SKILL.md | 5 ++++- polymarket/liquidity-paired-basis-maker/SKILL.md | 5 ++++- polymarket/maker-rebate-bot/SKILL.md | 5 ++++- polymarket/paired-market-basis-maker/SKILL.md | 5 ++++- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/polymarket/_shared/polymarket_live.py b/polymarket/_shared/polymarket_live.py index a0978e2..cb8d0e1 100644 --- a/polymarket/_shared/polymarket_live.py +++ b/polymarket/_shared/polymarket_live.py @@ -837,7 +837,8 @@ def __init__( except ImportError as exc: raise RuntimeError( "Live Polymarket execution requires `py-clob-client`. " - "Install it with `pip install py-clob-client` or add it to requirements.txt." + "Create and activate a virtual environment first, then run " + "`python -m pip install -r requirements.txt`." ) from exc private_key = safe_str( diff --git a/polymarket/high-throughput-paired-basis-maker/SKILL.md b/polymarket/high-throughput-paired-basis-maker/SKILL.md index bc69a5e..c3ece7e 100644 --- a/polymarket/high-throughput-paired-basis-maker/SKILL.md +++ b/polymarket/high-throughput-paired-basis-maker/SKILL.md @@ -48,7 +48,10 @@ Live execution requires both: ```bash cd polymarket/high-throughput-paired-basis-maker -pip install -r requirements.txt +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install -r requirements.txt cp .env.example .env cp config.example.json config.json python3 scripts/agent.py --config config.json diff --git a/polymarket/liquidity-paired-basis-maker/SKILL.md b/polymarket/liquidity-paired-basis-maker/SKILL.md index 4085c4f..003f807 100644 --- a/polymarket/liquidity-paired-basis-maker/SKILL.md +++ b/polymarket/liquidity-paired-basis-maker/SKILL.md @@ -48,7 +48,10 @@ Live execution requires both: ```bash cd polymarket/liquidity-paired-basis-maker -pip install -r requirements.txt +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install -r requirements.txt cp .env.example .env cp config.example.json config.json python3 scripts/agent.py --config config.json diff --git a/polymarket/maker-rebate-bot/SKILL.md b/polymarket/maker-rebate-bot/SKILL.md index ba337f1..25175c1 100644 --- a/polymarket/maker-rebate-bot/SKILL.md +++ b/polymarket/maker-rebate-bot/SKILL.md @@ -44,7 +44,10 @@ Live execution also requires: ```bash cd polymarket/maker-rebate-bot -pip install -r requirements.txt +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install -r requirements.txt cp .env.example .env cp config.example.json config.json python3 scripts/agent.py --config config.json diff --git a/polymarket/paired-market-basis-maker/SKILL.md b/polymarket/paired-market-basis-maker/SKILL.md index 4576491..e84f8ae 100644 --- a/polymarket/paired-market-basis-maker/SKILL.md +++ b/polymarket/paired-market-basis-maker/SKILL.md @@ -48,7 +48,10 @@ Live execution requires both: ```bash cd polymarket/paired-market-basis-maker -pip install -r requirements.txt +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install -r requirements.txt cp .env.example .env cp config.example.json config.json python3 scripts/agent.py --config config.json