Snap PyQt5 Program

I’m trying to make a snap for this Program. The build works, but when I try to run it, I get this error message:

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: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Abgebrochen (Speicherabzug geschrieben)

Here is my snapcraft.yaml:

name: jdminecraftlauncher
version: "1.5"
summary: jdMinecraftLauncher
description: |
  A OpenSource Minecraft Launcher written in Python
base: core18
confinement: strict
grade: stable


    after: [desktop-qt5]
    plugin: python
    python-version: python3
    source: .
      - python3
      - python3-setuptools
      - python3-pip
      - python3
      - openjdk-8-jre

    command: locales-launch desktop-launch python3 $SNAP/bin/jdMinecraftLauncher
      - browser-support
      - desktop
      - desktop-legacy
      - home
      - opengl
      - removable-media
      - wayland
      - x11

can you edit your post to surround the code with ``` symbols please? This will help other people to understand your yaml, because as it is currently the indentation cannot be seen.

The code block now works. I had clicked on the code symbol, but it hasn’t created a codeblock.

1 Like