Skip to content

Shiboken6 not able to be found with Python3.13 and Qt #95

@Leon-Zhang

Description

@Leon-Zhang

Hello,

I have been working with pyside and Qt creator to call qt written in python from c++.
I have been using following code:

py::scoped_interpreter guard{};
py::exec(R"(
        from PySide6.QtWidgets import QApplication, QLabel
        app = QApplication([])
        label = QLabel('Hello from PySide6!')
        label.show()
        app.exec()
    )");

With Python3.11, the code works perfectly, but after I updated to python3.13,
The code works from command line:
python -c "..."

But call from C++, I got error message from python API:
No module named 'shiboken6.Shiboken'

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