Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Noob looking for help with PySide6 segmentation fault core dump
Forum Updated to NodeBB v4.3 + New Features

Noob looking for help with PySide6 segmentation fault core dump

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 3 Posters 195 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dwelden
    wrote 22 days ago last edited by dwelden
    #1

    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-gnu

    Created 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
    shiboken6

    Running 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

    Laughter is the shortest distance between two people. - Victor Borge

    1 Reply Last reply
    0
    • D dwelden
      21 days ago

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote 21 days ago last edited by
      #4

      @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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply 21 days ago
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote 22 days ago last edited by
        #2

        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 ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • D Offline
          D Offline
          dwelden
          wrote 21 days ago last edited by dwelden
          #3

          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.

          Laughter is the shortest distance between two people. - Victor Borge

          J 1 Reply Last reply 21 days ago
          0
          • D dwelden
            21 days ago

            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.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote 21 days ago last edited by
            #4

            @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

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            D 1 Reply Last reply 21 days ago
            0
            • J jsulm
              21 days ago

              @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

              D Offline
              D Offline
              dwelden
              wrote 21 days ago last edited by
              #5

              @jsulm Thank you, that seems to have resolved my issue.

              Laughter is the shortest distance between two people. - Victor Borge

              1 Reply Last reply
              0
              • D dwelden has marked this topic as solved 21 days ago

              5/5

              16 Jun 2025, 14:00

              • Login

              • Login or register to search.
              5 out of 5
              • First post
                5/5
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved