OP25 Osmocom OP25 beta version help

Status
Not open for further replies.

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,440
Location
Coconut Creek
Trying to set up the Osmocom beta version of OP25. Fresh install in Linux Mint 20.2 in a VirtualBox on a Windows 10 host machine.

After entering the command line and hitting enter, the terminal window just goes back to the command line without doing anything.
The stderr.2 file error message is:

Traceback (most recent call last):
File "./rx.py", line 52, in <module>
import op25
ModuleNotFoundError: No module named 'op25'

The command line:
./rx.py --args 'airspy' --gains 'lna:15' -X -T bctrunk.tsv -q -1 -S 2500000 -U -P constellation -l 'http:0.0.0.0:8080' -2 -v 10 2> stderr.2

I can set up the Boatbod version without any issues.

Ideas?
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
949
Location
NE Wisconsin
Trying to set up the Osmocom beta version of OP25. Fresh install in Linux Mint 20.2 in a VirtualBox on a Windows 10 host machine.

After entering the command line and hitting enter, the terminal window just goes back to the command line without doing anything.
The stderr.2 file error message is:

Traceback (most recent call last):
File "./rx.py", line 52, in <module>
import op25
ModuleNotFoundError: No module named 'op25'

The command line:
./rx.py --args 'airspy' --gains 'lna:15' -X -T bctrunk.tsv -q -1 -S 2500000 -U -P constellation -l 'http:0.0.0.0:8080' -2 -v 10 2> stderr.2

I can set up the Boatbod version without any issues.

Ideas?
Did you apply the gr3.8.patch before executing the installer script?
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
949
Location
NE Wisconsin
Yes. That's the correct procedure. You might want to start fresh by nuking ~/op25 and then perform the clone, patch, and install script.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
If you could run a couple of quick test commands and post the responses

Code:
find /usr/local/lib -name op25
also
Code:
head -1  rx.py
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,440
Location
Coconut Creek
Okay, running this command:
find /usr/local/lib -name op25

This provides no output; it just returns to the command line.

Running this command:
head -1 rx.py
Gives this output, IF I run the command inside the apps folder; otherwise it just says no such file or directory:

#!/usr/bin/env python3
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Okay, running this command:
find /usr/local/lib -name op25

This provides no output; it just returns to the command line.

OK thanks. The second command (head -1) looks good - however the first command failed to find the python libs under /usr/local/lib.

This suggests the install process didn't run or else failed. Could you post the last screenfull-worth of messages that are issued when you run the install.sh script?

Max
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,440
Location
Coconut Creek
I re-ran ./install.sh. It ran much faster than the initial setup. The stderr file still reports no "No Module Named OP25". Here is the last few lines after running the install.sh script:

-- Checking for module SWIG
-- Found SWIG version 4.0.1.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable version "3.8.10", minimum required is "3")
-- User set python executable /usr/bin/python3.8
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable exact version "3.8.10")
-- User set python executable /usr/bin/python3.8
-- User set python executable /usr/bin/python3.8
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ken/op25/build
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'op25/gr-op25/lib/libgnuradio-op25.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:492: op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'op25/gr-op25/lib/libgnuradio-op25.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:492: op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
======
====== NOTICE
======
====== The gnuplot package is not installed by default here,
====== as its installation requires numerous prerequisite packages
====== that you may not want to install.
======
====== In order to do plotting in rx.py using the -P option
====== you must install gnuplot, e.g., manually as follows:
======
====== sudo apt-get install gnuplot-x11
======
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'op25/gr-op25/lib/libgnuradio-op25.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:492: op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'op25/gr-op25/lib/libgnuradio-op25.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:492: op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

OK looks as if that version of Mint may require an additional library that wasn't specified in the install process.

Could I have you try entering the foll. command
sudo apt-get install liborc-dev

Once this has been installed then retry the install.sh

Max
 

W4KRR

Member
Premium Subscriber
Joined
Apr 1, 2001
Messages
3,440
Location
Coconut Creek
OK looks as if that version of Mint may require an additional library that wasn't specified in the install process.

Could I have you try entering the foll. command


Once this has been installed then retry the install.sh

Max

This fixed it; thanks!!!

I noticed that on my PC, there were two missing folders in
"usr/local/lib/python3.8/dist-packages" that were present on another machine that had a working OP25 setup.

The two folders were: op25 and op25_repeater. Would I have fixed this issue if I had just copied the missing folders and their files to the correct location?
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Would I have fixed this issue if I had just copied the missing folders and their files to the correct location?

As a general rule, no. It isn't advisable to copy binary executable objects between systems, unless (1) the OS version and hardware platform are identical, and (2) all needed pre-req code is already installed on the target system (with matching versions in all cases)...

In this case we can deduce that the "other machine that had a working OP25 setup" must necessarily fail condition #1 (and possibly #2) above...

Max
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,286
Location
Lafayette County, FL
This might be a stupid question, but figured I might as well ask since I had my own LM20 VM and installing and testing random stuff in it, but will cloning and installing Boatbod OP25 in one folder, and having Osmocom OP25 in another folder break anything or make it so that one or the other or both will not work correctly? I noticed that the Osmocom version ran a 'make install' at the end, so wasn't sure if that would cause issues or conflicts instead of calling the commands locally with ./ in the appropriate directory.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
This might be a stupid question, but figured I might as well ask since I had my own LM20 VM and installing and testing random stuff in it, but will cloning and installing Boatbod OP25 in one folder, and having Osmocom OP25 in another folder break anything or make it so that one or the other or both will not work correctly? I noticed that the Osmocom version ran a 'make install' at the end, so wasn't sure if that would cause issues or conflicts instead of calling the commands locally with ./ in the appropriate directory.

this is discussed in the principal RR thread for the OP25 beta - in short you must first run a "make uninstall" every time when changing versions... As long as the source and build directories are kept strictly separate it should be possible to build multiple versions -- as many as you want -- but only one can be installed at a time.

Max
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,371
Location
Talbot Co, MD
this is discussed in the principal RR thread for the OP25 beta - in short you must first run a "make uninstall" every time when changing versions... As long as the source and build directories are kept strictly separate it should be possible to build multiple versions -- as many as you want -- but only one can be installed at a time.

Max
Since you are running a virtual environment it's probably best to make two separate virtual machines if you'd like to have both osmocom and boatbod op25 installed at the same time. The c++ library code is different for the two versions and it will conflict since it is installed in /usr/local/lib
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,286
Location
Lafayette County, FL
Since you are running a virtual environment it's probably best to make two separate virtual machines if you'd like to have both osmocom and boatbod op25 installed at the same time. The c++ library code is different for the two versions and it will conflict since it is installed in /usr/local/lib

Yeah, I got to thinking about that after trying it out this afternoon. Its all good though, shouldn't take too long to make a new VM, duplicate it, and use different things on each one.
 
Status
Not open for further replies.
Top