Skip to content

QT QML engine fails to load .py file with canlib import inside #4

@AlexanderPoverennov

Description

@AlexanderPoverennov

QT QML (Pyside6) engine fails to load and show windows of application if there's an import like this: from canlib import canlib.
The root cause of the problem is calling the WIN32 API SetDefaultDllDirectories() in dllLoader.py.
Here you can find it: https://github.com/Kvaser/pycanlib/blob/v1.22.565/canlib/dllLoader.py#L191
The problem described here: https://stackoverflow.com/questions/75395798/qqmlapplicationengine-failed-to-load-component-when-im-trying-to-use-external-l

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