On 30/10/2019 00:09, Barry Jackson wrote:
> 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
>
>
>
I have opened an issue on github.
https://github.com/gnuradio/gnuradio/issues/2873
No comments:
Post a Comment