Skip to content

Do not run python3 on windows #1161

Description

@ptr727

Agent keeps invoking python3 on windows and it keeps failing and result is ignored because it is a compound statement, over and over and over.

cd "C:\Users\piete\repos\worktrees\w5-harvest" && python3 -c "
import csv
from collections import Counter
c = Counter()
with open('data/archive/catalog.csv', newline='', encoding='utf-8') as f:
    for row in csv.DictReader(f):
        c[row['doc_type']] += 1
for k,v in sorted(c.items()):
    print(f'{v:4d}  {k}')
"
And I've added it to the standing brief boilerplate alongside the pytest -q line.

Worse than wasted tokens, though. python3 here is a Microsoft Store app-execution alias that prints "Python was not found" and exits 0. So it doesn't just fail — it fails claiming success. A && chain keeps going, an if takes the success branch, and any check reading only the return code records a pass while the script never ran. That's precisely the silent-success pattern this repo's own rules forbid on mutations (|| true, 2>/dev/null), sneaking in through the interpreter name instead.

So beyond the cost to you, it means any agent that used python3 and reported a result may have reported nothing at all. I'll treat conclusions from those calls as unverified.

This was a brief problem, not an agent problem — several reached for it because nothing told them not to. That's on me.

Start menu, Manage app execution aliases.

Image

Explore option for host setup to alias python3 after installing python using winget:
https://superuser.com/questions/1576758/how-do-i-alias-python3-on-windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions