bqt icon indicating copy to clipboard operation
bqt copied to clipboard

fix: resolve Blender 3.6+ PySide6 compatibility issues

Open loonghao opened this issue 7 months ago • 10 comments

  • Add comprehensive fix for bpy.app.translations missing attributes
  • Implement sys.modules patch to intercept module registration
  • Use complete wrapper with all required Shiboken attributes
  • Fix AttributeError when Shiboken tries to introspect bpy.app.translations
  • Apply dual-layer protection: sys.modules patch + existing object fix
  • Tested with Blender 3.1+, 3.6, 4.1 + PySide6 6.5.3

Fixes compatibility issues where PySide6/Shiboken fails during initialization due to missing name, module, qualname, and ne attributes on the bpy.app.translations object. Issue affects all Blender 3.1+ versions when bqt plugin is enabled.

This enhanced approach provides early intervention at module registration level to prevent AttributeError from occurring in other modules that import from bpy.app.translations.

Fix #127

loonghao avatar May 23 '25 05:05 loonghao