Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60420 - [gnuradio] Missing package dependency for gr_modtool

Attached to Project: Community Packages
Opened by Dan Bryant (dicta) - Tuesday, 16 October 2018, 02:20 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 14 May 2019, 20:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

gnuradio appears to be missing a dependency on python2-cheetah for the CLI gr_modtool program.


Additional info:

[dan@vpn01 ~]$ gr_modtool
Traceback (most recent call last):
File "/usr/bin/gr_modtool", line 24, in <module>
from gnuradio.modtool import *
File "/usr/lib/python2.7/site-packages/gnuradio/modtool/__init__.py", line 23, in <module>
from code_generator import GRMTemplate
File "/usr/lib/python2.7/site-packages/gnuradio/modtool/code_generator.py", line 24, in <module>
import Cheetah.Template
ImportError: No module named Cheetah.Template
[dan@vpn01 ~]$ pacman -Ss cheetah
community/python2-cheetah 2.4.4-7
A Python-powered template engine and code generator
[dan@vpn01 ~]$ sudo pacman -S python2-cheetah
resolving dependencies...
looking for conflicting packages...

Packages (2) python2-markdown-2.6.11-2 python2-cheetah-2.4.4-7

Total Download Size: 0.35 MiB
Total Installed Size: 1.76 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
python2-markdown-2.6.11-2-any 103.4 KiB 393K/s 00:00 [#######################################################################################################################] 100%
python2-cheetah-2.4.4-7-x86_64 253.4 KiB 2.75M/s 00:00 [#######################################################################################################################] 100%
(2/2) checking keys in keyring [#######################################################################################################################] 100%
(2/2) checking package integrity [#######################################################################################################################] 100%
(2/2) loading package files [#######################################################################################################################] 100%
(2/2) checking for file conflicts [#######################################################################################################################] 100%
(2/2) checking available disk space [#######################################################################################################################] 100%
:: Processing package changes...
(1/2) installing python2-markdown [#######################################################################################################################] 100%
(2/2) installing python2-cheetah [#######################################################################################################################] 100%
Optional dependencies for python2-cheetah
python2-pygments: for the CodeHighlighter filter
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[dan@vpn01 ~]$ gr_modtool
Usage:
gr_modtool <command> [options] -- Run <command> with the given options.
gr_modtool help -- Show a list of commands.
gr_modtool help <command> -- Shows the help for a given command.


Steps to reproduce:

- Install the community/gnuradio package. Do not install gnuradio-companion.
- Attempt to run the gr_modtool binary.
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 14 May 2019, 20:09 GMT
Reason for closing:  Fixed
Comment by Eli Schwartz (eschwartz) - Tuesday, 16 October 2018, 03:00 GMT
While we're at it, can we move the desktop file and the GUI launcher /usr/bin/gnuradio-companion, into the gnuradio-companion split package? Since we're supplying a split package for the deps anyway, it makes sense to not install a binary that users aren't supposed to use, and instead install it in the package that says they're allowed to use it.

It's minimal effort while hiding the program from the eyes of people who try installing the base package and then think the program is supposed to work. It would make it easier for users to not report erroneous bugs, and make it easier for *us* to figure out whether a bug report is valid.

(I encouraged the OP via IRC to report the bug, but only after I initially got confused and recommended installing the GUI dummy package.)
Comment by Kyle Keen (keenerd) - Friday, 19 October 2018, 03:17 GMT
Eli, I would rather not punish the normal users of GnuRadio.

Most of those gr-companion dependencies are optional, depending on which parts of gnuradio-companion you are using. Moving the binary would cripple gr-companion for the people who know what they are doing.

Comment by Kyle Keen (keenerd) - Friday, 19 October 2018, 03:58 GMT
python2-cheetah has been added as an optdep for gr-modtool support.
Comment by Martin Rys (C0rn3j) - Friday, 26 October 2018, 10:38 GMT
It looks like `gnuradio-companion` can be there even if the package with same name is not installed, installing gnuradio and gnuradio-osmosdr(osmosdr possibly not needed) seems to be enough for it to exist and launch. (and fail on the cheetah dependency.

I opened a dupe of this task here on accident (didn't know search only searches title and not contents) https://bugs.archlinux.org/task/60593
Comment by Mario Hros (k3a) - Thursday, 11 April 2019, 14:06 GMT
To run `gnuradio-companion`, I had to install both `python2-lxml` and `python2-cheetah` otherwise I would get the following traces:

```
Traceback (most recent call last):
File "/usr/bin/gnuradio-companion", line 99, in <module>
run_main()
File "/usr/bin/gnuradio-companion", line 87, in run_main
from gnuradio.grc.main import main
File "/usr/lib/python2.7/site-packages/gnuradio/grc/main.py", line 23, in <module>
from .gui.Platform import Platform
File "/usr/lib/python2.7/site-packages/gnuradio/grc/gui/Platform.py", line 23, in <module>
from ..core.Platform import Platform as _Platform
File "/usr/lib/python2.7/site-packages/gnuradio/grc/core/Platform.py", line 23, in <module>
from . import ParseXML, Messages, Constants
File "/usr/lib/python2.7/site-packages/gnuradio/grc/core/ParseXML.py", line 20, in <module>
from lxml import etree
ImportError: No module named lxml
```

```
Traceback (most recent call last):
File "/usr/bin/gnuradio-companion", line 99, in <module>
run_main()
File "/usr/bin/gnuradio-companion", line 87, in run_main
from gnuradio.grc.main import main
File "/usr/lib/python2.7/site-packages/gnuradio/grc/main.py", line 23, in <module>
from .gui.Platform import Platform
File "/usr/lib/python2.7/site-packages/gnuradio/grc/gui/Platform.py", line 23, in <module>
from ..core.Platform import Platform as _Platform
File "/usr/lib/python2.7/site-packages/gnuradio/grc/core/Platform.py", line 27, in <module>
from .generator import Generator
File "/usr/lib/python2.7/site-packages/gnuradio/grc/core/generator/__init__.py", line 18, in <module>
from Generator import Generator
File "/usr/lib/python2.7/site-packages/gnuradio/grc/core/generator/Generator.py", line 23, in <module>
from Cheetah.Template import Template
ImportError: No module named Cheetah.Template
```

Loading...