Note installations, tests etc... (orange pi zero, python 3.....) - F4HTB/Universal_HamRadio_Remote_HTML5 GitHub Wiki
On armbian 21.08.1 buster 5.10.69
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
sudo apt-get install -y git python3 python3-pip python3-numpy python3-tornado python3-serial python3-pyaudio rtl-sdr
sudo apt-get install -y python3-setuptools python3-dev libasound2-dev
sudo pip3 install wheel
sudo pip3 install pyalsaaudio pam pyrtlsdr
sudo apt-get autoremove -y --purge python3-libhamlib2
sudo apt-get install -y autoconf automake libtool swig
cd ~/
git clone https://github.com/Hamlib/Hamlib.git
cd Hamlib/
./bootstrap
./configure --with-python-binding PYTHON=$(which python3)
make all && sudo make install && cd bindings && make && sudo make install && sudo ldconfig
sudo reboot
cd ~/
git clone https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5.git
cd ~/Universal_HamRadio_Remote_HTML5
PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
For armbian 21.08.1 Focal 5.10.60: Python is on 3.8 version and opus lib included in the project have some errors. I think i will remove the opus lib because this lib is not actualy maintained...
** Update note by EA1FID: 1.In order to fix the error python3: undefined symbol: opus_strerror, I installed the opus-tool package by doing sudo apt-get install opus-tools 2.In order to fix the ModuleNotFoundError: No module named 'Hamlib' error, I changed:
PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
To:
PYTHONPATH=/usr/local/lib/python3.9/site-packages:$PYTHONPATH ./UHRR
**
Of course path of python depend on python version.