Hi!
First intuition is that there might be something wrong with the Python version
in use. Which is it? Python pre-2.7 doesn't know the keyword arguments, so it
would have to read
.decode('utf-8','replace')
Instead of
.decode('utf-8',errors='replace')
Cheetah is, as far as I know, not Python 3 compatible.
Best regards,
Marcus
Am 26. Oktober 2015 01:46:09 MEZ, schrieb Nemanja Savic <vlasi...@gmail.com>:
>Hi all guys,
>
>i built yesterday 3.7.8. When I wanted to run GRC the following error
>occured:
>
>Traceback (most recent call last):
>File "/scr1/nemanja/install/bin/gnuradio-companion", line 128, in
><module>
> main()
> File "/scr1/nemanja/install/bin/gnuradio-companion", line 121, in main
> ActionHandler(args, Platform())
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py",
>line 62, in __init__
> self.main_window = MainWindow(platform)
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/MainWindow.py",
>line 96, in __init__
> self.btwin = BlockTreeWindow(platform, self.get_flow_graph);
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/BlockTreeWindow.py",
>line 107, in __init__
> self.platform.load_block_tree(self)
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/base/Platform.py",
>line 228, in load_block_tree
> block_tree.add_block(block.get_category(), block)
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/BlockTreeWindow.py",
>line 144, in add_block
> treestore.set_value(iter, DOC_INDEX,
>Utils.parse_template(DOC_MARKUP_TMPL, doc=block.get_doc()))
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/Utils.py",
>line 116, in parse_template
> return str(Template(tmpl_str, kwargs))
>File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line
>1003,
>in __str__
> rc = getattr(self, mainMethName)()
>File
>"cheetah_DynamicallyCompiledCheetahTemplate_1445820074_12_55642.py",
>line 83, in respond
> File
>"/scr1/nemanja/install/lib64/python2.6/site-packages/gnuradio/grc/gui/Utils.py",
>line 100, in encode
> valid_utf8 = value.decode('utf-8', errors='replace').encode('utf-8')
>TypeError: decode() takes no keyword arguments
>
>
>It looks like Cheetah problem but can't make it work. There was
>suggestion
>few years ago to remove errors='replace', but it didn't work for me.
>
>THanx
>--
>Nemanja Savić
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Discuss-gnuradio mailing list
>Discuss-gnuradio@gnu.org
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio