开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: #firmware-build #software #TinySA-App #firmware-build #software #TinySA-App


 

I just redid my steps, and took a few notes:

This is on a "Clean reinstalled Debian 11" running in VirtualBox (Vbox)

1: Install git + pip
sudo apt install git python3-pip

2: Get tinysa-saver from Erik's git.
git clone https://github.com/erikkaashoek/tinysa-saver

3: In the file Calibration.py , find all ocurrences of np.complex( , and replace with complex(??
You can use an editor , or the sed command below.

cd tinysa-saver/
cd TinySASaver/

You can skip all the grep commands below , they were just for "proff".

Check for #of occurences (we have 21)
deb11-vb:~/tinysa-saver/TinySASaver$ grep "np.complex(" Calibration.py? | wc
???? 21???? 183??? 1439

*** This is the important comand: Replace all occurences of np.complex( with complex(??? ... In the file Calibration.py
deb11-vb:~/tinysa-saver/TinySASaver$ sed -i 's/np.complex(/complex(/g' Calibration.py

No more np.complex( in the file
deb11-vb:~/tinysa-saver/TinySASaver$ grep "np.complex(" Calibration.py? | wc
????? 0?????? 0?????? 0

But 21 occurences of complex( in the file? .... seems good to me.
deb11-vb:~/tinysa-saver/TinySASaver$ grep "complex(" Calibration.py? | wc
???? 21???? 183??? 1376

Return back to the top-level dir.
cd ..

Install the program with pip
python3 -m pip install .

The program is now installed in ~/.local/bin


But i still got an error , when trying to start the program:

deb11-vb:~/.local/bin$ ./TinySASaver
TinySASaver 0.2.2
Copyright (C) 2019 Rune B. Broberg
This program comes with ABSOLUTELY NO WARRANTY
This program is licensed under the GNU General Public License version 3

See https://github.com/erikkaashoek/tinysa-saver for further details
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted


This thread gave me a solution:
https://stackoverflow.com/questions/59809703/could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found

I then installed this
sudo apt-get install python3-pyqt5


And now trying again:
deb11-vb:~/.local/bin$ ./TinySASaver

It started


During the process i alsi installed this one (before doing the : sudo apt-get install python3-pyqt5) but it didn't work after that install, and i doubt it's needed to do the below.
sudo apt-get install libxcb-xinerama0


Carsten

Join [email protected] to automatically receive all group messages.