Can't install programs from AUR

I was trying to install a program from AUR. First, I tried using yay AUR helper but the an error appeared. then, I tried to install it manually and faced the same error again.
here is my konsole's whole output:

 ╭─kazi-rifat-jr@kazi in ~/Desktop/AUR 
 ╰─λ git clone https://aur.archlinux.org/photocollage.git
Cloning into 'photocollage'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 20 (delta 1), reused 20 (delta 1), pack-reused 0
Receiving objects: 100% (20/20), 4.28 KiB | 4.28 MiB/s, done.
Resolving deltas: 100% (1/1), done.

 ╭─kazi-rifat-jr@kazi in ~/Desktop/AUR took 1s
 ╰─λ ls
drwxr-xr-x - kazi-rifat-jr 19 Mar 15:15  photocollage

 ╭─kazi-rifat-jr@kazi in ~/Desktop/AUR took 4ms
 ╰─λ cd photocollage/

 ╭─kazi-rifat-jr@kazi in repo: photocollage on  master 
 ╰─λ ls
drwxr-xr-x   - kazi-rifat-jr 19 Mar 15:15  .git
.rw-r--r-- 498 kazi-rifat-jr 19 Mar 15:15  .SRCINFO
.rw-r--r-- 907 kazi-rifat-jr 19 Mar 15:15  PKGBUILD

 ╭─kazi-rifat-jr@kazi in repo: photocollage on  master took 3ms
 ╰─λ makepkg -si
