Skip to content

Could not load the Qt platform plugin #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sadams207 opened this issue Dec 9, 2020 · 2 comments
Closed

Could not load the Qt platform plugin #427

sadams207 opened this issue Dec 9, 2020 · 2 comments

Comments

@sadams207
Copy link

Expected behaviour

Application with matplotlib should be able to show a plot window.

Actual behaviour

Segmentation fault during the plotting process.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/sadams/projects/meccanoFork/venv/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Steps to reproduce

  • example code
    `import cv2
    import matplotlib.pyplot as plt
    import matplotlib
    import numpy as np

print(f'Build information: {cv2.getBuildInformation()}')
print(f'CV2 Version: {cv2.version}')
print(f'Matplotlib Version: {matplotlib.version}')
x = np.linspace(0,1,10)
plt.figure()
plt.plot(x)
plt.show()
`

See attached for build information.
Version control: 4.4.0-dirty
qt_debug.txt

Issue submission checklist
  • [ X] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • [ X] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • [ IDK] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • [ X] I'm using the latest version of opencv-python
@sadams207
Copy link
Author

I realize that this is similar to IMShow No Window - 4.4.0.46 MacOS Big Sur #423;
however, this shows that it is not just Mac related.

@skvark
Copy link
Member

skvark commented Dec 9, 2020

Duplicate of #386 and #404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants