Module / dependency error in arch linux

I've the following error when sending a tidal message, both from Atom and the terminal, and I'm not able to run any sound:

: error:
    Could not load module ‘Sound.Tidal.Context’
    It is a member of the package ‘tidal-1.7.8-EZHnqSS9b9YFalbdGJbsnz’
    which is unusable due to missing dependencies:
      bifunctors-5.5.11-IEHWnC0Ug5lAKtexC9mZmL hosc-0.19.1-4DgpvmPVwV6J4uo1cKp59N

I've installed SuperCollider from the arch repos (current version 3.12) and have SuperDirt v.1.7.2. Tidal install was done following the tutorial refered in this post, basically using the haskell-tidal package

Any fix or suggestions?

I include my system information for reference (`inxi -Fza` output).

System:    Kernel: 5.14.16-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=543c6354-5d39-4703-bb64-407600dc772d rw
rootflags=subvol=@ quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 resume=UUID=65b1555e-e8e7-41cb-84a2-63265cdbd7db loglevel=3
Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux
base: Arch Linux
Machine:   Type: Desktop System: ASUS product: N/A v: N/A serial: <filter>
Mobo: ASUSTeK model: TUF GAMING B550M-PLUS (WI-FI) v: Rev X.0x serial: <filter> UEFI: American Megatrends v: 2423
date: 08/10/2021
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325 serial: <filter> charge: 55% (should be ignored)
rechargeable: yes status: Discharging
CPU:       Info: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3 family: 19 (25) model-id: 21 (33)
stepping: 0 microcode: A201016 cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 88800
Speed: 3639 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 3639 2: 3639 3: 3598 4: 3644 5: 3595
6: 3597 7: 3593 8: 3589 9: 3599 10: 3597 11: 3598 12: 3599
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: Full AMD retpoline, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: ASUSTeK driver: nvidia v: 495.44 alternate: nouveau,nvidia_drm
bus-ID: 07:00.0 chip-ID: 10de:1d01 class-ID: 0300
Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 3-2:3 chip-ID: 046d:0825
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x343mm (23.7x13.5") s-diag: 693mm (27.3")
Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") diag: 686mm (27")
OpenGL: renderer: NVIDIA GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 495.44 direct render: Yes
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 07:00.1
chip-ID: 10de:0fb8 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Yamaha Steinberg UR22 type: USB driver: snd-usb-audio bus-ID: 3-1:2 chip-ID: 0499:1509 class-ID: ff00
Device-4: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 3-2:3 chip-ID: 046d:0825
class-ID: 0102 serial: <filter>
Sound Server-1: ALSA v: k5.14.16-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 05:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp5s0 state: up mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel port: f000 bus-ID: 06:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-5:2 chip-ID: 8087:0029 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block: hardware: no software: no
address: <filter>
Drives:    Local Storage: total: 1.14 TiB used: 834.99 GiB (71.7%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WDS250G3X0C-00SJG0 size: 232.89 GiB block-size:
physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 111110WD temp: 40.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB block-size:
physical: 4096 B logical: 512 B type: HDD rpm: 5400 serial: <filter> rev: 1053 scheme: MBR
Partition: ID-1: / raw-size: 100 GiB size: 100 GiB (100.00%) used: 40.47 GiB (40.5%) fs: btrfs dev: /dev/nvme0n1p3
maj-min: 259:3
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 128.59 GiB size: 128.59 GiB (100.00%) used: 72.14 GiB (56.1%) fs: btrfs dev: /dev/nvme0n1p4
maj-min: 259:4
ID-4: /var/log raw-size: 100 GiB size: 100 GiB (100.00%) used: 40.47 GiB (40.5%) fs: btrfs dev: /dev/nvme0n1p3
maj-min: 259:3
ID-5: /var/tmp raw-size: 100 GiB size: 100 GiB (100.00%) used: 40.47 GiB (40.5%) fs: btrfs dev: /dev/nvme0n1p3
maj-min: 259:3
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: swap-2 type: zram size: 15.54 GiB used: 1.06 GiB (6.8%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 46.1 C mobo: N/A gpu: nvidia temp: 47 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:      Processes: 415 Uptime: 6h 10m wakeups: 52 Memory: 15.54 GiB used: 6.61 GiB (42.5%) Init: systemd v: 249
tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1578 lib: 344 Shell: fish v: 3.3.1
default: Bash v: 5.1.8 running-in: yakuake inxi: 3.3.08

Does pacman -Q haskell-hosc return anything?

Also, that post recommends using yay, so try installing with pacman -S haskell-tidal, because there might be a different package in the AUR.

1 Like

In my very limited experience with Arch - make sure you have fully updated your system

pacman -Syu

I believe this is the way to do it ... (pacman confuses the bejeezes out of me)

1 Like

Just checked after update and I do have it installed, it's haskell-hosc 0.19.1-20. Also checked for the other dependency, of which I have haskell-bifunctors 5.5.11-31 installed.

The haskell-tidal package is not in the AUR (at least not anymore). Maybe it moved recently into the community repo o was already there when the tutorial was made (yay -S also installs from main repos). I doubled checked using my AUR helper aura and directly into the AUR site: there are no more tidal cycles packages.

My system was up to date when I asked. I just run another system update which included some haskell packages, but the error is still there 'bout the same package and dependencies but different hash numbers (I don´t know if that's what they're called, but perhaps are given that they changed after update):

: error:
    Could not load module ‘Sound.Tidal.Context’
    It is a member of the package ‘tidal-1.7.8-KfgDqD6Qmio7EVQb0rtkkI’
    which is unusable due to missing dependencies:
      bifunctors-5.5.11-2P1PX4wGeRx3s8BPi7O2Ek hosc-0.19.1-BdcLRDGXqGBGSRxt9vx7KS

The full output with the error after running a TidalCycles command in Atom

Choose ghc base path
 > no custom path configured
 > ghcup not found
 * using default GHC system path definition
Ghci command: ghci
Ghc-pkg command: ghc-pkg
Choose BootTidal.hs path
 > no custom path configured
 > not found in current directory
 * found in the tidal installation folder
 * load BootTidal.hs from /usr/share/x86_64-linux-ghc-9.0.1/tidal-1.7.8/BootTidal.hs
t> 
ghci> | |
t> 
: error:
    Could not load module ‘Sound.Tidal.Context’
    It is a member of the package ‘tidal-1.7.8-KfgDqD6Qmio7EVQb0rtkkI’
    which is unusable due to missing dependencies:
      bifunctors-5.5.11-2P1PX4wGeRx3s8BPi7O2Ek hosc-0.19.1-BdcLRDGXqGBGSRxt9vx7KS

 Variable not in scope: d1 :: t2 -> t3


    • Variable not in scope: sound :: t1 -> t2
    • Perhaps you meant ‘round’ (imported from Prelude)


    Variable not in scope: (#) :: t3 -> t4 -> t

 Variable not in scope: room :: t0 -> t4

Also it might be worth mentioning that I have neovim's vim-tidal plugin and atom's tidalcycles package up to date.

Maybe the installation got botched. Have you tried a full uninstall and reinstall?

1 Like

I had the same problem. I unistalled all packages that uses haskell dependencies and reinstalled them. U can see all haskell dependecies/packages with pacman -Q | grep haskell command. Try unistalling bifuctors with pacman -R haskell-bifuctors then it will throw an error for breaking dependecy. Go that rabbit hole and try to unistall it too. When u reach root package (e.g. pandoc) unistall it and its dependecies with pacman -Rs pandoc. I did this till pacman -Q | grep haskell comamnd was empty and then reinstalled root packages. And it fixed the problem.

1 Like

Did just that and it worked. My "root" haskell package was haskell-tidal itself, so I reinstalled it with this command:
sudo pacman -Rns haskell-tidal && sudo pacman -Syu haskell-tidal
Guess this procedure should've been in my troubleshooting scheme to begin with.

Thank you!

3 Likes

Glad you got it working! :slight_smile:

1 Like