==> Making package: photocollage 1.4.5-1 (Sat 19 Mar 2022 03:15:21 PM +06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading photocollage-1.4.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   142  100   142    0     0    297      0 --:--:-- --:--:-- --:--:--   297
100  586k    0  586k    0     0   359k      0 --:--:--  0:00:01 --:--:-- 1000k
==> Validating source files with sha256sums...
    photocollage-1.4.5.tar.gz ... Passed
==> Extracting sources...
  -> Extracting photocollage-1.4.5.tar.gz with bsdtar
==> Starting build()...
/home/kazi-rifat-jr/Desktop/AUR/photocollage/src/PhotoCollage-1.4.5/setup.py:18: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  import distutils
running build
running build_py
creating build
creating build/lib
creating build/lib/photocollage
copying photocollage/__init__.py -> build/lib/photocollage
copying photocollage/artwork.py -> build/lib/photocollage
copying photocollage/collage.py -> build/lib/photocollage
copying photocollage/gtkgui.py -> build/lib/photocollage
copying photocollage/render.py -> build/lib/photocollage
running build_scripts
creating build/scripts-3.10
copying and adjusting bin/photocollage -> build/scripts-3.10
changing mode of build/scripts-3.10/photocollage from 644 to 755
running build_i18n
creating build/mo
creating build/mo/bg
creating build/mo/bg/LC_MESSAGES
Compile: po/bg.po -> build/mo/bg/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/bg/LC_MESSAGES/photocollage.mo po/bg.po
creating build/mo/cs
creating build/mo/cs/LC_MESSAGES
Compile: po/cs.po -> build/mo/cs/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/cs/LC_MESSAGES/photocollage.mo po/cs.po
creating build/mo/de
creating build/mo/de/LC_MESSAGES
Compile: po/de.po -> build/mo/de/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/de/LC_MESSAGES/photocollage.mo po/de.po
creating build/mo/es
creating build/mo/es/LC_MESSAGES
Compile: po/es.po -> build/mo/es/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/es/LC_MESSAGES/photocollage.mo po/es.po
creating build/mo/fr
creating build/mo/fr/LC_MESSAGES
Compile: po/fr.po -> build/mo/fr/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/fr/LC_MESSAGES/photocollage.mo po/fr.po
creating build/mo/it
creating build/mo/it/LC_MESSAGES
Compile: po/it.po -> build/mo/it/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/it/LC_MESSAGES/photocollage.mo po/it.po
creating build/mo/nl
creating build/mo/nl/LC_MESSAGES
Compile: po/nl.po -> build/mo/nl/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/nl/LC_MESSAGES/photocollage.mo po/nl.po
creating build/mo/ru
creating build/mo/ru/LC_MESSAGES
Compile: po/ru.po -> build/mo/ru/LC_MESSAGES/photocollage.mo
msgfmt -o build/mo/ru/LC_MESSAGES/photocollage.mo po/ru.po
==> Starting check()...
E
======================================================================
ERROR: test_collage (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_collage
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
ModuleNotFoundError: No module named 'tests.test_collage'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
==> ERROR: A failure occurred in check().
    Aborting...

and,
this is my garuda-inix output:

╭─kazi-rifat-jr@kazi in ~ took 1ms
╰─λ garuda-inxi
System:
Kernel: 5.16.15-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=4248322c-d06e-4806-933d-b8b6ee79be14 rw rootflags=subvol=@
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.24.3 tk: Qt 5.15.3 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: B450M-A PRO MAX (MS-7C52) v: 1.0
serial: <superuser required> UEFI: American Megatrends LLC. v: 3.C0
date: 05/19/2021
CPU:
Info: model: AMD Ryzen 5 3400G with Radeon Vega Graphics bits: 64
type: MT MCP arch: Zen/Zen+ note: check family: 0x17 (23)
model-id: 0x18 (24) stepping: 1 microcode: 0x8108109
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 2179 high: 3057 min/max: 1400/3700 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2148 2: 3042
3: 3022 4: 3057 5: 1327 6: 1407 7: 1559 8: 1871 bogomips: 59091
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
driver: amdgpu v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 ports:
active: HDMI-A-1 empty: DP-1,DP-2,DVI-D-1 bus-ID: 2a:00.0
chip-ID: 1002:15d8 class-ID: 0300
Device-2: SN0002 1080P Web Camera type: USB
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 3-4.2:4
chip-ID: 2bdf:0284 class-ID: 0300 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.1x8.0")
s-diag: 412mm (16.2")
Monitor-1: HDMI-A-0 mapped: HDMI-A-1 model: LG (GoldStar) W1953
serial: <filter> built: 2009 res: 1360x768 hz: 60 dpi: 85 gamma: 1.2
size: 406x229mm (16.0x9.0") diag: 466mm (18.4") ratio: 16:9 modes:
max: 1360x768 min: 720x400
OpenGL: renderer: AMD Radeon Vega 11 Graphics (RAVEN DRM 3.44.0
5.16.15-zen1-1-zen LLVM 13.0.1)
v: 4.6 Mesa 21.3.7 direct render: Yes
Audio:
Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 2a:00.1 chip-ID: 1002:15de class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 2a:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-3: SN0002 1080P Web Camera type: USB
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 3-4.2:4
chip-ID: 2bdf:0284 class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.16.15-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.20 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 25:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp37s0 state: down mac: <filter>
Device-2: Ralink RT5370 Wireless Adapter type: USB driver: rt2800usb
bus-ID: 3-4.3:5 chip-ID: 148f:5370 class-ID: 0000 serial: <filter>
IF: wlp42s0f3u4u3 state: up mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
driver: btusb v: 0.8 bus-ID: 1-5.2:3 chip-ID: 0a12:0001 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
Local Storage: total: 529.12 GiB used: 359.8 GiB (68.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Transcend model: TS128GMTE110S
size: 119.24 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: S1111A0L
temp: 46.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: HD321KJ
size: 298.09 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
type: N/A serial: <filter> rev: 0-11 scheme: MBR
ID-3: /dev/sdb maj-min: 8:16 vendor: Apacer model: AS340 120GB
size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 3.S scheme: GPT
Partition:
ID-1: / raw-size: 116.75 GiB size: 116.75 GiB (100.00%)
used: 71.88 GiB (61.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 501 MiB size: 500 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3
ID-3: /home raw-size: 116.75 GiB size: 116.75 GiB (100.00%)
used: 71.88 GiB (61.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 116.75 GiB size: 116.75 GiB (100.00%)
used: 71.88 GiB (61.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 116.75 GiB size: 116.75 GiB (100.00%)
used: 71.88 GiB (61.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 13.64 GiB used: 41.8 MiB (0.3%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 49.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 353 Uptime: 1h 27m wakeups: 10 Memory: 13.64 GiB
used: 4.8 GiB (35.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 2397 lib: 619 Shell: fish
v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.13
Garuda (2.5.6-2):
System install date:     2022-03-19
Last full system update: 2022-03-19
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            nmb.service systemd-networkd-wait-online.service

How to solve it?
I have never faced this type of error before while getting a program from AUR.
I have my whole system up-to-date.

What error?
Try also with paru and if not working i think you will have to enter a comment in AUR to ask for support…

It seems a check dependency is missing. Either install it before running the installation or edit the PKGBUILD and remove the check part of it.

4 Likes