Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436814

Summary: sys-block/targetcli should depend on dev-python/urwid
Product: Gentoo Linux Reporter: Nathan Shearer <mail>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: cluster
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nathan Shearer 2012-10-01 17:04:34 UTC
emerge targetcli
start targetcli
type cd

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 983, in run
    self._cli_loop()
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 806, in _cl
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 927, in run
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 902, in _ex
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 101, in exe
    pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1405, in exe
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1024, in ui_
    selected = self._lines_walker(lines, start_pos=start_pos)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1059, in _li
    import urwid
ImportError: No module named urwid

If you `emerge -1 urwid` then try that again, a working cd menu is shown.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-11-10 12:32:07 UTC
yes, appears to warrant

ImportError: No module named urwid

DEPEND="
        dev-python/configshell
        dev-python/rtslib
        sys-block/lio-utils
        dev-python/urwid
        "

$ qfile urwid
dev-python/urwid (/usr/lib64/python2.7/site-packages/urwid)
dev-python/urwid (/usr/lib64/python3.2/site-packages/urwid)
Comment 2 Patrice Clement gentoo-dev 2016-09-02 17:20:34 UTC
commit ca36978e8cd1543a44300433742e9142aaa7a1c1 (HEAD)
Author:     Diogo Pereira <sir.suriv@gmail.com>
AuthorDate: Sat Aug 6 23:20:52 2016 +0100
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Sep 2 19:18:14 2016 +0200

sys-block/targetcli: update live ebuild

* Update to EAPI 6
* Update git repository URI
* Change license to Apache-2.0
* Remove DEPEND on sys-block/lio-utils
* Add DEPEND on dev-python/prettytable
* Add RDEPEND on dev-python/urwid

Gentoo-Bug: https://bugs.gentoo.org/436814
Gentoo-Bug: https://bugs.gentoo.org/491668
Closes: https://github.com/gentoo/gentoo/pull/2034

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

sys-block/targetcli/targetcli-9999.ebuild | 59 ++++++++++++++++++-------------
1 file changed, 35 insertions(+), 24 deletions(-)

Commited, thanks!