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

Bug 360863

Summary: app-portage/portage-utils: tests: unable to 'import portage' in python code
Product: Gentoo/Alt Reporter: Dan Wallis <mrdanwallis>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal CC: myckel
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Full build log
Full build log
Full build log

Description Dan Wallis 2011-03-28 04:53:57 UTC
Created attachment 267473 [details]
Full build log

When building app-portage/portage-utils-0.4 in my prefix, I get this failure:

make[2]: Entering directory `/home/dan/.gentoo/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/atom_compare'
../../q atom -c `cat static.tests` > static
#q atom -c `cat static.tests` > static
./atom-compare.py `cat static.tests` > portage
Traceback (most recent call last):
  File "./atom-compare.py", line 3, in <module>
    import sys,portage
ImportError: No module named portage
make[2]: *** [portage] Error 1
make[2]: Leaving directory `/home/dan/.gentoo/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/atom_compare'
Comment 1 Dan Wallis 2012-02-20 03:51:02 UTC
Created attachment 302559 [details]
Full build log

Still failing with v0.9.

portage:Traceback (most recent call last):
  File "/home/fredden/.gentoo/var/tmp/portage/app-portage/portage-utils-0.9/work/portage-utils-0.9/tests/atom_explode/atom-explode.py", line 3, in <module>
    import sys,portage
ImportError: No module named portage
Comment 2 Dan Wallis 2012-04-16 02:05:10 UTC
Created attachment 309109 [details]
Full build log

Still a problem in v0.10.
Comment 3 Myckel Habets 2014-01-16 20:25:28 UTC
Confirmed in portage-utils-0.41.
Comment 4 Fabian Groffen gentoo-dev 2017-11-14 13:14:14 UTC
Things moved forward quite a lot since.