gnuradio-companion crashes with KeyError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnuradio (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -da
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
$ python --version
Python 3.8.2
$ apt-cache policy gnuradio
gnuradio:
Installed: 3.8.1.0~rc1-2build2
Candidate: 3.8.1.0~rc1-2build2
Version table:
*** 3.8.1.0~rc1-2build2 500
500 http://
100 /var/lib/
$ gnuradio-companion
(gnuradio-
WARNING:
WARNING:
/usr/lib/
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
Traceback (most recent call last):
File "/usr/bin/
run_main()
File "/usr/bin/
exit(main())
File "/usr/lib/
platform.
File "/usr/lib/
utils.
File "/usr/lib/
return self.__
File "/usr/lib/
raise KeyError(key)
KeyError: 'options'
A workaround is
$ GRC_BLOCKS_ PATH=$( find /usr/ -type d -name blocks | xargs echo | tr ' ' ':') gnuradio-companion
which sets
GRC_BLOCKS_ PATH=/usr/ include/ gnuradio/ blocks: /usr/share/ uhd/3.15. 0/rfnoc/ blocks: /usr/share/ gnuradio/ examples/ blocks: /usr/share/ gnuradio/ grc/blocks: /usr/lib/ python3/ dist-packages/ gnuradio/ blocks: /usr/lib/ python3/ dist-packages/ gnuradio/ grc/core/ blocks
That's kind of ugly though and violates my expectations of having software just work straight out of the repositories, or if some additional setup is required it would have been nice to get a message from apt/synaptic.