Hello everyone, I am currently working on gnuradio 3.9 on ubuntu 18.04 and currently facing an error while creating an OOT module using the terminal which is shown as: merlin@merlin:~/yash$ gr_modtool newmod packetizer Creating out-of-tree module in ./gr-packetizer... Traceback (most recent call last): File "/usr/bin/gr_modtool", line 18, in <module> cli() File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/base.py", line 133, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/newmod.py", line 47, in cli run(self) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/base.py", line 152, in run module.run() File "/usr/lib/python3/dist-packages/gnuradio/modtool/core/newmod.py", line 79, in run s = filetext.read() File "/usr/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 4: invalid start byte
Hence, I want to resolve this issue as soon as possible. Also, I am currently working on the project "'Implementation of a packet encoder/decoder pair in the GNU radio framework'".I am getting some serious errors while running the project on the above mentioned environment shown as: merlin@merlin:~/chchc/gnuradioproject-master/gr-packetizer/build$ make Scanning dependencies of target gnuradio-packetizer [ 3%] Building CXX object lib/CMakeFiles/gnuradio-packetizer.dir/preamble_header_payload_demux_impl.cc.o /home/merlin/chchc/gnuradioproject-master/gr-packetizer/lib/preamble_header_payload_demux_impl.cc: In static member function ‘static gr::packetizer::preamble_header_payload_demux::sptr gr::packetizer::preamble_header_payload_demux::make(int, int, int, const string&, const string&, bool, size_t, const string&, double, const std::vector<std::__cxx11::basic_string<char> >&, size_t, int, int)’: /home/merlin/chchc/gnuradioproject-master/gr-packetizer/lib/preamble_header_payload_demux_impl.cc:90:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::packetizer::preamble_header_payload_demux_impl]()’ from ‘std::shared_ptr<gr::packetizer::preamble_header_payload_demux_impl>’ to ‘gr::packetizer::preamble_header_payload_demux::sptr {aka boost::shared_ptr<gr::packetizer::preamble_header_payload_demux>}’ return gnuradio::get_initial_sptr ~~~~~~~~~~~~~~~~~~~~~~~~~~ (new preamble_header_payload_demux_impl( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header_len, ~~~~~~~~~~~ items_per_symbol, ~~~~~~~~~~~~~~~~~ guard_interval, ~~~~~~~~~~~~~~~ length_tag_key, ~~~~~~~~~~~~~~~ trigger_tag_key, ~~~~~~~~~~~~~~~~ output_symbols, ~~~~~~~~~~~~~~~ itemsize, ~~~~~~~~~ timing_tag_key, ~~~~~~~~~~~~~~~ samp_rate, ~~~~~~~~~~ special_tags, ~~~~~~~~~~~~~ header_padding, ~~~~~~~~~~~~~~~ preamble_len, ~~~~~~~~~~~~~ header_len_divider ~~~~~~~~~~~~~~~~~~ )); ~~ lib/CMakeFiles/gnuradio-packetizer.dir/build.make:62: recipe for target 'lib/CMakeFiles/gnuradio-packetizer.dir/preamble_header_payload_demux_impl.cc.o' failed make[2]: *** [lib/CMakeFiles/gnuradio-packetizer.dir/preamble_header_payload_demux_impl.cc.o] Error 1 CMakeFiles/Makefile2:174: recipe for target 'lib/CMakeFiles/gnuradio-packetizer.dir/all' failed make[1]: *** [lib/CMakeFiles/gnuradio-packetizer.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Hence, any leads will be thankful. -Thanks and *Regards* *Yash Agrawal* *Electrical Engineering and Computer Sciences Department* *18410*