Skip to content

fix(setup): add missing shutil import in matrix-nio auto-install block - #4941

Closed
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/matrix-setup-shutil-import
Closed

fix(setup): add missing shutil import in matrix-nio auto-install block#4941
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/matrix-setup-shutil-import

Conversation

@ygd58

@ygd58 ygd58 commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #4912

Problem

Setup wizard crashed with "NameError: name 'shutil' is not defined" when trying to auto-install matrix-nio. The shutil module was used but never imported in that block.

Fix

Added import shutil inside the matrix-nio auto-install except block, consistent with how other install blocks in setup.py handle their imports.

@teknium1

teknium1 commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #5271 using #5136's implementation (top-level import + regression test). Your local-import approach also worked but the top-level import prevents future similar bugs. Thanks!

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.

[Bug]: Matrix auto installation broken in docker image

2 participants