Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52332 - emerge --ask depclean ends with traceback after one answers no
Summary: emerge --ask depclean ends with traceback after one answers no
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-05-29 04:18 UTC by Elie De Brauwer
Modified: 2005-02-12 18:20 UTC (History)
1 user (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 Elie De Brauwer 2004-05-29 04:18:55 UTC
I entered:

emerge --ask depclean, answered 'no', after that I got the following 
Traceback.

Do you want me to unmerge these packages? [Yes/No] no
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2469, in ?
    unmerge("unmerge", cleanlist)
  File "/usr/bin/emerge", line 1833, in unmerge
    __main__.myopts+=["--pretend"]
NameError: global name '__main__' is not defined

Reproducible: Always
Steps to Reproduce:
1.emerge --ask depclean
2.answer no
3.

Actual Results:  
It spitted out a traceback

Expected Results:  
Said nothing ;-)
Comment 1 Malcolm Lashley (RETIRED) gentoo-dev 2004-07-03 16:03:15 UTC
Not reproducible here, can you add the emerge info output to this bug please (Danny, Jason, can we bounce this to portage maintainers?)
Comment 2 Elie De Brauwer 2004-07-04 07:42:52 UTC
Meanwhile it isn't reproducable by me anymore. Probably after I did the transition from amd64 to ~amd64. It works now.
Comment 3 Adam 2004-07-31 11:36:50 UTC
This happened to me too.  I tried it again and it happened again.  The complete shell output follows:
root>emerge --ask --verbose depclean

*** WARNING *** : DEPCLEAN CAN  SERIOUSLY  IMPAIR YOUR SYSTEM
. USE CAUTION.
*** WARNING *** : (Cancel: CONTROL-C) -- ALWAYS VERIFY ALL PA
CKAGES IN THE
*** WARNING *** : CANDIDATE LIST FOR  SANITY  BEFORE  ALLOWIN
G DEPCLEAN TO
*** WARNING *** : UNMERGE ANY PACKAGES.
*** WARNING *** :
*** WARNING *** : USE FLAGS MAY HAVE AN EXTREME EFFECT ON THE
 OUTPUT.
*** WARNING *** : SOME LIBRARIES MAY BE USED BY PACKAGES BUT                                                                ARE NOT
*** WARNING *** : CONSIDERED TO BE A DEPEND DUE TO USE FLAG S                                                               ETTINGS.
*** WARNING *** :
*** WARNING *** : Packages  in the list  that are  desired  m                                                               ay be added
*** WARNING *** : directly to the world file to cause them to                                                                be ignored
*** WARNING *** : by depclean and maintained in the future. B                                                               REAKAGES DUE
*** WARNING *** : TO UNMERGING AN  ==IN-USE LIBRARY==  MAY BE                                                                REPAIRED BY
*** WARNING *** : MERGING  *** THE PACKAGE THAT COMPLAINS ***                                                                 ABOUT THE
*** WARNING *** : MISSING LIBRARY.

Calculating depclean dependencies ... done!

>>> These are the packages that I would unmerge:

 net-mail/mailwrapper
    selected: 0.1
   protected: none
     omitted: none

 dev-java/blackdown-jre
    selected: 1.4.1
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Do you want me to unmerge these packages? [Yes/No] no
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2469, in ?
    unmerge("unmerge", cleanlist)
  File "/usr/bin/emerge", line 1833, in unmerge
    __main__.myopts+=["--pretend"]
NameError: global name '__main__' is not defined


Here's my emerge info output:

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2004-08-20 16:02:08 UTC
Doesn't happen with portage 2.0.51_pre20...

Someone tell me why i didn't see this one earlier ? :-/
Reassigning to portage devs!
Comment 5 Elie De Brauwer 2004-08-20 23:41:08 UTC
Funny, after all these time I can reproduce the error again,

root@psychotic /home/helios # emerge info
Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6                      .8-gentoo)
=================================================================
System uname: 2.6.8-gentoo x86_64 4
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/                      config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.                      du.se/pub/os/gentoo http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/                      gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif gnome                       gpm gtk gtk2 imlib java jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses                       nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline                       sdl slang snmp spell ssl tcpd tetex truetype xml2 xmms xv zlib"


And the result is still:
Do you want me to unmerge these packages? [Yes/No] No
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2469, in ?
    unmerge("unmerge", cleanlist)
  File "/usr/bin/emerge", line 1833, in unmerge
    __main__.myopts+=["--pretend"]
NameError: global name '__main__' is not defined

Happens when typing N,No or no
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 21:27:39 UTC
This bug exists in the 2.0.50 series.
Not present in 2.0.51
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:35 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2