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

Bug 518618

Summary: dev-util/catfish-1.0.2 - catfish: pexpect.ExceptionPexpect: The command was not found or was not executable: sudo.
Product: Gentoo Linux Reporter: Paweł Stankowski <aambitny>
Component: Current packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://launchpad.net/bugs/1320777
Whiteboard:
Package list:
Runtime testing required: ---

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.