Layman fails to update when dev-python/pyxml isn't installed. It shows an error like that: --- 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/lib/python2.5/site-packages/layman/action.py", line 470, in __init__ Fetch(config).run() File "/usr/lib/python2.5/site-packages/layman/action.py", line 66, in __init__ self.db = RemoteDB(config) File "/usr/lib/python2.5/site-packages/layman/db.py", line 234, in __init__ Overlays.__init__(self, paths, ignore, quiet) File "/usr/lib/python2.5/site-packages/layman/overlay.py", line 76, in __init__ self.read_file(path) File "/usr/lib/python2.5/site-packages/layman/overlay.py", line 90, in read_file self.read(document) File "/usr/lib/python2.5/site-packages/layman/overlay.py", line 111, in read + str(error)) Exception: Failed to parse the overlay list! Error was: No module named pyexpat --- After installing dev-python/pyxml it runs correctly: --- * Running command "/usr/bin/svn update "/usr/local/portage/layman/sunrise""... En la revisión 6277. * * Success: * ------ * * Successfully synchronized overlay "sunrise". --- Reproducible: Always Steps to Reproduce: 1. Uninstall dev-python/pyxml. 2. Try to sync layman (layman -S), it will throw an error and will not update. 3. Install dev-python/pyxml 4. Sync layman again, it will sync correctly now. I tried it in x86_64 and on gentoo32 chroot too.
Created attachment 156047 [details] ebuild with correct dependencies
Can you provide more details on your machine? Which python version are you using? I'm still on 2.4 here and the pyexpat module belongs to the main python installation: dev-lang/python (/usr/lib64/python2.4/lib-dynload/pyexpat.so)
Ping
closing
(In reply to comment #4) > closing > I've met the same issue during a new fresh installation. layman no longer depends on python when installing. Here is my sys info: ---------------------------------------------------------------- emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.10GHz Timestamp of tree: Fri, 08 Aug 2008 03:25:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r14, 2.5.2-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -mmmx -msse -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -mmmx -msse -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://61.135.158.199" LANG="zh_CN.utf8" LDFLAGS="-Wl,-O1" LINGUAS="zh_CN" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://61.135.158.199/gentoo-portage" USE="X a52 aac acl acpi alsa apm audiofile bash-completion berkdb bluetooth branding bzip2 cairo caps cjk cli cracklib crypt ctype dbus dri dvd dvdr dvdread eds emboss encode esd evo exif expat fam ffmpeg firefox flac fortran ftp gdbm gif glut gmp gnome gpm gstreamer gtk gtkhtml guile hal iconv idn imap imlib ipv6 isdnlog jpeg jpeg2k kerberos lcms ldap libcaca libnotify libwww mad memlimit midi mikmod mime mmx motif mp3 mpeg mudflap nas ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png posix ppds pppd python qt3support quicktime rdesktop readline reflection samba sdl session sockets socks5 spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb videos vim-syntax vorbis win32codecs x86 xine xml xmlrpc xorg xscreensaver xv xvid zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Here is my layman info: eix -I layman [U] app-portage/layman Available versions: 1.0.6 1.0.10 1.1.1 ~1.1.1-r1 ~1.2.0-r1 {git subversion test} Installed versions: 1.0.10(01时06分05秒 2008年08月10日) Homepage: http://layman.sourceforge.net Description: A python script for retrieving gentoo overlays. No git or subversion is installed by dependency. This makes me have to manually install git and subversion to make layman really works.
okay, reopening
(In reply to comment #5) > I've met the same issue during a new fresh installation. > layman no longer depends on python when installing. From stage 1? You cannot run Portage without Python and - from the dependencies at least - the only way to have a Python installation without expat is to install with "build" use flag, which is entirely unsupported.
(In reply to comment #8) > (In reply to comment #5) > > I've met the same issue during a new fresh installation. > > layman no longer depends on python when installing. > > From stage 1? You cannot run Portage without Python and - from the dependencies > at least - the only way to have a Python installation without expat is to > install with "build" use flag, which is entirely unsupported. > Not from stage 1, but stage 3.
I recieved this same issue, recently, after upgrading to Python 2.5.2 and then re-emerging layman. Bug comments suggest that the "pyxml" package is no longer bundled with the 2.5.x branch of Python. As layman depends upon that package, the layman ebuild Diego Agulló has attached (above) properly corrects this issue. Humby yours, B.w.Curry
I am seeing the same problem with layman-1.1.1 and python-2.5.2-r7, pyxml has to be installed manually.
Thanks for the patched ebuild. Fixed for the layman-1.2.1 ebuild which I'll try to stabilize in 30 days.