[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gnuradio-companion-3.8.0 fails to run
From: |
Barry Jackson |
Subject: |
Re: [Discuss-gnuradio] gnuradio-companion-3.8.0 fails to run |
Date: |
Wed, 30 Oct 2019 00:09:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 |
On 27/10/2019 11:58, Marcus Müller wrote:
ah! I missed the part where you said you're not used to Python.
In Python, indentation is structure-defining, and the error message
sadly doesn't really give context, but it looks like the most probable
explanation is that the line you've inserted is not correctly indented.
Make sure you're using the same characters to indent (spaces) and the
same amount of additional spaces to indent the content of the try:-
block.
Best regards,
Marcus
Thanks Marcus,
I did not realize about indentation in python.
I have corrected this by using tabs only as used by similar structures
in the same file.
On running grc I get:
[baz@jackodesktop gnuradio]$ gnuradio-companion
Traceback (most recent call last):
File
"/usr/lib/python3.8/site-packages/gnuradio/grc/gui/Application.py", line
102, in do_activate
self.main_window = MainWindow(self, self.platform)
File
"/usr/lib/python3.8/site-packages/gnuradio/grc/gui/MainWindow.py", line
84, in __init__
generate_modes = platform.get_generate_options()
File
"/usr/lib/python3.8/site-packages/gnuradio/grc/core/platform.py", line
379, in get_generate_options
for param in self.block_classes['options'].parameters_data:
File "/usr/lib64/python3.8/collections/__init__.py", line 891, in
__getitem__
return self.__missing__(key) # support subclasses that
define __missing__
File "/usr/lib64/python3.8/collections/__init__.py", line 883, in
__missing__
raise KeyError(key)
KeyError: 'options'
The patch applying your change is attached.
Regards,
Barry
gnuradio-3.8.0.0-mga-utils.hide_bokeh_gui_options_if_not_installed.patch
Description: Text Data