GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: macOS font discovery raises KeyError('_items') for an incomplete system_profiler font record · Issue #32328 · matplotlib/matplotlib Open Labels OS: Applefirst-contributionstatus: needs clarificationIssues that need more information to resolve.Issues that need more information to resolve.topic: text/fonts DescriptionSummaryOn macOS arm64, importing matplotlib.pyplot through DNA Chisel during a command-line smoke test failed in _get_macos_fonts with KeyError: '_items'. Matplotlib is 3.10.8, Python 3.12.6. The process was running with restricted filesystem access; Matplotlib could not write its default cache directory and created a temporary cache before scanning fonts. The current implementation catches subprocess/plist parsing errors but assumes every successfully decoded record contains _items: Minimal parser-boundary reproductionIn an environment where font_manager can already be imported: import plistlib from unittest.mock import patch from matplotlib import font_manager font_manager._get_macos_fonts.cache_clear() payload = plistlib.dumps([{"_name": "Fonts"}]) with patch("subprocess.check_output", return_value=payload): font_manager._get_macos_fonts() The payload is a minimal synthetic reproduction of the missing-key condition, not a capture of the entire system_profiler response. The actual CLI traceback ended at: Expected behaviorTreat unavailable/incomplete system font discovery as an empty or partial result, consistent with the existing OSError/subprocess-error fallbacks, rather than making pyplot import fail. A regression could cover missing _items and entries without a path. This is a robustness report; no change to font selection semantics is requested when system_profiler returns a complete record. Downstream discovery: openvax/vaxrank#428. Activity
MetadataMetadataAssigneesLabelsOS: Applefirst-contributionstatus: needs clarificationIssues that need more information to resolve.Issues that need more information to resolve.topic: text/fonts TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |