Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518618 - dev-util/catfish-1.0.2 - catfish: pexpect.ExceptionPexpect: The command was not found or was not executable: sudo.
Summary: dev-util/catfish-1.0.2 - catfish: pexpect.ExceptionPexpect: The command was n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-30 21:16 UTC by Paweł Stankowski
Modified: 2014-08-23 10:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Stankowski 2014-07-30 21:16:24 UTC
"Update search index" functonality does not work - exception is raised after password is given.

Reproducible: Always

Steps to Reproduce:
1. click upper-right icon
2. choose 'Update search index' menu item (translated string)
3. click 'Unlock' on the dialog that appears
4. Enter your sudo password and click 'OK'
Actual Results:  
Application hangs and it is not possible to close it gracefully.
Following exception occured:

Traceback (most recent call last):
  File "/usr/share/catfish/catfish_lib/SudoDialog.py", line 183, in on_ok_clicked
    if self.attempt_login():
  File "/usr/share/catfish/catfish_lib/SudoDialog.py", line 220, in attempt_login
    child = pexpect.spawn('sudo /bin/true', env={"LANG": "C"})
  File "/usr/lib64/python3.3/site-packages/pexpect/__init__.py", line 511, in __init__
    self._spawn(command, args)
  File "/usr/lib64/python3.3/site-packages/pexpect/__init__.py", line 616, in _spawn
    'executable: %s.' % self.command)
pexpect.ExceptionPexpect: The command was not found or was not executable: sudo.

Expected Results:  
Search index is updated properly.

Yes, I have sudo installed - it is in /usr/bin and I can run it from bash.
app-admin/sudo-1.8.6_p7
dev-python/pexpect-3.3 (~amd64)

There is similar upstream bug noticed on Arch distro: https://bugs.launchpad.net/catfish-search/+bug/1320777

There is a suggestion that the problem is in "'env={"LANG": "C"}'" parameter that is passed to pexpect.spawn() call, not sure why it makes any difference.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-23 10:12:33 UTC
Fixed in 1.0.3 and later versions.