cats-blender-plugin icon indicating copy to clipboard operation
cats-blender-plugin copied to clipboard

"TypeError: WindowManager.invoke_props_dialog(): error with keyword argument "width" - Function.width expected an int type, not float" (Blender 3.1 incompatibility due to Python version upgrade (no more implicit conversion from float to int))

Open Mysteryem opened this issue 3 years ago • 2 comments

For info, see the top of the release notes for the Python API: https://wiki.blender.org/wiki/Reference/Release_Notes/3.1/Python_API

All of the usages of invoke_props_dialog that have a non integer width argument are going to need to have the width argument be cast to int or similar.

I don't know if there are other areas affected since you can't get very far without hitting an invoke_props_dialog call with a float width.

Mysteryem avatar Mar 09 '22 22:03 Mysteryem

Looks like there's already a pr for fixing this https://github.com/absolute-quantum/cats-blender-plugin/pull/378

Mysteryem avatar Mar 10 '22 13:03 Mysteryem

For anyone experiencing this issue, the fix currently is to either upgrade your CATS to the development version: https://github.com/absolute-quantum/cats-blender-plugin/archive/refs/heads/development.zip

Or downgrade your Blender to version 2.93.

feilen avatar May 03 '22 18:05 feilen

For anyone experiencing this issue, the fix currently is to either upgrade your CATS to the development version: https://github.com/absolute-quantum/cats-blender-plugin/archive/refs/heads/development.zip

Or downgrade your Blender to version 2.93.

I want to say thank you for helping to solve this problem. I really appreciate such people!

UnknoOff avatar Sep 27 '22 17:09 UnknoOff