pyblish / pyblish-qml

Pyblish QML frontend for Maya 2013+, Houdini 11+, Nuke 8+ and more
GNU Lesser General Public License v3.0
114 stars 44 forks source link

qml crashes in python 3.10 when swapping to context menu #372

Open hannesdelbeke opened 2 years ago

hannesdelbeke commented 2 years ago

Pyblish QML crashes in python 3.10 when swapping to context menu

python 3.10 changed default typecast behaviour. a similar issue affected lite. see issue https://github.com/pyblish/pyblish-lite/issues/124

file:///C:/Users/REDACTED/modules/pyblish_qml/qml/Overview.qml:181:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
TypeError: unable to convert a Python 'float' object to a C++ 'int' instance

can be reproduced by running pyblish qml in blender 3.1 which has python 3.10 when swapping to the context meny pyblish crashes.

due to the different & more complex architecture of QML i'm unsure where to find the typecasting, if someone else could make a PR that'd be appreciated.