OP25 New install to RPI 3B+ errors

Scorppro

Member
Premium Subscriber
Joined
Jan 20, 2015
Messages
20
I had OP25 working perfect last week on MXLinux. Listened to it for over 2 hours. Shut down laptop. Next night, all seemed fine but no audio. So... I decided to try OP25 on a Pi I had sitting around. Running RasberryOS desktop, updated all software, pulled latest OP25 build from Boatbod github, installed fine with no errors. Followed READMEs and configured as it should be. Ran op25.sh and received the following error (copied from stderr.2)

Using Python /usr/bin/python
Traceback (most recent call last):
File "/home/op25pi/op25/op25/gr-op25_repeater/apps/./rx.py". line 77, in <module>
import gnuradio.op25 as op25
ModuleNotFoundError: No module named 'gnuradio.op25'

I'm lost from there.

So I decided to try the newest build on the MXLinux laptop. Deleted the op25 folder from home dir. cloned op25 from git. Installed great. Configured as I did on the Pi. Started the op25.sh, little bits of sound was heard after startup. Never showed the control channel freq at top of window, just all 000.0000

Long story short (too late), Am I just cursed to have a cheap way of listening to my local public safety radios? My TRX-1 was purchased years ago for half the current prices. Do I need to just bite the bullet and fork out the money for another scanner? My RTL is a Nooelec NESDRSmart.

Thank you for any feedback.
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,108
Location
NE Wisconsin
A couple of things to take into consideration when building and running OP25.

(1) By default, the 'Master' branch of boatbod op25 expects to run on GNU Radio Version 3.10.

(2) You must either know or determine the version of GUN Radio to be installed by the apt repository for your specific Linux OS.
This is accomplished by submitting "apt list | grep gnuradio-dev" from the command line.

(3) If the above apt list query returns GNU Radio 3.10 then you and immediately run the installer (./install.sh).

(4) If the apt list query returns GNU Radio 3.X then you must first submit "git checkout gr38" before running the installer.

The above procedure aids in selecting the correct branch of op25 to be installed to match the Python and GNU Radio versions
specific to your particular Linux distro. If you've attempted to run the installer having selected the incorrect branch of op25, then
the easiest recovery is to start with a fresh flash of Linux. Start over with a clean slate.

The next hurdle aside from getting op25 properly configured for your P25 TRS and the SDR properly compensated for frequency
error is having to deal with Linux distro's running pulse audio or pipe wire audio subsystems. Special measures will be required on
these systems to enable audio when running op25 as a system service or headless operation.

Get op25 up and running from the local terminal before attempting to setup an automated headless system service configuration.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,512
Location
Talbot Co, MD
My first thought would be the wrong version of op25 is installed relative to the version of gnuradio.
Can you run the following commands and report the output:
Code:
apt list gnuradio 2>/dev/null | grep -m 1 gnuradio | cut -d' ' -f2 | cut -d'.' -f1,2
Code:
(cd ~/op25; git status)
 

Scorppro

Member
Premium Subscriber
Joined
Jan 20, 2015
Messages
20
op25pi@raspberrypi:~ $ apt list gnuradio 2>/dev/null | grep -m 1 gnuradio | cut -d' ' -f2 | cut -d'.' -f1,2
3.10
op25pi@raspberrypi:~ $ cd ~/op25; git status
fatal: detected dubious ownership in repository at '/home/op25pi/op25'
To add an exception for this directory, call:

git config --global --add safe.directory /home/op25pi/op25
op25pi@raspberrypi:~/op25 $

When i run "apt list | grep gnuradio-dev" i get

gnuradio-dev/stable,now 3.10.5.1-3 arm64 [installed]
gnuradio-dev/stable 3.10.5.1-3 armhf
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,512
Location
Talbot Co, MD
It seems you are using gnuradio-3.10 which means your github should be on "gr310" or "master". Unfortunately the 'git status' command failed so I'm not able to tell what branch you are actually running from.

My recommendation would be to do the following:
Code:
cd ~/op25/build
sudo make uninstall
then:
Code:
cd ~
mv op25 op25.old
git clone https://github.com/boatbod/op25 -b gr310
cd op25
./install.sh

One op25 is built and installed, you can copy the config across from the old install directory (~/op25.old/op25/gr-op25_repeater/apps)
 
Top