Commit 5bed784
committed
ci(image): install PyICU so gramps' webreport module is importable
The integration lane reported TimePedigreeHTML as a failed-to-load addon
(NameError: name 'localAlphabeticIndex' is not defined). The defect is not in
the addon: gramps 6.0's gramps/plugins/webreport/common.py sets
HAVE_ICU = False
try: from icu import Locale ...
except ImportError:
try: from PyICU import Locale ...
except ImportError: pass # <- nothing imported at all
and later does 'else: AlphabeticIndex = localAlphabeticIndex' — a name only
bound on the inner fallback paths. With NEITHER icu nor PyICU installed the
module raises NameError at import, so every addon importing it fails to load.
The CI image had no PyICU (the logs were full of 'ICU not loaded ...
Localization will be impaired'), so CI was reporting an addon defect that does
not exist for real users, who normally have PyICU.
Install PyICU (and libicu-dev to build it). This fixes the false addon
failure, silences the localization warnings, and makes the image represent a
realistic Gramps environment. The underlying gramps guard is still wrong and
worth reporting upstream.1 parent c206d1f commit 5bed784
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
86 | 98 | | |
87 | 99 | | |
88 | 100 | | |
| |||
0 commit comments