Skip to content

Tips in case of "Cannot move to target thread" error #30

Open

Description

@doegox

Hi Adam, John,
You remember I could not get rompar working last week at hardwear.io?
Actually it was not a problem within rompar but because of opencv.

In case rompar fails starting with an error such as

QObject::moveToThread: Current thread (0x2956650) is not the object's thread (0x2bd9990).
Cannot move to target thread (0x2956650)

https://stackoverflow.com/a/63839383 indicates it results from the duplication of libraries both on the host and the opencv-python distro.
To solve it, one can recompile opencv-python:
pip install --no-binary opencv-python opencv-python
Beware it takes quite a while, but it solves the problem :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions