Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266676 - app-admin/python-updater-0.6-r1: does it skip layman?
Summary: app-admin/python-updater-0.6-r1: does it skip layman?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 18:55 UTC by Martin Mokrejš
Modified: 2009-05-20 14:08 UTC (History)
2 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 Martin Mokrejš 2009-04-18 18:55:35 UTC
Hi,
  after the upgrade from python-2.5 to 2.6 I am sure I did run python-updater. After some days I figured out layman was not running as it could not find some of its modules on import. Unmerging and re-merging it helped. Could it be that python-updater did not try to re-merge it for me? Thanks.
Comment 1 Arseny Solokha 2009-04-22 18:33:59 UTC
You get
% layman -l
Traceback (most recent call last):
  File "/usr/bin/layman", line 23, in <module>
    from   layman.config            import Config
ImportError: No module named layman.config

Right?
Comment 2 Martin Mokrejš 2009-04-23 01:04:49 UTC
No, it was something about python-2.5 path  while at that moment I was upgraded to 2.6. I could not paste the error at that very moment so I unfortunately had to file the bug report without the exact message. I was rather hoping someone will confirm python-updater for example avoids by design re-installs of system packages or similar reason.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 15:14:02 UTC
Please post the output of the failing layman process, and post your `emerge --info' too.
Comment 4 Arseny Solokha 2009-04-29 15:37:20 UTC
My layman output is in comment #1. Maybe it is not related to the bug summary, if so I can fill new bug.



Portage 2.2_rc31 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.0
Timestamp of tree: Tue, 28 Apr 2009 13:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=core2 -mfpmath=sse -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
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/termin
fo /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=core2 -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.corbina.ru/pub/Linux/gentoo ftp://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="ru"
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 --ex
clude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/pro-audio /usr/local/portage/layman/arcon /usr/local/portage/layman/soor-overlay /usr/local/portage/layman/rostov 
/usr/local/portage/layman/bobrik-cleartype /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib dri fortran gdbm iconv ipv6 mmx mmxext mudflap nls nptl nptlonly openmp pam pcre pppd readline reflection session sp
l sse sse2 ssl sysfs tcpd threads unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hook
s iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse sy
naptics" KERNEL="linux" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Martin Mokrejš 2009-04-29 15:59:43 UTC
Hi,
  I have just updated the system, so the current "emerge --info" might report newer version. But expect that by the time of reporting the machine was up-to-date as well.

Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29.1 i686)
=================================================================
System uname: Linux-2.6.29.1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.0
Timestamp of tree: Tue, 28 Apr 2009 14:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
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/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage /usr/local/java-experimental /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xprint xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



I cannot post the output, sorry, but it was a generic python message that it cannot find a module in /usr/lib/python2.5/site-packages if I recall correctly.
I immediately realized there should have been /usr/lib/python2.6/site-packages
instead but figured out that layman was not recompiled by python-updater.
Therefore I unmerged the packaged and installed it again.
Comment 6 Martin Mokrejš 2009-04-29 16:02:02 UTC
(In reply to comment #4)
> My layman output is in comment #1. Maybe it is not related to the bug summary,
> if so I can fill new bug.

No, it is not. My problem was path issue.
Comment 7 Arseny Solokha 2009-04-29 16:50:24 UTC
(In reply to comment #6)
> No, it is not. My problem was path issue.
> 

OK, I've just opened 267897 for my issue.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-05 23:34:48 UTC
We need some kind of error output to see what this bug is about.
Comment 9 Martin Mokrejš 2009-05-06 14:39:09 UTC
I won't be able to give you a trace, it was a generic python error message when it attempts to load a module/package from certain path but misses some files.

Just please answer one question. Does python-updater treat system packages like layman, sandbox, portage in a different way and e.g. prevents their rebuild after python update? If yes then ther eis no reason to treat layman as an exception anymore.
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-18 18:55:19 UTC
(In reply to comment #9)
> Does python-updater treat system packages like layman, sandbox, portage in
> a different way and e.g. prevents their rebuild after python update?

The only exceptions are dev-lang/python and sys-apps/portage.

We need exact error message, if we have to fix anything.
Comment 11 Martin Mokrejš 2009-05-19 17:11:33 UTC
So I upgraded python on another machine. Here are the messages:

nfssrv ~ # layman  
Traceback (most recent call last):
  File "/usr/bin/layman", line 23, in <module>
    from   layman.config            import Config
ImportError: No module named layman.config
nfssrv ~ # equery files layman
[ Searching for packages matching layman... ]
* Contents of app-portage/layman-1.2.3:
/etc
/etc/layman
/etc/layman/layman.cfg
/usr
/usr/bin
/usr/bin/layman
/usr/lib64
/usr/lib64/python2.5
/usr/lib64/python2.5/site-packages
/usr/lib64/python2.5/site-packages/layman
/usr/lib64/python2.5/site-packages/layman-1.2.3-py2.5.egg-info
/usr/lib64/python2.5/site-packages/layman/__init__.py
/usr/lib64/python2.5/site-packages/layman/action.py
/usr/lib64/python2.5/site-packages/layman/config.py
/usr/lib64/python2.5/site-packages/layman/db.py
/usr/lib64/python2.5/site-packages/layman/debug.py
/usr/lib64/python2.5/site-packages/layman/overlay.py
/usr/lib64/python2.5/site-packages/layman/overlays
/usr/lib64/python2.5/site-packages/layman/overlays/__init__.py
/usr/lib64/python2.5/site-packages/layman/overlays/bzr.py
/usr/lib64/python2.5/site-packages/layman/overlays/cvs.py
/usr/lib64/python2.5/site-packages/layman/overlays/darcs.py
/usr/lib64/python2.5/site-packages/layman/overlays/git.py
/usr/lib64/python2.5/site-packages/layman/overlays/mercurial.py
/usr/lib64/python2.5/site-packages/layman/overlays/overlay.py
/usr/lib64/python2.5/site-packages/layman/overlays/rsync.py
/usr/lib64/python2.5/site-packages/layman/overlays/svn.py
/usr/lib64/python2.5/site-packages/layman/overlays/tar.py
/usr/lib64/python2.5/site-packages/layman/utils.py
/usr/lib64/python2.5/site-packages/layman/version.py
/usr/local
/usr/local/portage
/usr/local/portage/layman
/usr/local/portage/layman/.keep_app-portage_layman-0
/usr/share
/usr/share/doc
/usr/share/doc/layman-1.2.3
/usr/share/doc/layman-1.2.3/AUTHORS.bz2
/usr/share/doc/layman-1.2.3/PKG-INFO.bz2
/usr/share/doc/layman-1.2.3/README.bz2
/usr/share/doc/layman-1.2.3/html
/usr/share/doc/layman-1.2.3/html/layman.8.html
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/layman.8.bz2
nfssrv ~ # python --version
Python 2.6.2
nfssrv ~ # python-updater
 * Starting Python Updater from 2.5 to 2.6 :
[cut]
 *   Adding to list: =app-portage/layman-1.2.3


I do not know what really happened on the other machine. Close as INVALID.
Comment 12 Arseny Solokha 2009-05-19 19:30:00 UTC
(In reply to comment #11)
> So I upgraded python on another machine.
> 
> I do not know what really happened on the other machine. Close as INVALID.
> 

Please see bug 267897.