Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399167 - app-portage/layman 'module' object has no attribute 'expat' due to python[xml] satisfied by python3
Summary: app-portage/layman 'module' object has no attribute 'expat' due to python[xml...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Brian Dolbec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 12:46 UTC by Vladimir Rusinov
Modified: 2012-03-10 23:45 UTC (History)
3 users (show)

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 Vladimir Rusinov 2012-01-17 12:46:11 UTC
$ sudo layman -L
* Failed to update the overlay list from: http://www.gentoo.org/proj/en/overlays/repositories.xml
* Error was:
* Failed to parse the overlays list fetched from http://www.gentoo.org/proj/en/overlays/repositories.xml
* This means that the downloaded file is somehow corrupt or there was a problem with the webserver. Check the content of the file. Error was:
* 'module' object has no attribute 'expat'

$ eix ^python$ 
[I] dev-lang/python
<...reformatted for better readability...>
     Installed versions:
* 2.7.2-r3(2.7)(09:14:28 01/12/12)(build wide-unicode -berkdb -doc -elibc_uclibc -examples -gdbm -ipv6 -ncurses -readline -sqlite -ssl -threads -tk -wininst -xml) 
* 3.1.4-r3(3.1)(23:38:22 01/17/12)(gdbm ncurses readline ssl threads wide-unicode xml -build -doc -elibc_uclibc -examples -ipv6 -sqlite -tk -wininst)

$ eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1

As you can see 'dev-lang/python[xml]' is satisfied, but not with selected python, so layman fails. Rebuilding python2 with xml of course fixes the problem.

Reproducible: Always
Comment 1 Ben Kohler gentoo-dev 2012-01-18 22:31:48 UTC
In my opinion this is a bug in current stage3, I've reported as bug #399331.  It's also affecting first-time installs of mirrorselect, gentoolkit, and probably a few other basic tools requiring dev-lang/python[xml].
Comment 2 Moritz Schlarb 2012-02-07 13:30:07 UTC
Confirming bug with fresh install from stage3-amd64-20120202.tar.bz2 after emerging layman due to missing xml in python-2.7.2-r3.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2012-03-10 23:45:41 UTC
The python dependency has been properly updated for the 1.4* versions.  The 2.0.0_rc's that were not correct have been removed.

This error should not occur again.  The fix is now in CVS, please allow a few hours for this to reach your local rsync mirror.