gnuradio-companion crashes with KeyError

Bug #1877900 reported by Chris Kuethe
6
This bug affects 1 person
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://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

$ gnuradio-companion

(gnuradio-companion:1987623): dbind-WARNING **: 16:14:45.930: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
WARNING:gnuradio.grc.core.platform:display_show_image.block.yml block.parameters[3]: warn: Ignoring extra key 'value'
WARNING:gnuradio.grc.core.platform:display_show_text.block.yml block.parameters[0]: warn: Ignoring extra key 'value'
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
Traceback (most recent call last):
  File "/usr/bin/gnuradio-companion", line 102, in <module>
    run_main()
  File "/usr/bin/gnuradio-companion", line 95, in run_main
    exit(main())
  File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line 83, in main
    platform.build_library()
  File "/usr/lib/python3/dist-packages/gnuradio/grc/core/platform.py", line 197, in build_library
    utils.hide_bokeh_gui_options_if_not_installed(self.blocks['options'])
  File "/usr/lib/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key) # support subclasses that define __missing__
  File "/usr/lib/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'options'

Revision history for this message
Chris Kuethe (ckuethe) wrote :

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.

Revision history for this message
Chris Kuethe (ckuethe) wrote :

Turns out this was due to a stale configuration file. :P

Changed in gnuradio (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.