Having an error running Grapejuice (Application not starting)

So recently i tried running and installing grapejuice when i ran it for the first time i ran into an error.

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/grapejuice_common/util/pydantic_loader.py", line 3, in <module>
    from pydantic import v1
ModuleNotFoundError: No module named 'pydantic'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/grapejuice/cli/cli_common.py", line 78, in wrapper
    common_prepare()
  File "/usr/lib/python3.11/site-packages/grapejuice/cli/cli_common.py", line 59, in common_prepare
    from grapejuice_common.features.settings import current_settings
  File "/usr/lib/python3.11/site-packages/grapejuice_common/features/settings.py", line 8, in <module>
    from grapejuice_common.hardware_info import hardware_profile
  File "/usr/lib/python3.11/site-packages/grapejuice_common/hardware_info/hardware_profile.py", line 17, in <module>
    from grapejuice_common.util.pydantic_loader import pydantic_v1
  File "/usr/lib/python3.11/site-packages/grapejuice_common/util/pydantic_loader.py", line 7, in <module>
    import pydantic
ModuleNotFoundError: No module named 'pydantic'

I searched everywhere but couldn’t Seem to find a solution…

Here is the Garuda-inxi…

╰─λ garuda-inxi
System:
Kernel: 6.8.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc avail: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=25376516-84e0-46d7-86bc-264dac89496b rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 6.0.3 tk: Qt v: N/A info: frameworks v: 6.0.0
wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: Dell product: Vostro 3501 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0790WT v: A00 serial: <superuser required> part-nu: 0A2A
uuid: <superuser required> UEFI: Dell v: 1.11.0 date: 12/15/2021
Battery:
ID-1: BAT0 charge: 31.2 Wh (100.0%) condition: 31.2/42.0 Wh (74.3%)
volts: 12.6 min: 11.4 model: SMP DELL VM73283 type: Li-poly serial: <filter>
status: full
CPU:
Info: model: Intel Core i3-1005G1 bits: 64 type: MT MCP arch: Ice Lake
gen: core 10 level: v4 note: check built: 2019-21 process: Intel 10nm
family: 6 model-id: 0x7E (126) stepping: 5 microcode: 0xC4
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 160 KiB desc: d-2x48 KiB; i-2x32 KiB L2: 1024 KiB desc: 2x512 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 704 high: 1100 min/max: 400/3400 scaling:
driver: intel_pstate governor: powersave cores: 1: 919 2: 400 3: 1100 4: 400
bogomips: 9523
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel Iris Plus Graphics G1 vendor: Dell driver: i915 v: kernel
arch: Gen-11 process: Intel 10nm built: 2019-21 ports: active: eDP-1
empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:8a56 class-ID: 0300
Device-2: Sunplus Innovation Integrated_Webcam_HD driver: uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:4
chip-ID: 1bcf:2b98 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 23.2.5
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1280x720 s-dpi: 96 s-size: 338x190mm (13.31x7.48")
s-diag: 388mm (15.27")
Monitor-1: eDP-1 model: BOE Display 0x08cd built: 2019 res: 1280x720
hz: 60 dpi: 95 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1366x768
API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
device: 1 drv: swrast surfaceless: drv: iris x11: drv: iris
inactive: gbm,wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.0.4-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (ICL GT1)
device-ID: 8086:8a56 memory: 11.19 GiB unified: yes
API: Vulkan v: 1.3.279 layers: 7 device: 0 type: integrated-gpu name: Intel
UHD Graphics (ICL GT1) driver: mesa intel v: 24.0.4-arch1.2
device-ID: 8086:8a56 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
(LLVM 17.0.6 256 bits) driver: mesa llvmpipe v: 24.0.4-arch1.2 (LLVM
17.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Dell
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl
bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0403
API: ALSA v: k6.8.4-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Dell RTL8111/8168/8411 driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp1s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Dell driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 02:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:5 chip-ID: 0cf3:e009
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.2
lmp-v: 8 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
Local Storage: total: 931.51 GiB used: 53 GiB (5.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ04ABF100
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 5400 serial: <filter> fw-rev: 01 scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 53 GiB (5.7%)
fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 600 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 53 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 53 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 53 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 11.46 GiB used: 797.2 MiB (6.8%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 54.0 C mobo: 40.0 C
Fan Speeds (rpm): cpu: 2938
Info:
Memory: total: 12 GiB note: est. available: 11.46 GiB used: 5.45 GiB (47.6%)
Processes: 238 Power: uptime: 17h 53m states: freeze,mem,disk
suspend: deep avail: s2idle wakeups: 2 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 4.54 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1520 libs: 422 tools: octopi,paru,yay
Compilers: gcc: 13.2.1 Shell: garuda-inxi default: Bash v: 5.2.26
running-in: konsole inxi: 3.3.33
Garuda (2.6.24-1):
System install date:     2022-12-26
Last full system update: 2024-04-07
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

Try installing the python-pydantic package, then see what it does.

4 Likes

Can you please send the code on how to install the package please? I am still learning the basic commands…

sudo pacman -S python-pydantic python-pydantic-core python-pydantic-settings python-pydantic-extra-types
2 Likes

Thank you so much! Now my grapejuice is running

Please mark the post from @dawe as the solution, not mine.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.