boatbod
Member
The buffered stderr had me scratching my head for quite a while. What a crazy decision on the part of the python developers!!It was the home stretch and as soon as I saw it I knew that one would be easy to fix.
The buffered stderr had me scratching my head for quite a while. What a crazy decision on the part of the python developers!!It was the home stretch and as soon as I saw it I knew that one would be easy to fix.
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.The buffered stderr had me scratching my head for quite a while. What a crazy decision on the part of the python developers!!
osmosdr source_c creation failure with the full error being: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'
./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.2That error normally happens when gr-osmosdr cannot find the sdr hardware. Does the rtl device show up when you run "lsusb" command?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 isosmosdr source_c creation failurewith 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
Woops, you're right. I forgot to attach it to my VM. All good now!That error normally happens when gr-osmosdr cannot find the sdr hardware. Does the rtl device show up when you run "lsusb" command?
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
I'll be home in about an hour and a half. I'll pull then!Please pull the update and try it again.