FrameworkComputer / dri_prime1-detection

A simple application to verify if desired applications are running with discrete graphics
GNU General Public License v2.0
13 stars 2 forks source link

Appimage ModuleNotFoundError: No module named 'PyQt5' #3

Closed Tealk closed 4 months ago

Tealk commented 4 months ago

If I try to start the AppImage I get the following error:

Traceback (most recent call last):
  File "/tmp/.mount_gearle6CkdCK/usr/bin/dgpu-detect.py", line 2, in <module>
    from PyQt5.QtWidgets import QApplication, QMainWindow, QListWidget, QVBoxLayout, QWidget, QListWidgetItem, QPushButton
ModuleNotFoundError: No module named 'PyQt5'
System:
  Kernel: 6.8.9-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 Distro: Fedora Linux 40.20240514.0 (Silverblue)
Machine:
  Type: Laptop System: Framework product: Laptop 16 (AMD Ryzen 7040 Series)
    v: AG serial: <superuser required>
  Mobo: Framework model: FRANMZCP07 v: A7 serial: <superuser required>
    UEFI: INSYDE v: 03.03 date: 03/27/2024
Battery:
  ID-1: BAT1 charge: 75.6 Wh (86.1%) condition: 87.8/85.1 Wh (103.2%)
    volts: 16.7 min: 15.5 model: NVT FRANDBA status: discharging
  Device-1: hid-18:7e:b9:67:f4:86-battery model: Tealk-Magic Trackpad 2
    charge: N/A status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics bits: 64
    type: MT MCP arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB L3: 16 MiB
  Speed (MHz): avg: 1111 high: 2107
    min/max: 400/5137:5293:5449:6080:5764:5924:5608 cores: 1: 1391 2: 1397
    3: 1574 4: 1704 5: 1397 6: 400 7: 400 8: 400 9: 1331 10: 1351 11: 400
    12: 1387 13: 400 14: 1741 15: 2107 16: 400 bogomips: 121365
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600]
    vendor: Framework driver: amdgpu v: kernel arch: RDNA-3 bus-ID: 03:00.0
  Device-2: AMD Phoenix1 vendor: Framework driver: amdgpu v: kernel
    arch: RDNA-3 bus-ID: c5:00.0 temp: 38.0 C
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 2048x1280~165Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.7 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi gfx1103_r1 LLVM
    18.1.1 DRM 3.57 6.8.9-300.fc40.x86_64)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio vendor: Framework driver: snd_hda_intel
    v: kernel bus-ID: 03:00.1
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: Framework
    driver: snd_hda_intel v: kernel bus-ID: c5:00.1
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Framework
    driver: snd_pci_ps v: kernel bus-ID: c5:00.5
  Device-4: AMD Family 17h/19h HD Audio vendor: Framework
    driver: snd_hda_intel v: kernel bus-ID: c5:00.6
  API: ALSA v: k6.8.9-300.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.6 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e v: kernel bus-ID: 05:00.0
  IF: wlp5s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB
    bus-ID: 1-5:8
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 1.82 TiB used: 220.09 GiB (11.8%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN770M 1TB
    size: 931.51 GiB temp: 32.9 C
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WD BLACK SN770 1TB
    size: 931.51 GiB temp: 35.9 C
Partition:
  ID-1: /boot size: 973.4 MiB used: 148.2 MiB (15.2%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-2: /boot/efi size: 598.8 MiB used: 12.4 MiB (2.1%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-3: /var size: 929.91 GiB used: 78.41 GiB (8.4%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-91874fa2-dc37-4bd0-aee8-c4a03dee90d0
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: N/A device: amdgpu temp: 45.0 C fan: 0
Info:
  Memory: total: 32 GiB note: est. available: 30.65 GiB used: 8.72 GiB (28.5%)
  Processes: 516 Uptime: 15h 3m Init: systemd target: graphical (5)
  Packages: 78 Compilers: gcc: 14.1.1 Shell: Bash v: 5.2.26 inxi: 3.3.34
ctsdownloads commented 4 months ago

Hi @Tealk,

Appreciate the report. The missing dependency is because this is designed for Workstation, not Silverblue or any other Atomic desktops.

For Atomic environments, I am recommending https://flathub.org/apps/io.missioncenter.MissionCenter You can see the dGPU kick on when activated there.

pesho commented 2 months ago

@ctsdownloads I also get the same error, and I'm on regular Fedora 40 (not Silverblue/Kinoite). I have installed the python3-qt5 package.