Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34820 - emerge restart failed after change of portage version: No module named missingos
Summary: emerge restart failed after change of portage version: No module named missingos
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2003-12-01 05:58 UTC by Jarkko
Modified: 2011-10-30 22:21 UTC (History)
0 users

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


Attachments
patch against portage-2.0.49-r18.ebuild (portage.ebuild.patch,429 bytes, patch)
2003-12-04 10:54 UTC, Masatomo Nakano (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jarkko 2003-12-01 05:58:32 UTC
* NOTICE: PLEASE *REPLACE* your make.globals. All user changes to variables
 * in make.globals should be placed in make.conf. DO NOT MODIFY make.globals.

 * Feature additions are noted in help and make.conf descriptions. Update
 * them using 'etc-update' please. Maintaining current configs for portage
 * and other system packages is fairly important for the continued health
 * of your system.

Recalculating the counter... FAILED to update counter.
!!! This is a problem.
>>> Clearing invalid entries in dependency cache... ...done!
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/portage-2.0.49-r18 merged.

 sys-apps/portage
    selected: 2.0.48-r5
   protected: 2.0.49-r18
     omitted: none

>>> Packages in red are slated for removal.
>>> Packages in green will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging sys-apps/portage-2.0.48-r5...
No package files given... Grabbing a set.
--- !mtime obj /var/tmp/.keep
--- !mtime obj /usr/share/man/man5/vim.5.gz
--- !mtime obj /usr/share/man/man5/stardict.5.gz
--- !mtime obj /usr/share/man/man5/rpm.5.gz
--- !mtime obj /usr/share/man/man5/perl-module.eclass.5.gz
--- !mtime obj /usr/share/man/man5/make.conf.5.gz
--- !mtime obj /usr/share/man/man5/gcc.5.gz
--- !mtime obj /usr/share/man/man5/games.5.gz
--- !mtime obj /usr/share/man/man5/flag-o-matic.5.gz
--- !mtime obj /usr/share/man/man5/eutils.5.gz
--- !mtime obj /usr/share/man/man5/ebuild.5.gz
--- !mtime obj /usr/share/man/man5/distutils.5.gz
--- !mtime obj /usr/share/man/man5/cvs.5.gz
--- !mtime obj /usr/share/man/man1/repoman.1.gz
--- !mtime obj /usr/share/man/man1/etc-update.1.gz
--- !mtime obj /usr/share/man/man1/env-update.1.gz
--- !mtime obj /usr/share/man/man1/emerge.1.gz
--- !mtime obj /usr/share/man/man1/ebuild.1.gz
<<<        obj /usr/share/doc/portage-2.0.48-r5/ChangeLog.gz
<<<        obj /usr/lib/python2.2/site-packages/xpak.py
<<<        obj /usr/lib/python2.2/site-packages/portage.py
<<<        obj /usr/lib/python2.2/site-packages/output.py
<<<        obj /usr/lib/python2.2/site-packages/missingos.so
<<<        obj /usr/lib/python2.2/site-packages/cvstree.py
--- !mtime obj /usr/lib/portage/lib/sandbox.bashrc
--- !mtime obj /usr/lib/portage/bin/xpak
--- !mtime obj /usr/lib/portage/bin/tbz2tool
--- !mtime obj /usr/lib/portage/bin/sandbox
--- !mtime obj /usr/lib/portage/bin/repoman
--- !mtime obj /usr/lib/portage/bin/regenworld.sh
--- !mtime obj /usr/lib/portage/bin/regenworld
--- !mtime obj /usr/lib/portage/bin/quickpkg
--- !mtime obj /usr/lib/portage/bin/queryhost.sh
--- !mtime obj /usr/lib/portage/bin/prepstrip
--- !mtime obj /usr/lib/portage/bin/prepman
--- !mtime obj /usr/lib/portage/bin/preplib.so
--- !mtime obj /usr/lib/portage/bin/preplib
--- !mtime obj /usr/lib/portage/bin/prepinfo
--- !mtime obj /usr/lib/portage/bin/prepallstrip
--- !mtime obj /usr/lib/portage/bin/prepallman
--- !mtime obj /usr/lib/portage/bin/prepallinfo
--- !mtime obj /usr/lib/portage/bin/prepalldocs
--- !mtime obj /usr/lib/portage/bin/prepall
--- !mtime obj /usr/lib/portage/bin/portageq
--- !mtime obj /usr/lib/portage/bin/pkgname
--- !mtime obj /usr/lib/portage/bin/pkgmerge.new
--- !mtime obj /usr/lib/portage/bin/pkgmerge
--- !mtime obj /usr/lib/portage/bin/pkglist
--- !mtime obj /usr/lib/portage/bin/pdb.cgi
--- !mtime obj /usr/lib/portage/bin/pdb
--- !mtime obj /usr/lib/portage/bin/newsbin
--- !mtime obj /usr/lib/portage/bin/newman
--- !mtime obj /usr/lib/portage/bin/newlib.so
--- !mtime obj /usr/lib/portage/bin/newlib.a
--- !mtime obj /usr/lib/portage/bin/newins
--- !mtime obj /usr/lib/portage/bin/newexe
--- !mtime obj /usr/lib/portage/bin/newdoc
--- !mtime obj /usr/lib/portage/bin/newbin
--- !mtime obj /usr/lib/portage/bin/g-cpan.pl
--- !mtime obj /usr/lib/portage/bin/fperms
--- !mtime obj /usr/lib/portage/bin/fowners
--- !mtime obj /usr/lib/portage/bin/fixpackages
--- !mtime obj /usr/lib/portage/bin/fixdbentries
--- !mtime obj /usr/lib/portage/bin/fix-db.pl
--- !mtime obj /usr/lib/portage/bin/find-requires
--- !mtime obj /usr/lib/portage/bin/find-packages
--- !mtime obj /usr/lib/portage/bin/extra_functions.sh
--- !mtime obj /usr/lib/portage/bin/etc-update
--- !mtime obj /usr/lib/portage/bin/env-update
<<<        obj /usr/lib/portage/bin/emerge~
--- !mtime obj /usr/lib/portage/bin/emergehelp.py
--- !mtime obj /usr/lib/portage/bin/emerge-webrsync
--- !mtime obj /usr/lib/portage/bin/emerge
--- !mtime obj /usr/lib/portage/bin/emake
--- !mtime obj /usr/lib/portage/bin/ebuild.sh
--- !mtime obj /usr/lib/portage/bin/ebuild
--- !mtime obj /usr/lib/portage/bin/dosym
--- !mtime obj /usr/lib/portage/bin/dosed
--- !mtime obj /usr/lib/portage/bin/dosbin
--- !mtime obj /usr/lib/portage/bin/dopython
--- !mtime obj /usr/lib/portage/bin/domo
--- !mtime obj /usr/lib/portage/bin/doman
--- !mtime obj /usr/lib/portage/bin/dolib.so
--- !mtime obj /usr/lib/portage/bin/dolib.a
--- !mtime obj /usr/lib/portage/bin/dolib
--- !mtime obj /usr/lib/portage/bin/dojar
--- !mtime obj /usr/lib/portage/bin/doins
--- !mtime obj /usr/lib/portage/bin/doinfo
--- !mtime obj /usr/lib/portage/bin/dohtml
--- !mtime obj /usr/lib/portage/bin/dohard
--- !mtime obj /usr/lib/portage/bin/doexe
--- !mtime obj /usr/lib/portage/bin/dodoc
--- !mtime obj /usr/lib/portage/bin/dodir
--- !mtime obj /usr/lib/portage/bin/dobin
--- !mtime obj /usr/lib/portage/bin/dispatch-conf
--- !mtime obj /usr/lib/portage/bin/db-update.py
--- !mtime obj /usr/lib/portage/bin/chkcontents
--- !mtime obj /lib/libsandbox.so
--- cfgpro obj /etc/make.globals
--- cfgpro obj /etc/etc-update.conf
--- cfgpro obj /etc/dispatch-conf.conf
<<<        dir /usr/share/doc/portage-2.0.48-r5
--- !empty dir /var/tmp
--- !empty dir /var
--- !empty dir /usr/share/man/man5
--- !empty dir /usr/share/man/man1
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/sbin
--- !empty dir /usr/lib/python2.2/site-packages
--- !empty dir /usr/lib/python2.2
--- !empty dir /usr/lib/portage/lib
--- !empty dir /usr/lib/portage/bin
--- !empty dir /usr/lib/portage
--- !empty dir /usr/lib
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /lib
--- !empty dir /etc
--- !targe sym /usr/sbin/regenworld
--- !targe sym /usr/sbin/pkgmerge
--- !targe sym /usr/sbin/fixpackages
--- !targe sym /usr/sbin/etc-update
--- !targe sym /usr/sbin/env-update
--- !targe sym /usr/sbin/emerge-webrsync
--- !targe sym /usr/sbin/ebuild.sh
--- !targe sym /usr/sbin/ebuild
--- !targe sym /usr/sbin/dispatch-conf
--- !targe sym /usr/lib/portage/bin/pmake
--- !targe sym /usr/lib/portage/bin/donewins
--- !targe sym /usr/bin/xpak
--- !targe sym /usr/bin/tbz2tool
--- !targe sym /usr/bin/repoman
--- !targe sym /usr/bin/quickpkg
--- !targe sym /usr/bin/portageq
--- !targe sym /usr/bin/g-cpan.pl
--- !targe sym /usr/bin/emerge
>>> Regenerating /etc/ld.so.cache...
Traceback (most recent call last):
  File "/usr/lib/portage/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 126, in ?
    import missingos
ImportError: No module named missingos

Reproducible: Always
Steps to Reproduce:
1. install from stage2 tarball (ACCEPT_KEYWORDS="~x86")
2. emerge system
3. this happens after portage update
Actual Results:  
Emerge failed to reload because of the missing python module.

Expected Results:  
The missing module should have been there (or the import should have been 
disabled) and portage should just work.

# emerge info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 126, in ?
    import missingos
ImportError: No module named missingos


Okay, let's comment out that missingos import and try again...

# emerge info
Deleting invalid mtimedb key: packages
Deleting invalid mtimedb key: eclass
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21-gss)
=================================================================
System uname: 2.4.21-gss i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.rhnet.is/pub/gentoo/ 
http://mirror.pudas.net/gentoo http://trumpetti.atm.tut.fi/gentoo/ 
ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm 
gtk gtk2 imlib innodb java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg 
mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime 
readline samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml2 xmms xv 
zlib"

Now it worked. So the problem is just that the missingos module is not there. 
Fortunately it is only needed with older python versions (according to the 
comment in portage.py).

This might be quite major for users who don't like to debug. I'll set it as 
normal though.
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-01 06:24:28 UTC
Hello,

What is your python version?
And do you have /usr/bin/python2.2?
Comment 2 Jarkko 2003-12-02 01:31:38 UTC
I cannot check that anymore because I decided to build the system from scratch again... Although it was most likely 2.2 because the python is already present after stage2 and I did emerge system which doesn't update packages (only builds the missing ones).

Okay I guess it now. The new portage doesn't need missingos anymore because python is newer too. My problem was that python wasn't updated at the moment but portage still removed missingos. Hmm, why was the portage even updated when running emerge system? Updates should only happen with the -u switch.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-02 12:28:40 UTC
It may be portage-2.0.49-r18 bug.
-r18 uses 'which' command to install missings.so.
But there is not the command in stage 1 or 2,
so missings.so was not installed.

I think you reinstalled from stage3 or not using ~x86.
right?
Comment 4 Jarkko 2003-12-02 13:07:45 UTC
Yes, stage3 works.
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-02 13:56:07 UTC
OK. we'll fix it.
Comment 6 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-04 10:54:15 UTC
Created attachment 21701 [details, diff]
patch against portage-2.0.49-r18.ebuild
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2003-12-06 22:13:08 UTC
fixed