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


On Fri, 2019-10-25 at 15:02 +0100, Barry Jackson wrote:
> Update:
> Since last night I have re-created the patch and re-built and this
> time 
> the package built with:
> --------------------
>          self._docstring_extractor.finish()
>          # self._docstring_extractor.wait()
>          try:
>  
> utils.hide_bokeh_gui_options_if_not_installed(self.blocks['options'])
>          except KeyError:   #this happens if there's no 'options'
> block
>               pass
> 
>      def _iter_files_in_block_path(self, path=None, ext='yml'):
>          """Iterator for block descriptions and category trees"""
> --------------------
> However the error is still the same. Commenting out the
> section from "try:" down to "pass" locally the error is exactly the 
> same, as though that bit of code does not get involved.
> 
> Just to be sure this is in 
> /usr/lib/python3.8/site-
> packages/gnuradio/grc/core/platform.py  around 
> line 197
> 


Reply via email to