Skip to content

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

@hannesdelbeke

Description

@hannesdelbeke

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 pyblish/pyblish-lite#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions