Problem
scripts/uninstall.sh uses pip3 list --format=legacy, but the legacy format was removed in pip 23.0 (2023-01-30). The script errors out and uninstalls nothing.
Steps
pip --version -> pip 23.0 or newer
bash scripts/uninstall.sh
Expected
Each aw-* module is uninstalled.
Actual
option --format: invalid choice: 'legacy' (choose from 'columns', 'freeze', 'json')
The outer grep 'aw-' receives empty stdin, $modules is empty, and the for loop is a no-op. Users think uninstall succeeded.
Cite: scripts/uninstall.sh:3 -- modules=$(pip3 list --format=legacy | grep 'aw-' | grep -o '^aw-[^ ]*')
Fix: switch to --format=freeze (output is aw-core==0.5.x, parses with existing grep) or --format=columns.
Environment
pip 26.1.2, Python 3.14.6, Windows 11. Same failure on any pip >= 23.0 per pip 23.0 changelog (removed deprecated --format=legacy).
Thanks for maintaining ActivityWatch/activitywatch!
Problem
scripts/uninstall.shusespip3 list --format=legacy, but thelegacyformat was removed in pip 23.0 (2023-01-30). The script errors out and uninstalls nothing.Steps
pip --version-> pip 23.0 or newerbash scripts/uninstall.shExpected
Each
aw-*module is uninstalled.Actual
The outer
grep 'aw-'receives empty stdin,$modulesis empty, and theforloop is a no-op. Users think uninstall succeeded.Cite:
scripts/uninstall.sh:3--modules=$(pip3 list --format=legacy | grep 'aw-' | grep -o '^aw-[^ ]*')Fix: switch to
--format=freeze(output isaw-core==0.5.x, parses with existing grep) or--format=columns.Environment
pip 26.1.2, Python 3.14.6, Windows 11. Same failure on any pip >= 23.0 per pip 23.0 changelog (removed deprecated
--format=legacy).Thanks for maintaining ActivityWatch/activitywatch!