Re: gr_modtool crash
Yeah, packaging mishaps happen, and especially with Ubuntu/Canonical mostly grazing uninvolvedly on Mait's effort in the debian space, they sometimes slip by. I'm super thankful Mait is so agile when it comes to fixing the debian packages! On Tue, 2019-12-03 at 17:55 +, César MR wrote: > It worked! > > Oddly, newmod didn’t work in a fresh Ubuntu minimal installation. Thank you! > > > > De: Maitland Bottoms > Enviado: martes, 3 de diciembre de 2019 17:16 > Para: César MR; discuss-gnuradio@gnu.org > Asunto: Re: gr_modtool crash > > César MR writes: > > > Hi! I'm trying to follow the tutorial about working with gnuradio in c++, > > which can be found in the wiki, but i when i try to run gr_modtool, it > > crash. At first i thought that it was because of my language, so i changed > > my linux mint language to UK english, but it didn't work. > > > > In addition i had to run gr_modtool with admin privileges in order to get > > a crash report in /var/crash directory. > > > > You can download the whole crash log here: https://mega.nz/#!yLxRGaRI > > > > What do you think is the root of my problem? thank you > > That is a Debian packaging of gnuradio bug that mint inherited. > This is also found in Debian 10 "Buster" gnuradio 3.7.13.4-4. > > The problem comes from Python byte-compiled files used as templates. > > The solution is to remove all .pyc files found under > /usr/share/gnuradio/modtool/gr-newmod > especially: > /usr/share/gnuradio/modtool/gr-newmod/python/build_utils_codes.pyc > /usr/share/gnuradio/modtool/gr-newmod/python/build_utils.pyc > /usr/share/gnuradio/modtool/gr-newmod/python/__init__.pyc > > I missed these becasue they are not present in the .deb, but are > generated when the package is installed. > > Recent (gnuradio 3.8) Debian packages no longer byte-compile any Python > under /usr/share/gnuradio/ - solving this problem. > > Easiest fix is just > `sudo rm /usr/share/gnuradio/modtool/gr-newmod/python/*pyc` > > Good luck, > -Maitland > smime.p7s Description: S/MIME cryptographic signature
RE: gr_modtool crash
It worked! Oddly, newmod didn’t work in a fresh Ubuntu minimal installation. Thank you! De: Maitland Bottoms<mailto:aa...@amrad.org> Enviado: martes, 3 de diciembre de 2019 17:16 Para: César MR<mailto:cmrincon...@hotmail.com>; discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org> Asunto: Re: gr_modtool crash César MR writes: > Hi! I'm trying to follow the tutorial about working with gnuradio in c++, > which can be found in the wiki, but i when i try to run gr_modtool, it crash. > At first i thought that it was because of my language, so i changed my linux > mint language to UK english, but it didn't work. > > In addition i had to run gr_modtool with admin privileges in order to get a > crash report in /var/crash directory. > > You can download the whole crash log here: https://mega.nz/#!yLxRGaRI > > What do you think is the root of my problem? thank you That is a Debian packaging of gnuradio bug that mint inherited. This is also found in Debian 10 "Buster" gnuradio 3.7.13.4-4. The problem comes from Python byte-compiled files used as templates. The solution is to remove all .pyc files found under /usr/share/gnuradio/modtool/gr-newmod especially: /usr/share/gnuradio/modtool/gr-newmod/python/build_utils_codes.pyc /usr/share/gnuradio/modtool/gr-newmod/python/build_utils.pyc /usr/share/gnuradio/modtool/gr-newmod/python/__init__.pyc I missed these becasue they are not present in the .deb, but are generated when the package is installed. Recent (gnuradio 3.8) Debian packages no longer byte-compile any Python under /usr/share/gnuradio/ - solving this problem. Easiest fix is just `sudo rm /usr/share/gnuradio/modtool/gr-newmod/python/*pyc` Good luck, -Maitland
Re: gr_modtool crash
César MR writes: > Hi! I'm trying to follow the tutorial about working with gnuradio in c++, > which can be found in the wiki, but i when i try to run gr_modtool, it crash. > At first i thought that it was because of my language, so i changed my linux > mint language to UK english, but it didn't work. > > In addition i had to run gr_modtool with admin privileges in order to get a > crash report in /var/crash directory. > > You can download the whole crash log here: https://mega.nz/#!yLxRGaRI > > What do you think is the root of my problem? thank you That is a Debian packaging of gnuradio bug that mint inherited. This is also found in Debian 10 "Buster" gnuradio 3.7.13.4-4. The problem comes from Python byte-compiled files used as templates. The solution is to remove all .pyc files found under /usr/share/gnuradio/modtool/gr-newmod especially: /usr/share/gnuradio/modtool/gr-newmod/python/build_utils_codes.pyc /usr/share/gnuradio/modtool/gr-newmod/python/build_utils.pyc /usr/share/gnuradio/modtool/gr-newmod/python/__init__.pyc I missed these becasue they are not present in the .deb, but are generated when the package is installed. Recent (gnuradio 3.8) Debian packages no longer byte-compile any Python under /usr/share/gnuradio/ - solving this problem. Easiest fix is just `sudo rm /usr/share/gnuradio/modtool/gr-newmod/python/*pyc` Good luck, -Maitland
gr_modtool crash
Hi! I'm trying to follow the tutorial about working with gnuradio in c++, which can be found in the wiki, but i when i try to run gr_modtool, it crash. At first i thought that it was because of my language, so i changed my linux mint language to UK english, but it didn't work. In addition i had to run gr_modtool with admin privileges in order to get a crash report in /var/crash directory. You can download the whole crash log here: https://mega.nz/#!yLxRGaRI What do you think is the root of my problem? thank you below the traceback (without using admin privileges): Traceback (most recent call last): File "/usr/bin/gr_modtool", line 30, in 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 153, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/newmod.py", line 64, in cli run(self) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/base.py", line 172, in run module.run() File "/usr/lib/python3/dist-packages/gnuradio/modtool/core/newmod.py", line 91, 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 0xe8 in position 5: invalid continuation byte Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f: PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_bin_gr_modtool.1000.crash' Original exception was: Traceback (most recent call last): File "/usr/bin/gr_modtool", line 30, in 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 153, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/newmod.py", line 64, in cli run(self) File "/usr/lib/python3/dist-packages/gnuradio/modtool/cli/base.py", line 172, in run module.run() File "/usr/lib/python3/dist-packages/gnuradio/modtool/core/newmod.py", line 91, 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 0xe8 in position 5: invalid continuation byte