Migrating Nanosound plug-in to volumio 3

We are in the process of migrating our plugin to volumio 3 and is hitting some issues with installation of dependency library. It worked with vanilla Raspbian buster but hit issue with volumio 3. Any help would be highly appreciated.

Volumio Information

Volumio Version: 3.173
Hardware: Raspberry Pi 4
DAC:NanoSound DAC 2 pro

Debug Log

Steps to Reproduce

ran below beforehand
sudo apt-get update

When we run:
sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev

The following error appear:

The following packages have unmet dependencies:
libsdl-image1.2-dev : Depends: libsdl-image1.2 (= 1.2.12-10+deb10u1) but it is not going to be installed
libsdl-mixer1.2-dev : Depends: libsdl-mixer1.2 (= 1.2.12-15) but it is not going to be installed
libsdl-ttf2.0-dev : Depends: libsdl-ttf2.0-0 (= 2.0.11-6) but it is not going to be installed
libsdl1.2-dev : Depends: libsdl1.2debian (= 1.2.15+dfsg2-4+rpt2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Additional Information

The /etc/apt/sources/list remained unchanged as

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free

We also tried using aptitude but didn’t help much.

Problem is solved (by using pip3 install instead of apt-get)

Is your code hosted somewhere? Someone can have a look if you still have issues…

1 Like

Problem is solved earlier. We are working on the release. Code is in our github repo in GitHub - nanomesher/Nanomesher_NanoSound: Source code for NanoSound products

Thanks

Hi,
tried to install the nanosound plugin on volumio 3.512 with ssh:

cd /home/volumio
wget https://github.com/nanomesher/Nanomesher_NanoSound/raw/master/packages/install_nanosound_for_v3.sh
chmod +x install_nanosound_for_v3.sh
./install_nanosound_for_v3.sh

I see it in the plugins now, active but have error messages. OLED and remote do not work.
Any idea to solve it? (i want to use the pi switch cap)


Thanks in advance

can you generate the log from the failed install?
Maybe it shows something more.

hopefully…
http://logs.volumio.org/volumio/M97Igmi.html

As far as I can see, service are not generated or started.
Please create them manually. If the files already exist then only perform the execution part per service.

nanosound_lirc.service

sudo nano /lib/systemd/system/nanosound_lirc.service

Copy/paste and save:

[Unit]
Description=NanoSound LIRC Service

[Service]
ExecStart=/home/volumio/nanosound_oled/nanodac_lirc.py
StandardOutput=null

[Install]
WantedBy=multi-user.target
Alias=nanosound_lirc.service

Execute:

sudo chmod 644 /lib/systemd/system/nanosound_lirc.service
sudo systemctl daemon-reload
sudo systemctl enable nanosound_lirc.service
sudo systemctl start nanosound_lirc.service

nanosound_oled.service

sudo nano /lib/systemd/system/nanosound_oled.service

Copy/paste and save:

[Unit]
Description=NanoSound OLED Diplay Service

[Service]
ExecStart=/home/volumio/nanosound_oled/nanodac_oled.py
WorkingDirectory=/home/volumio/nanosound_oled
StandardOutput=null

[Install]
WantedBy=multi-user.target
Alias=nanosound_oled.service

Execute:

sudo chmod 644 /lib/systemd/system/nanosound_oled.service
sudo systemctl daemon-reload
sudo systemctl enable nanosound_oled.service
sudo systemctl start nanosound_oled.service

nanosound_rotary.service

sudo nano /lib/systemd/system/nanosound_rotary.service

Copy/paste and save:

[Unit]
Description=NanoSound Rotary Volume Control

[Service]
ExecStart=/home/volumio/nanosound_oled/nanodac_rotary.py
StandardOutput=null

[Install]
WantedBy=multi-user.target
Alias=nanosound_rotary.service

Execute:

sudo chmod 644 /lib/systemd/system/nanosound_rotary.service
sudo systemctl daemon-reload
sudo systemctl enable nanosound_rotary.service
sudo systemctl start nanosound_rotary.service

Thank you for the quick response.
i did that but no function. :man_shrugging:
http://logs.volumio.org/volumio/xe6XlU1.html

what happens if you run:
python3 /home/volumio/nanosound_oled/nanodac_oled.py

python3: can’t open file ‘/home/volumio/nanosound_oled/nanodac_oled.py’: [Errno 2] No such file or directory

1 Like

Probably because not the correct arch.

Then you have found the error. The services expect the folder on the missing location.
So where did it go?

There is something really wrong with the installer. Services won’t start due to missing files.
I ran it on my dev device, I see the plugin is installed, but no files are present.
This is something I can’t solve. Please get in contact with the creator of the plugin.

nanosound_oled.zip (5.5 MB)

If you unzip this file to /home/volumio the plugin will start,

did not find it on the hole device. :man_shrugging:
with the installation of the nanosoundone plgin at least the remote control works :crazy_face:
I will try to get missing files at the weekend.
Thanks again.

euh read my previous post…

Thank you.
i was to slow sending message…

i put the files in the directory, but an error occurs.

volumio@iqaudio:~$ python3 /home/volumio/nanosound_oled/nanodac_oled.py
Traceback (most recent call last):
  File "/home/volumio/nanosound_oled/nanodac_oled.py", line 17, in <module>
    import schedule
ModuleNotFoundError: No module named 'schedule'

How did you get the plugin installed, @Wheaten ?
It seemed like you had the same hardware…
Thank you.

Just followed the instructions as given by yourself:

cd /home/volumio
wget https://github.com/nanomesher/Nanomesher_NanoSound/raw/master/packages/install_nanosound_for_v3.sh
chmod +x install_nanosound_for_v3.sh
./install_nanosound_for_v3.sh

Unzipped the previous uploaded zip to /home/volumio

Manually installed the services.

I don’t have the hardware, just a rPi with a SDD1306 to test.