Following the recommendation from Randy to get rid of my broken sound system on Pi4b, I made a fresh RPiOS64 image, updated it & verified that the sound was back : everything went fine for that part, including the speaker icon.
Then I tried to install picochess on top, following instructions from the README at
Outcome : not working (no trace of picochess or kiosk running). See the full installation command output at the end of the mail. Extracts:
chmod: cannot access '/usr/local/bin/run-picochess-if-flagged.sh': No such file or directory
Second, I created a picochess.ini file, just made a copy of the example + debug log
And finally, I ran the command 'sudo ./install-picochess.sh pico lite kiosk' :
pi@Picochess:/opt/picochess $ sudo ./install-picochess.sh pico lite kiosk
Skipping system update because 'pico' parameter was given.
Updating Picochess but not system
-------------------------
installing needed libraries
git is already the newest version (1:2.47.3-0+deb13u1).
sox is already the newest version (14.4.2+git20190427-5+b3).
unzip is already the newest version (6.0-29).
wget is already the newest version (1.25.0-2).
libtcl8.6 is already the newest version (8.6.16+dfsg-1).
telnet is already the newest version (0.17+2.6-3+deb13u2).
libglib2.0-dev is already the newest version (2.84.4-3~deb13u2).
i2c-tools is already the newest version (4.4-2).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
avahi-daemon is already the newest version (0.8-16).
avahi-discover is already the newest version (0.8-16).
libnss-mdns is already the newest version (0.15.1-4+b1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
vorbis-tools is already the newest version (1.4.3-1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
python3 is already the newest version (3.13.5-1).
python3-pip is already the newest version (25.1.1+dfsg-1+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
python3-dev is already the newest version (3.13.5-1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
python3-pyaudio is already the newest version (0.2.13-1+b6).
portaudio19-dev is already the newest version (19.6.0-1.2+b3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
python3-venv is already the newest version (3.13.5-1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
libffi-dev is already the newest version (3.4.8-2).
libssl-dev is already the newest version (3.5.4-1~deb13u2+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
tk is already the newest version (8.6.16).
tcl is already the newest version (8.6.16).
libtcl8.6 is already the newest version (8.6.16+dfsg-1).
libtcl8.6 is already the newest version (8.6.16+dfsg-1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
libsndfile1 is already the newest version (1.2.2-2+b1).
libportaudio2 is already the newest version (19.6.0-1.2+b3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
Skipping pipewire-alsa install during 'pico' code-only update.
unclutter is already the newest version (8-25+nmu1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
xdotool is already the newest version (1:3.20160805.1-5.1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
Warning: package 'ydotool' not available in apt; skipping.
libopenblas-dev is already the newest version (0.3.29+ds-3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
libsdl2-2.0-0 is already the newest version (2.32.4+dfsg-1).
libsdl2-ttf-2.0-0 is already the newest version (2.24.0+dfsg-2).
qt5ct is already the newest version (1.8-2+b1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
rsync is already the newest version (3.4.1+ds1-5+deb13u1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
---------------------------------------------------
System updates done - Starting Picochess installation
---------------------------------------------------
Starting backup (runs only for master branch or detached tag)...
Creating backup in: /home/pi/pico_backups/current
Saving git diff...
Backing up untracked files...
Syncing working directory...
65,542 0% 492.75kB/s 0:00:00 (xfr#2, to-chk=0/4245)
Backup safely stored at: /home/pi/pico_backups/current
-------
On master branch — forcing update to latest official version...
HEAD is now at 87d792e Merge pull request #278 from jromang/dependabot/pip/requests-2.20.0
-------
upload dir already exists - making sure install user is owner
Engines present for aarch64 and variant explicitly requested (lite)
Backing up existing engines
---------------------------------------------
Moving PicoChess engine files to backup ...
Architecture: aarch64
Source: /opt/picochess/engines
Backup: /home/pi/pico_backups/current/engines_backup
---------------------------------------------
Moving /opt/picochess/engines/aarch64 to /home/pi/pico_backups/current/engines_backup/aarch64 ...
Moving /opt/picochess/engines/mame_emulation to /home/pi/pico_backups/current/engines_backup/mame_emulation ...
Moving /opt/picochess/engines/rodent3 to /home/pi/pico_backups/current/engines_backup/rodent3 ...
Moving /opt/picochess/engines/rodent4 to /home/pi/pico_backups/current/engines_backup/rodent4 ...
Moving /opt/picochess/engines/lc0_weights to /home/pi/pico_backups/current/engines_backup/lc0_weights ...
Moving /opt/picochess/engines/script_engines to /home/pi/pico_backups/current/engines_backup/script_engines ...
Moving /opt/picochess/engines/pgn_engine/pgn_audio to /home/pi/pico_backups/current/engines_backup/pgn_engine/pgn_audio ...
---------------------------------------------
Engine directories moved successfully.
They are now stored in: /home/pi/pico_backups/current/engines_backup
---------------------------------------------
Installing engines variant: lite
Checking architecture...
Detected architecture: aarch64 (variant: lite)
No engines found for aarch64. Installing requested engine package...
Downloading aarch64 lite engine package...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 489M 100 489M 0 0 38.5M 0 0:00:12 0:00:12 --:--:-- 48.1M
Extracting aarch64 lite engine package...
aarch64 lite engine package installed successfully.
No MAME emulation files found. Installing package...
Downloading MAME emulation package...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 510M 100 510M 0 0 23.3M 0 0:00:21 0:00:21 --:--:-- 31.4M
Extracting MAME emulation package...
MAME emulation package installed successfully.
No Rodent III files found. Installing package...
Downloading Rodent III package...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 48.9M 100 48.9M 0 0 36.9M 0 0:00:01 0:00:01 --:--:-- 44.8M
Extracting Rodent III package...
Rodent III package installed successfully.
No Rodent IV files found. Installing package...
Downloading Rodent IV package...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 42.7M 100 42.7M 0 0 28.5M 0 0:00:01 0:00:01 --:--:-- 37.2M
Extracting Rodent IV package...
Rodent IV package installed successfully.
Installing LC0 weights...
Downloading LC0 weights...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 591M 100 591M 0 0 30.4M 0 0:00:19 0:00:19 --:--:-- 28.2M
Extracting LC0 weights...
LC0 weights installed successfully.
Installing script engines...
Downloading script engines...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4169k 100 4169k 0 0 1784k 0 0:00:02 0:00:02 --:--:-- 2037k
Extracting script engines...
Script engines installed successfully.
Installing pgn_audio files...
Downloading pgn_audio files...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 457M 100 457M 0 0 23.3M 0 0:00:19 0:00:19 --:--:-- 21.2M
Extracting pgn_audio files...
pgn_audio files installed successfully.
books/gamesdb backup already exists - skipping backup
Installing books and games resources
Books directory already exists - skipping download.
Gamesdb directory already exists - skipping download.
Opening data already exists - skipping download.
Book and game resources installed.
Fixing ownership for engines folder...
logs dir already exists - making sure install user is owner
-------
venv already exists - making sure install user is owner and group
picochess.ini already existed - no changes done
voices.ini already existed - no changes done
DGT3000 flag not set - skipping DGTPi clock install
PI3 flag not set - skipping Bluetooth unblock service install
Kiosk flag set - installing kiosk autologin/autostart
Setting up kiosk autostart for user: pi
Configuring autologin via raspi-config
Configuring LightDM autologin
Configuring getty autologin
Warning: /opt/picochess/etc/pico-kiosk.desktop not found
Kiosk setup complete. Reboot to use autologin and kiosk autostart.
-------
checking required python modules...
Looking in indexes:
https://pypi.org/simple,
https://www.piwheels.org/simpleRequirement already satisfied: pip in ./venv/lib/python3.13/site-packages (26.0.1)
Looking in indexes:
https://pypi.org/simple,
https://www.piwheels.org/simpleRequirement already satisfied: ConfigArgParse==0.12.0 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 1)) (0.12.0)
Requirement already satisfied: Flask==1.0 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 2)) (1.0)
Requirement already satisfied: paramiko==2.4.2 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 3)) (2.4.2)
Requirement already satisfied: pyserial==3.4 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 4)) (3.4)
Requirement already satisfied: python-chess==0.22.1 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 5)) (0.22.1)
Requirement already satisfied: pyOpenSSL==17.5.0 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 6)) (17.5.0)
Requirement already satisfied: requests==2.20.0 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 7)) (2.20.0)
Requirement already satisfied: spur==0.3.20 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 8)) (0.3.20)
Requirement already satisfied: tornado==4.5.1 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 9)) (4.5.1)
Requirement already satisfied: configobj==5.0.6 in ./venv/lib/python3.13/site-packages (from -r requirements.txt (line 10)) (5.0.6)
Requirement already satisfied: Werkzeug>=0.14 in ./venv/lib/python3.13/site-packages (from Flask==1.0->-r requirements.txt (line 2)) (3.1.6)
Requirement already satisfied: Jinja2>=2.10 in ./venv/lib/python3.13/site-packages (from Flask==1.0->-r requirements.txt (line 2)) (3.1.6)
Requirement already satisfied: itsdangerous>=0.24 in ./venv/lib/python3.13/site-packages (from Flask==1.0->-r requirements.txt (line 2)) (2.2.0)
Requirement already satisfied: click>=5.1 in ./venv/lib/python3.13/site-packages (from Flask==1.0->-r requirements.txt (line 2)) (8.3.1)
Requirement already satisfied: bcrypt>=3.1.3 in ./venv/lib/python3.13/site-packages (from paramiko==2.4.2->-r requirements.txt (line 3)) (5.0.0)
Requirement already satisfied: cryptography>=1.5 in ./venv/lib/python3.13/site-packages (from paramiko==2.4.2->-r requirements.txt (line 3)) (46.0.5)
Requirement already satisfied: pynacl>=1.0.1 in ./venv/lib/python3.13/site-packages (from paramiko==2.4.2->-r requirements.txt (line 3)) (1.6.2)
Requirement already satisfied: pyasn1>=0.1.7 in ./venv/lib/python3.13/site-packages (from paramiko==2.4.2->-r requirements.txt (line 3)) (0.6.2)
Requirement already satisfied: six>=1.5.2 in ./venv/lib/python3.13/site-packages (from pyOpenSSL==17.5.0->-r requirements.txt (line 6)) (1.17.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./venv/lib/python3.13/site-packages (from requests==2.20.0->-r requirements.txt (line 7)) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in ./venv/lib/python3.13/site-packages (from requests==2.20.0->-r requirements.txt (line 7)) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./venv/lib/python3.13/site-packages (from requests==2.20.0->-r requirements.txt (line 7)) (1.24.3)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.13/site-packages (from requests==2.20.0->-r requirements.txt (line 7)) (2026.1.4)
Requirement already satisfied: cffi>=2.0.0 in ./venv/lib/python3.13/site-packages (from cryptography>=1.5->paramiko==2.4.2->-r requirements.txt (line 3)) (2.0.0)
Requirement already satisfied: pycparser in ./venv/lib/python3.13/site-packages (from cffi>=2.0.0->cryptography>=1.5->paramiko==2.4.2->-r requirements.txt (line 3)) (3.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.13/site-packages (from Jinja2>=2.10->Flask==1.0->-r requirements.txt (line 2)) (3.0.3)
-------
setting up picochess, gamesdb, and update services
cp: cannot stat 'etc/gamesdb.service': No such file or directory
cp: cannot stat 'etc/picochess-update.service': No such file or directory
cp: cannot stat 'etc/run-picochess-if-flagged.sh': No such file or directory
chmod: cannot access '/usr/local/bin/run-picochess-if-flagged.sh': No such file or directory
Failed to enable unit: Unit gamesdb.service does not exist
Failed to enable unit: Unit picochess-update.service does not exist
------- setcap start -------
after each system update we need to rerun the cap_net rights
giving bluetooth rights so that communication works to DGT board etc
Debug: Using venv python at /usr/bin/python3.13
Debug: Detected python version: python3.13
Debug: Bluepy helper path: /opt/picochess/venv/lib/python3.13/site-packages/bluepy/bluepy-helper
Debug: Detected arch: aarch64
Warning: /opt/picochess/venv/lib/python3.13/site-packages/bluepy/bluepy-helper not found, skipping setcap
------- setcap end -------
Fixing ownership for backup folders - in case user has run install-engines as sudo
Picochess installation complete. Please reboot
NOTE: If you are on DGTPi clock hardware you need to run install-dgtpi-clock.sh
After reboot open a browser to localhost
If you have a DGT board you need to change the board type
in the picochess.ini like this: board-type = dgt
Other board types are also supported - see the picochess.ini file
-------
In case of problems have a look in the log /opt/picochess/logs/picochess.log
You can rerun this installation whenever you want to update your system
Use the parameter pico if you want to skip system update
pi@Picochess:/opt/picochess $
<Reboot & check : nothing working>