Noob looking for help with PySide6 segmentation fault core dump
-
wrote 22 days ago last edited by dwelden
I am learning PySide6. I started on Windows where everything "just worked". Now I am using Linux Mint 22.1 and can't get anything to work.
Here is what I have done so far:
sudo apt install qt6-base-dev
qmake6 --version
QMake version 3.1 Using Qt version 6.4.2 in /usr/lib/x86_64-linux-gnuCreated a Python virtual environment
Activate venv
pip install PySide6==6.4.2
pip show PySide6
Name: pyside6 Version: 6.4.2
Location: /home/dave/projects/Learn_PySide/.venv/lib/python3.12/site-packages
Requires:
pyside6-addons
pyside6-essentials
shiboken6Running any simple program results in: segmentation fault core dump
Not sure how to diagnose and resolve as I get no additional information on the error. The only QT variables in my environment are:
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
So I will not be surprised to learn I am missing something that the installer did not create for me.
I discovered that I did not have qtchooser installed, so next I installed with:
sudo apt install qtchooser.
Running qtchooser I see that QT6 is not available:
qtchooser -l
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5 -
That makes sense and aligns with my findings on Windows. On another forum it was suggested to me that I may need to install QT6 base dev since Linux Mint only ships with versions 4 and 5. Glad to know that PySide6 is complete in itself.
I started down this road because initially I did only pip install Pyside6 which gave me PySide 6.9.1. Running a simple program gave the following error:
(venv)>python PyQtLabelExample.py
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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.Available platform plugins are: wayland, vkkhrdisplay, minimalegl, xcb, offscreen, wayland-egl, vnc, eglfs, minimal, linuxfb.
Aborted (core dumped)
Not sure how to understand this error and how to remedy.
@dwelden said in Noob looking for help with PySide6 segmentation fault core dump:
Not sure how to understand this error and how to remedy
You need to install xcb-cursor0 or libxcb-cursor0 package provided by your Linux distribution
-
Hi and welcome to devnet,
PySide6 does not need nor use the system Qt installation. It comes with everything it needs.
6.4.2 is rather outdated, why not use the current version ?
-
wrote 21 days ago last edited by dwelden
That makes sense and aligns with my findings on Windows. On another forum it was suggested to me that I may need to install QT6 base dev since Linux Mint only ships with versions 4 and 5. Glad to know that PySide6 is complete in itself.
I started down this road because initially I did only pip install Pyside6 which gave me PySide 6.9.1. Running a simple program gave the following error:
(venv)>python PyQtLabelExample.py
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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.Available platform plugins are: wayland, vkkhrdisplay, minimalegl, xcb, offscreen, wayland-egl, vnc, eglfs, minimal, linuxfb.
Aborted (core dumped)
Not sure how to understand this error and how to remedy.
-
That makes sense and aligns with my findings on Windows. On another forum it was suggested to me that I may need to install QT6 base dev since Linux Mint only ships with versions 4 and 5. Glad to know that PySide6 is complete in itself.
I started down this road because initially I did only pip install Pyside6 which gave me PySide 6.9.1. Running a simple program gave the following error:
(venv)>python PyQtLabelExample.py
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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.Available platform plugins are: wayland, vkkhrdisplay, minimalegl, xcb, offscreen, wayland-egl, vnc, eglfs, minimal, linuxfb.
Aborted (core dumped)
Not sure how to understand this error and how to remedy.
@dwelden said in Noob looking for help with PySide6 segmentation fault core dump:
Not sure how to understand this error and how to remedy
You need to install xcb-cursor0 or libxcb-cursor0 package provided by your Linux distribution
-
@dwelden said in Noob looking for help with PySide6 segmentation fault core dump:
Not sure how to understand this error and how to remedy
You need to install xcb-cursor0 or libxcb-cursor0 package provided by your Linux distribution
-
5/5