Booting from gentoo-2004.0-x86-20040204.iso, using stage file stage1-x86-20040204.tar.bz2, will cause a load of portage errors when attempting to bootstrap the system. Reproducible: Always Steps to Reproduce: 1. proceed through installation 2. chroot 3. emerge sync 4. scripts/bootstrap.sh Actual Results: Running in fetch-only mode... [32;01mGentoo Linux; [34;01mhttp://www.gentoo.org/[0m Copyright 2001-2003 Gentoo Technologies, Inc.; Distributed under the GPL Fetching all bootstrap-related archives... Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Using >=sys-apps/baselayout-1.7.9-r1 Using >=sys-apps/portage-2.0.25 Using >=sys-devel/binutils-2.13.90.0.4 Using >=sys-devel/gcc-3.2 Using sys-devel/gettext Using >=sys-libs/glibc-2.2.5 Using >=sys-apps/texinfo-4.2-r1 Using sys-libs/zlib Using >=sys-libs/ncurses-5.2.20020112a Configuring environment... Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos portage: the directory specified in your PORTAGE_TMPDIR variable, "," does not exist. Please create this directory or correct your PORTAGE_TMPDIR setting. ...................Gentoo Base System version 1.4.3.12 Portage 2.0.49-r21 (default-x86-2004.0, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24-xfs-r0) ================================================================= System uname: 2.4.24-xfs-r0 i686 AMD Athlon(tm) Processor ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O2 -pipe -mmmx -m3dnow -fomit-frame-pointer" 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="-march=athlon-tbird -O2 -pipe -mmmx -m3dnow -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://192.168.0.1/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://212.219.247.10/sites/www.ibiblio.org/gentoo/ http://212.219.247.11/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://192.168.0.1/gentoo-portage" USE="3dnow X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl pdflib png python quicktime readline samba sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Commenting out the lines that import and read from the missingos module from portage.py has allowed me to bootstrap as normal (compiling GCC now).
I also commented out the lines that import and read from the missingos module from portage.py and bootstrap proceeded.
If no one can confirm this bug for the release-stages, I'll close this bug.
i can! MD5 09365b584e1c27d1c873f283047cf6c6 stage1-x86-20040218.tar.bz2 12225923 i don't know what further information could be interesting, so please tell me.
inside chroot: # emerge --info Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-lck1) ================================================================= System uname: 2.4.25-lck1 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: Automake: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X apache2 avi berkdb crypt cups dvd encode ffmpeg foomaticdb gdbm gif gnome gpm gtk gtk2 imap imlib jpeg libwww linguas_de lirc mad maildir mcal mmx motif mpeg ncurses nls nvidia offensive oggvorbis opengl pam pdflib png python quicktime readline sasl sdl slang spell sse ssl svga t1lib tcpd tiff transcode truetype type1 unicode usb v4l video_cards_nvidia x86 xface xfs xine xml xml2 xmms xosd xv zlib zvbi"
"import portage" doesn't work # /usr/bin/python -c 'import portage; print portage.settings["USE"];' Traceback (most recent call last): File "<string>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos or # python Python 2.3.3 (#1, Feb 18 2004, 22:14:06) [GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import portage Traceback (most recent call last): File "<stdin>", line 1, in ? File "portage.py", line 21, in ? import missingos ImportError: No module named missingos
So here we go then...reopening
Today I tried Gentoo Linux 2004.1 and a stage 1 from there: error is still there, I hoped, it was fixed in 2004.1.
this seems to be a problem with a bad python 2.2 kit. here is the fix: either rm -rf /usr/lib/python2.2 or emerge -C =dev-lang/python-2.2* Reassiging to the portage team
It's a python bug... There is nothing portage can do about it. It looks to see if lchown is available in the system libs... if it isn't, it imports missingos... There is something wrong with the python-2.3 installation if this is importing missingos. if "lchown" in dir(os): # Included in python-2.3 lchown=os.lchown else: import missingos lchown=missingos.lchown Python crew have any comments?
The wrong python may be loading as well... Do remnants of python2.2 exist on the stages? What python's are executable?
no additional info? anyone about to isolate the problem?
im having this problem too, any way i can help?
2004.2 has been released, use those stages
While building another new system, I ran into this exact problem again. Using stage1-x86-2004.2.tar.bz2 on an athlon-xp. John's suggestion (remove /usr/lib/python2.2) does not help, that directory doesnt exist. Again, had to comment out the missingos references.
Ok, both cases that I reported in this bug come from a file on my local rsync mirror (which I sync from during installations). /usr/portage/portage.py is the culprit, I have no idea what it was doing there, and don't remember putting it there. 162714 bytes, mtime Sept 17 2003, # $Header: /home/cvsroot/gentoo-src/portage/pym/portage.py,v 1.337 2003/08/22 17:09:37 carpaski Exp $ VERSION="2.0.49-r3" Removing that file solves the problem, as I guess it now gets the correct version of portage.py from wherever it is supposed to be. I'm also suprised that it didn't get removed on a sync, as I sync my mirror against rsync.uk.gentoo.org fairly regularly. But thats another issue.