Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281134 - app-portage/layman-1.2.3: "Failed to parse the overlay list" after update to dev-lang/python-2.6.2-r1
Summary: app-portage/layman-1.2.3: "Failed to parse the overlay list" after update to...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 19:12 UTC by Lars
Modified: 2009-08-17 23:35 UTC (History)
0 users

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 Lars 2009-08-11 19:12:54 UTC
After upgrading python to 2.6.2-r1 (from 2.5.4-r3) and running python-updater layman (1.2.3) dies with errors whenever I try to sync, add or list overlays.



Reproducible: Always

Steps to Reproduce:
1.invoke layman -S 
or layman -a sunrise
or layman -L

Actual Results:  
# layman -S
Traceback (most recent call last):
  File "/usr/bin/layman", line 37, in <module>
    main()
  File "/usr/bin/layman", line 34, in main
    Actions(Config())
  File "/usr/lib64/python2.6/site-packages/layman/action.py", line 479, in __init__
    Fetch(config).run()
  File "/usr/lib64/python2.6/site-packages/layman/action.py", line 66, in __init__
    self.db = RemoteDB(config)
  File "/usr/lib64/python2.6/site-packages/layman/db.py", line 237, in __init__
    Overlays.__init__(self, paths, ignore, quiet)
  File "/usr/lib64/python2.6/site-packages/layman/overlay.py", line 76, in __init__
    self.read_file(path)
  File "/usr/lib64/python2.6/site-packages/layman/overlay.py", line 90, in read_file
    self.read(document)
  File "/usr/lib64/python2.6/site-packages/layman/overlay.py", line 111, in read
    + str(error))
Exception: Failed to parse the overlay list!
Error was:
no element found: line 1, column 0

Expected Results:  
Syncing, adding or listing overlay.

emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4_LM1.00 x86_64)
=================================================================                                               
System uname: Linux-2.6.30-gentoo-r4_LM1.00-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.0.1 
Timestamp of tree: Mon, 10 Aug 2009 21:15:01 +0000                                                              
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                       
ccache version 2.4 [enabled]                                                                                    
app-shells/bash:     3.2_p39                                                                                    
dev-java/java-config: 2.1.8-r1                                                                                  
dev-lang/python:     2.5.4-r3, 2.6.2-r1                                                                         
dev-python/pycrypto: 2.0.1-r8                                                                                   
dev-util/ccache:     2.4-r7                                                                                     
dev-util/cmake:      2.6.4                                                                                      
sys-apps/baselayout: 2.0.1                                                                                      
sys-apps/openrc:     0.4.3-r3                                                                                   
sys-apps/sandbox:    1.6-r2                                                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                                                              
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                       
sys-devel/binutils:  2.18-r3                                                                                    
sys-devel/gcc-config: 1.4.1                                                                                     
sys-devel/libtool:   2.2.4                                                                                      
virtual/os-headers:  2.6.27-r2                                                                                  
ACCEPT_KEYWORDS="amd64"                                                                                         
CBUILD="x86_64-pc-linux-gnu"                                                                                    
CFLAGS="-O2 -march=nocona -pipe"                                                                                
CHOST="x86_64-pc-linux-gnu"                                                                                     
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                                      
CXXFLAGS="-O2 -march=nocona -pipe"                                                                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                                                                                    
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                               
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                               
LANG="de_DE.UTF-8"                                                                                                                                                                  
LC_ALL=""                                                                                                                                                                           
LDFLAGS="-Wl,-O1"                                                                                                                                                                   
LINGUAS="de en"                                                                                                                                                                     
MAKEOPTS="-j3"                                                                                                                                                                      
PKGDIR="/usr/portage/packages"                                                                                                                                                      
PORTAGE_CONFIGROOT="/"                                                                                                                                                              
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                                                                          
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                           
PORTDIR="/usr/portage"                                                                                                                                                              
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac aalib acl acpi addbookmarks additions addressbook akonadi alias alisp alsa amd64 amr amrnb amrwb aotuv apache2 archive async asyncns atm audiofile auth automount autoreplace avahi bash-completion berkdb bittorrent bluetooth branding bzip2 cairo caps cdaudio cdda cddax cddb cdio cdparanoia cdr cli connectionstatus consolekit contactnotes cracklib crypt cscope css cups daap dbus dc1394 dell device-mapper dga dia dirac directfb disk-partition djbfft djvu dmraid dmx dnd dri dts dv dvb dvd dvdr dvdread dynamic eap-sim ebook emacs embedded emovix encode eolconv escreen esd etwin exif expat extras fam fame fat fbcon fbcondecor fbsplash festival ffmpeg fftw finger firefox firefox3 flac fontconfig foomaticdb fortran fpx ftd2xx ftdi ftp fusion gadu gcj gcrypt gd gdbm ggi gif gimp git glib glitz gmp gnokii gnutls gopher gpm graphics graphviz groupwise gs gtk hal hardened hdri hfs highlight history hpn htmlhandbook humanities hyperestraier ical iconv icu id3tag idea idn ieee1394 ifp imagemagick imlib inkjar inotify ipod iproute2 ipv6 ipw4965 irc irmc isdnlog jabber jadetex java java5 java6 javascript jbig jce jfs jingle joystick jpeg jpeg2k jsapi kate kde kdm kig-scripting kipi kpathsea kqemu kvm lame laptop latex lcms libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 live lm_sensors logitech-mouse loop-aes lua lzo mad madwifi marble matroska mbrola md5sum mdnsresponder-compat messenger mjpeg mmap mmx mmxext mng modplug mono mozdevelop mozdom mozilla mp2 mp3 mp4 mpeg mplayer mtp mudflap mule multilib multiuser musepack musicbrainz mysql nas ncurses nemesi netboot network network-cron njb nls nntp nodrm nowlistening nptl nptlonly nsplugin nss ntfs nuv nvidia odbc offensive ogg openexr opengl openmp oscar oss otr pam paste64 pcmcia pcre pdf perl pkcs11 plasma plotutils pmu png policykit postscript ppds pppd pronounce ps3 pth pulseaudio pvr python qt3 qt3support qt4 quicktime quotas radio rar readline reflection reiser4 reiserfs replytolist restrict-javascript rss rtc rtsp ruby s3 samba sametime scanner schroedinger science scim script sdl sdl-image semantic-desktop sensord session shout skey skins slang slit slp smi smp sms sndfile sound soundex speex spell spl spoof-source sqlite sse sse2 ssl ssse3 startup-notification statistics stream subversion svg swat swig sysfs syslog taglib tcl tcpd teletext test-programs texteffect tga themes theora threads thumbnail tiff tk toolbar toolkit-scroll-bars tordns translator truetype twolame unicode usb utempter v4l v4l2 vcd vcdinfo vcdx vde vdr vhosts vim-pager vim-syntax vim-with-x visualization vlm vnc vorbis wavpack webinterface webpresence wifi winbind winpopup wmf wps wxwindows x264 xanim xattr xcb xcomposite xemacs xetex xext xforms xfs xine xinerama xinetd xml xmldoclet xmp xorg xosd xpm xrandr xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip zlib zoran zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8  digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick  jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200  konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot  panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600  polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3  samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1  sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template  toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv vesa nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars 2009-08-11 19:18:10 UTC
I already recompiled layman and I tried downgrading to 1.1.1. which gives these errors:

# layman -a sunrise
/usr/lib64/python2.6/site-packages/layman/db.py:27: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, codecs, os.path, urllib2, re, md5
/usr/lib64/python2.6/site-packages/layman/overlays/overlay.py:27: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import sys, types, re, os, os.path, shutil, popen2
* Overlay "sunrise" does not exist!



# layman -S
/usr/lib64/python2.6/site-packages/layman/db.py:27: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, codecs, os.path, urllib2, re, md5
/usr/lib64/python2.6/site-packages/layman/overlays/overlay.py:27: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import sys, types, re, os, os.path, shutil, popen2


layman --help works.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-11 19:19:47 UTC
What use flags do you use? emerge -pv python
Comment 3 Lars 2009-08-11 19:25:35 UTC
(In reply to comment #2)
> What use flags do you use? emerge -pv python
> 
[ebuild   R   ] dev-lang/python-2.6.2-r1  USE="berkdb gdbm ipv6 ncurses readline sqlite ssl threads tk xml -build -doc -examples -ucs2 -wininst" 0 kB
Comment 4 Lars 2009-08-14 12:29:57 UTC
Solved.
Steps to solve:

CONFIG_PROTECT="" emerge -C layman
rm -r /usr/local/portage/layman
rm -r /usr/portage/local/layman

"source /usr/local/portage/layman/make.conf" commented out in /etc/make.conf

emerge -av layman

Now layman works again as expected.
Comment 5 Lars 2009-08-14 12:30:52 UTC
(In reply to comment #4)
> "source /usr/local/portage/layman/make.conf" commented out in /etc/make.conf
> 
> emerge -av layman
>
> "source /usr/local/portage/layman/make.conf" added again to /etc/make.conf