From 3c6a9594fcd5b1e6f593a19a4fd32d151553aa5e Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Fri, 26 Jun 2026 18:09:27 +1000 Subject: [PATCH] [house_auction] upgrade prettytable + wcwidth to fix wcwidth.width error prettytable 3.18.0 (2026-06-22) calls wcwidth.width() and requires wcwidth>=0.3.5, but the anaconda base ships wcwidth 0.2.13 (no .width), and `!pip install prettytable` does not upgrade it, so the lecture fails with `AttributeError: module 'wcwidth' has no attribute 'width'` on a full build. Install with `-U prettytable wcwidth` so pip pulls a wcwidth (0.8.1) that exposes .width. Part of #935 (house_auction item; arviz items remain). Co-Authored-By: Claude Opus 4.8 --- lectures/house_auction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/house_auction.md b/lectures/house_auction.md index 16c7a365e..003fce2a7 100644 --- a/lectures/house_auction.md +++ b/lectures/house_auction.md @@ -17,7 +17,7 @@ kernelspec: --- tags: [hide-output] --- -!pip install prettytable +!pip install -U prettytable wcwidth ``` ## Overview