Mopidy fails to install

I have a Pirate Audio Line Out card attached to a Raspberry Pi 3, running the latest Raspi-OS. I am not using the default pi user. I created a new user, bob, so that I can ssh into the R-Pi from my desktop.

I have run the following code:

git clone https://github.com/pimoroni/pirate-audio
cd pirate-audio/mopidy
sudo ./install.sh

The install script runs, but it fails to create a mopidy user, it fails to create an /etc/mopidy folder, and hence there is no /etc/mopidy/mopidy.conf file. The Iris webserver does not respond to http://192.168.178.49:6680. 192.168.178.49 is the R-Pi’s local IP address in my LAN

What can I try next, please?

Bob

I made some progress by creating the /etc/mopidy folder and re-running the install script. This time, it wrote the mopidy.conf file correctly. So, the install script is not creating the folder.

I also created the user ‘mopidy’

sudo useradd mopidy

I have also installed the mopidy-dLeyna plugin, but it does not show up on the Iris webpage, so I am unable to connect to the DLNA server running on my desktop machine.

Here is the error:

Starting Iris 3.55.4
INFO 2021-02-06 03:56:06,955 [1008:MainThread] mopidy.commands
Starting GLib mainloop
ERROR 2021-02-06 03:56:07,177 [1008:PiDiFrontend-10] pykka
Unhandled exception in PiDiFrontend (urn:uuid:e5e3ccbb-e846-4c6b-b2ce-f267fe175377):
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/pykka/_actor.py”, line 186, in _actor_loop
self.on_start()
File “/usr/local/lib/python3.7/dist-packages/mopidy_pidi/frontend.py”, line 38, in on_start
self.display = PiDi(self.config)
File “/usr/local/lib/python3.7/dist-packages/mopidy_pidi/frontend.py”, line 179, in init
self._display = self.display_class(self.display_config)
File “/usr/local/lib/python3.7/dist-packages/pidi_display_st7789/init.py”, line 21, in init
spi_speed_hz=args.spi_speed_mhz * 1000 * 1000
File “/usr/local/lib/python3.7/dist-packages/ST7789/init.py”, line 124, in init
self._spi = spidev.SpiDev(port, cs)
PermissionError: [Errno 13] Permission denied