Skip to content

Deck: make xml.etree optional - #1

Merged
Alexsander720 merged 1 commit into
Alexsander720:mainfrom
Guacam-Ole:fix/decky-python-no-xml
Nov 30, 2026
Merged

Alexsander720 merged 1 commit into
Alexsander720:mainfrom
Guacam-Ole:fix/decky-python-no-xml

Conversation

@Guacam-Ole

Copy link
Copy Markdown
Contributor

Decky Loader 3.3.1 bundles its own Python 3.14 (PyInstaller) and plugin backends run inside it. That interpreter has no xml package, so game_visuals.py raised "No module named 'xml.etree'" on every get_card call and the game page never received a card. An import probe over all 95 stdlib modules the plugin uses showed xml.* as the only gap.

ElementTree is only used to validate authored SVG rails. Without it the SVG rail is skipped (PNG rails keep working); nothing else changes.

…kage

Decky Loader 3.3.1 bundles its own Python 3.14 (PyInstaller) and plugin
backends run inside it. That interpreter has no `xml` package, so
`game_visuals.py` raised "No module named 'xml.etree'" on every get_card
call and the game page never received a card. An import probe over all
95 stdlib modules the plugin uses showed xml.* as the only gap.

ElementTree is only used to validate authored SVG rails. Without it the
SVG rail is skipped (PNG rails keep working); nothing else changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Alexsander720

Copy link
Copy Markdown
Owner

Thanks for catching this and checking the other stdlib imports. I hadn't hit it on my own setup yet, and Decky 3.3.1 dropping xml would have silently broken cards for everyone updating. All 25 current games use PNG rails anyway, so skipping SVG when ET is missing is completely safe. Merging now.

@Alexsander720
Alexsander720 merged commit 9c70584 into Alexsander720:main Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants