OP25 Docker Image Created / Looking for Testing

Status
Not open for further replies.

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Reaction score
98
Location
Omaha, NE
The buffered stderr had me scratching my head for quite a while. What a crazy decision on the part of the python developers!!
I didn't even know about the buffer since I hadn't had a chance to use stderr (was mostly doing django). I did some research and I can see how that is a problem in OP25 haha.

Looks like there might be another error with the HTTP interface.

The first error is osmosdr source_c creation failure with the full error being:
Python:
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Traceback (most recent call last):
  File "./rx.py", line 1028, in <module>
    rx = rx_main()
  File "./rx.py", line 937, in __init__
    self.tb = p25_rx_block(self.options)
  File "./rx.py", line 145, in __init__
    gain_names = self.src.get_gain_names()
AttributeError: 'NoneType' object has no attribute 'get_gain_names'

The full command is ./rx.py --nocrypt --args "rtl" --gains 'lna:36' -S 960000 -X -q 0 -v 1 -2 -V -U -T trunk.tsv -l "http:0.0.0.0:8080" 2> stderr.2
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,678
Reaction score
1,071
Location
Talbot Co, MD
I didn't even know about the buffer since I hadn't had a chance to use stderr (was mostly doing django). I did some research and I can see how that is a problem in OP25 haha.

Looks like there might be another error with the HTTP interface.

The first error is osmosdr source_c creation failure with the full error being:
Python:
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Traceback (most recent call last):
  File "./rx.py", line 1028, in <module>
    rx = rx_main()
  File "./rx.py", line 937, in __init__
    self.tb = p25_rx_block(self.options)
  File "./rx.py", line 145, in __init__
    gain_names = self.src.get_gain_names()
AttributeError: 'NoneType' object has no attribute 'get_gain_names'

The full command is ./rx.py --nocrypt --args "rtl" --gains 'lna:36' -S 960000 -X -q 0 -v 1 -2 -V -U -T trunk.tsv -l "http:0.0.0.0:8080" 2> stderr.2
That error normally happens when gr-osmosdr cannot find the sdr hardware. Does the rtl device show up when you run "lsusb" command?
 

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Reaction score
98
Location
Omaha, NE
Actually, I'm getting this error now:

Python:
Exception while serving /
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/waitress/channel.py", line 349, in service
    task.service()
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 169, in service
    self.execute()
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 477, in execute
    self.write(chunk)
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 330, in write
    channel.write_soon(towrite)
  File "/usr/lib/python3/dist-packages/waitress/channel.py", line 320, in write_soon
    self.outbufs[-1].append(data)
  File "/usr/lib/python3/dist-packages/waitress/buffers.py", line 249, in append
    self.strbuf = strbuf + s
TypeError: can't concat str to bytes
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,678
Reaction score
1,071
Location
Talbot Co, MD
Fixes posted and available in origin/master (as well as origin/dev). I've tested the gui commands and fixed a couple non-python3 bugs I ran across along the way.

If anyone has a suitable testing environment with the ability to make an apples-apples comparison, I would be curious to compare CPU utilization of op25 under gr3.8/py3 versus the same hardware & configuration running on gr3.7/py2.

As an aside, my test environment is happily running an Airspy @ 3.0Mhz with glitch-free audio via the much-maligned 'pulse' subsystem on Ubuntu 20.04 in a virtual environment using Virtualbox on host Mint 18.3 (Ubuntu 16.04).
 

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Reaction score
98
Location
Omaha, NE
I have VMWare workstation, so I can create two VMs to do testing on the same CPU(s). I'll do Ubuntu 18.04 and Ubuntu 20.04 for testing.
 
Status
Not open for further replies.
Top