Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem emerging portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
robvr
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 96
Location: Best, The Netherlands

PostPosted: Tue Mar 12, 2013 10:08 pm    Post subject: problem emerging portage Reply with quote

Help! I Portage can't emerge itself anymore..

I can still build everything else, but when I try to emerge protage itself, it fails. I think the console output below says it all:

Code:
vidder qt-phonon # emerge -v portage

 * IMPORTANT: 6 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/portage-2.1.11.50  USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl -ru" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Traceback (most recent call last):
  File "/usr/bin/emerge", line 48, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/main.py", line 1021, in emerge_main
    gc_locals=locals().clear)
  File "/usr/lib/portage/pym/_emerge/actions.py", line 3837, in run_action
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/actions.py", line 463, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/Scheduler.py", line 935, in merge
    rval = self._handle_self_update()
  File "/usr/lib/portage/pym/_emerge/Scheduler.py", line 309, in _handle_self_update
    _prepare_self_update(self.settings)
  File "/usr/lib/portage/pym/portage/package/ebuild/doebuild.py", line 2147, in _prepare_self_update
    portage.proxy.lazyimport._preload_portage_submodules()
  File "/usr/lib/portage/pym/portage/proxy/lazyimport.py", line 40, in _preload_portage_submodules
    __import__(name)
ImportError: No module named _eapi_invalid

Code:
vidder qt-phonon # emerge --info
Portage 2.1.11.31 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 2.6.39-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-AMD_Sempron-TM-_3000+-with-gentoo-2.1
Timestamp of tree: Sun, 24 Feb 2013 16:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://212.219.56.153/sites/www.ibiblio.org/gentoo/ http://212.219.56.133/sites/www.ibiblio.org/gentoo/"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://jarl/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa apng arts asf audiofile avi berkdb bzip2 cairo cdparanoia cdr cjk cli cracklib css cups cvs cxx dbus dga directfb divx4linux dri dts dv dvd dvdnav dvdr dvdread encode esd exif ffmpeg flac foomaticdb fortran ftp fts3 gdbm ggi gif gimp gimpprint git gnutls gpm iconv ieee1394 imagemagick imap ipv6 jpeg lzo mad matroska matrox minizip mjpeg mmx mmxext modules mp3 mpeg mplayer mudflap musepack ncurses network nls nptl nptlonly ogg openmp osc pam pcre pdf perl plotutils png posix postgres postscript python qt4 quicktime readline scanner sdl session sqlite ssl stream subversion svg swat tcpd theora tiff truetype unicode usb v4l v4l2 vcd vorbis win32codecs wxwidgets x264 x86 xm12 xv xvid zlib" ALSA_CARDS="es1968" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="mga fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
 


Any of this make sense to anyone out there?

Rob
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Mar 12, 2013 11:03 pm    Post subject: Reply with quote

robvr,

What does eselect python list return :?: If it's not set to python2.7, set it and try again.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Mar 12, 2013 11:04 pm    Post subject: Reply with quote

Quote:
[ebuild R ] sys-apps/portage-2.1.11.50 USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl -ru" 0 kB

Building portage without python?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Mar 12, 2013 11:34 pm    Post subject: Reply with quote

Jaglover wrote:
Quote:
[ebuild R ] sys-apps/portage-2.1.11.50 USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl -ru" 0 kB

Building portage without python?

Mine shows the same and it runs fine
Code:
[ebuild   R    ] sys-apps/portage-2.1.11.52  USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl -ru" 0 kB

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed Mar 13, 2013 3:27 pm    Post subject: Reply with quote

I suspect you will have to do a manual rescue of portage if you are unable to emerge portage.

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 352
Location: California USA

PostPosted: Wed Mar 13, 2013 3:29 pm    Post subject: Re: problem emerging portage Reply with quote

robvr wrote:
Code:
File "/usr/lib/portage/pym/portage/proxy/lazyimport.py", line 40, in _preload_portage_submodules
    __import__(name)
ImportError: No module named _eapi_invalid


Your portage install seems corrupt. There are recovery instructions here:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
_________________
Zac
Back to top
View user's profile Send private message
robvr
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2004
Posts: 96
Location: Best, The Netherlands

PostPosted: Wed Mar 13, 2013 5:26 pm    Post subject: Re: problem emerging portage Reply with quote

zmedico wrote:
Your portage install seems corrupt. There are recovery instructions here:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml

Yup, that fixed it. Now, if only I understood how it got corrupted..

Thanks for all the advice everyone.

Rob
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum