Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40832 - esearch 5.3.2 and 5.3.3 is not able to output anything
Summary: esearch 5.3.2 and 5.3.3 is not able to output anything
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 06:14 UTC by Matthias F. Brandstetter (RETIRED)
Modified: 2004-02-08 16:36 UTC (History)
1 user (show)

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 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-08 06:14:15 UTC
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
Comment 1 SpanKY gentoo-dev 2004-02-08 10:44:56 UTC
try 0.6
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 11:32:16 UTC
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)
Comment 3 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-08 12:55:16 UTC
... 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
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 14:14:41 UTC
can you check esearch --help ?
Comment 5 David Peter 2004-02-08 14:16:47 UTC
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
Comment 6 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-08 14:50:52 UTC
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
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 15:28:29 UTC
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.
Comment 8 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-08 15:48:03 UTC
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
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 16:36:00 UTC
David, I added a sed line for esearch-0.6, please remember to fix it your side.
Matthias, thanks for noticing this :)