Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"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)) #379

Closed
Mysteryem opened this issue Mar 9, 2022 · 3 comments
Labels
blender 3.1 Issues with the latest version of Blender fixed in dev branch Fixed in 'development' branch, not yet released.

Comments

@Mysteryem
Copy link

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
Copy link
Author

Looks like there's already a pr for fixing this #378

@feilen feilen added blender 3.1 Issues with the latest version of Blender fixed in dev branch Fixed in 'development' branch, not yet released. labels Apr 6, 2022
@feilen feilen changed the title Blender 3.1 incompatibility due to Python version upgrade (no more implicit conversion from float to int) "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)) May 3, 2022
@feilen feilen pinned this issue May 3, 2022
@feilen
Copy link
Collaborator

feilen commented May 3, 2022

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.

@UnknoOff
Copy link

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!

@feilen feilen closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blender 3.1 Issues with the latest version of Blender fixed in dev branch Fixed in 'development' branch, not yet released.
Projects
None yet
Development

No branches or pull requests

3 participants