Hi all, please look at this output: itchy root # esearch Traceback (most recent call last): File "/usr/bin/esearch", line 8, in ? from output import bold, red, green, darkgreen, turquoise, nocolor ImportError: No module named output I get this error everytime I call esearch, w/ or w/o argument(s). Maybe this has something todo with this strange portage/awk problem (bug #30271)? Greetings, Matthias Reproducible: Always Steps to Reproduce: 1. nothing, just call esearch program
try 0.6
hmm, 5.3.2 has to be from several years in the future :P Serious, I thought 0.5.3 had that fixed, but seems that it's only in 0.6 (in ~x86)
... installed esearch-0.6 (not 6.0.0 ;)), but still the same error: haim@itchy haim $ emerge search esearch Searching... [ Results for search key : esearch ] [ Applications found : 2 ] * app-portage/esearch Latest version available: 0.5.3 Latest version installed: 0.6 Size of downloaded files: 5 kB Homepage: http://david-peter.de/esearch.html Description: Replacement for 'emerge search' with search-index License: GPL-2 haim@itchy haim $ esearch Traceback (most recent call last): File "/usr/bin/esearch", line 15, in ? from output import bold, red, green, darkgreen, turquoise, nocolor ImportError: No module named output
can you check esearch --help ?
Hi, This looks very strange. I believe this is not a problem of esearch. Which version of portage/python are you using? You have the file /usr/lib/portage/pym/output.py, right? David
haim@itchy haim $ esearch --help Traceback (most recent call last): File "/usr/bin/esearch", line 15, in ? from output import bold, red, green, darkgreen, turquoise, nocolor ImportError: No module named output haim@itchy haim # file /usr/lib/portage/pym/output.py /usr/lib/portage/pym/output.py: ASCII English text I have installed: *) portage-2.0.50 and *) python-2.2.2
damn, should have known that :( Please check if the following line is present in /usr/bin/esearch: sys.path.insert(0, "/usr/portage/lib/pym") and if not please insert import sys sys.path.insert(0, "/usr/portage/lib/pym") before the other import statements, then try esearch --help again.
Yes, the line sys.path.insert(0, "/usr/portage/lib/pym") was in my esearch version, but no such directory. So I manually changed it to sys.path.insert(0, "/usr/lib/portage/pym") and now esearch is working again, heureka ;) Is this ok? Is my filesystem wrong, or this esearch version? Greetings, Matthias
David, I added a sed line for esearch-0.6, please remember to fix it your side. Matthias, thanks for noticing this :)