Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57974 - emerge errors after python 2.3.3 unmerge
Summary: emerge errors after python 2.3.3 unmerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 10:01 UTC by Nakul Hoelz
Modified: 2004-07-22 13:12 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 Nakul Hoelz 2004-07-22 10:01:43 UTC
I installed python 2.3.3 which is not the default for
kernel-2.4.26-gentoo-r6 that I am running. I then uninstalled it with
emerge --unmerge python-2.3.3 
Note python 2.1 is still on the system:

Here is the proof: 

# epm -aq |grep python
python-fchksum-1.6.1-r1
mysql-python-0.9.2-r1
python-2.1.3-r1

However now any emerge command is causing errors: 
For example:
# emerge ./python-2.3.3.ebuild 
/usr/bin/emerge:333: SyntaxWarning: local name 'gcc_ver_command' in 'getgccversion' shadows use of 'gcc_ver_command' as global in nested scope 'fallback'
  def getgccversion():
/usr/bin/emerge:333: SyntaxWarning: local name 'gcc_distcc_broken_error' in 'getgccversion' shadows use of 'gcc_distcc_broken_error' as global in nested scope 'fallback'
  def getgccversion():
/usr/bin/emerge:333: SyntaxWarning: local name 'gcc_ver_prefix' in 'getgccversion' shadows use of 'gcc_ver_prefix' as global in nested scope 'fallback'
  def getgccversion():
/usr/bin/emerge:333: SyntaxWarning: local name 'gcc_not_found_error' in 'getgccversion' shadows use of 'gcc_not_found_error' as global in nested scope 'fallback'
  def getgccversion():
/usr/bin/emerge:1173: SyntaxWarning: local name 'mynewslot' in 'display' shadows use of 'mynewslot' as global in nested scope 'lambda'
  def display(self,mylist):
Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 13, in ?
    import getbinpkg
  File "/usr/lib/portage/pym/getbinpkg.py", line 7, in ?
    import htmllib,HTMLParser,string,formatter,sys,os,xpak,time,tempfile,cPickle,base64
ImportError: No module named HTMLParser
# ---------------------- END --------------

EXAMPLE END---------------------------------- 


Here is a complete listing of what's installed on the machine:

# epm -aq
linux-headers-2.4.21
gentoo-sources-2.4.22-r7
gentoo-sources-2.4.25
gentoo-sources-2.4.26-r3
gentoo-sources-2.4.26-r6
make-3.80
gettext-0.12.1
patch-2.5.9
gnuconfig-20030708
m4-1.4.1
bison-1.875
gcc-config-1.3.4
gcc-3.3.3-r6
libperl-5.8.2
libtool-1.4.3-r4
flex-2.5.4a-r5
bc-1.06-r5
bin86-0.16.0
binutils-2.14.90.0.8-r1
autoconf-2.59-r3
automake-1.8.3
texinfo-4.6
coreutils-5.2.1
kbd-1.12-r2
file-4.08
less-381
cronbase-0.2.1-r3
modutils-2.4.25
groff-1.18.1-r4
miscfiles-1.3-r1
man-1.5l-r6
util-linux-2.12-r4
portage-2.0.50-r9
pam-login-3.14
help2man-1.29
ed-0.2-r3
sed-4.0.9
findutils-4.1.20-r1
fbset-2.1
man-pages-1.67
debianutils-1.16.7-r4
diffutils-2.8.4-r4
baselayout-1.9.4-r3
slocate-2.7-r5
gawk-3.1.3-r1
grep-2.5.1-r1
hdparm-5.4
tcp-wrappers-7.6-r8
which-2.16
shadow-4.0.4.1-r3
procps-3.1.15
psmisc-21.2-r4
setserial-2.17-r2
vixie-cron-3.0.1-r4
xinetd-2.3.12
net-tools-1.60-r8
module-init-tools-3.0-r2
pwdb-0.62
glibc-2.3.3.20040420
slang-1.4.9
pam-0.77
readline-4.3-r4
gdbm-1.8.0-r5
db-1.85-r1
db-4.1.25_p1-r3
cracklib-2.7-r8
lib-compat-1.3
gpm-1.20.1
ncurses-5.4-r1
libcap-1.10
db-4.2.52_p2
zlib-1.2.1-r2
ctags-5.5-r1
yacc-1.9.1-r1
dialog-0.9_beta20031002
cvs-1.11.17
intltool-0.30
cvsd-1.0.2
docutils-0.3.3
python-fchksum-1.6.1-r1
egenix-mx-base-2.0.5
mysql-python-0.9.2-r1
bash-2.05b-r9
sash-3.6
blackdown-jre-1.4.1
java-config-1.2.6
blackdown-jdk-1.4.1
ant-1.5.4-r1
tk-8.3.4-r1
python-2.1.3-r1
perl-5.8.2-r1
tcl-8.3.4
swig-1.3.19
nasm-0.98.38
expat-1.95.6-r1
openssl-0.9.7d
glib-1.2.10-r5
libelf-0.8.2
popt-1.7-r1
cyrus-sasl-2.1.14
libxml2-2.6.6
libmcrypt-2.5.7
libxslt-1.1.3
libol-0.3.13
cyrus-imap-dev-2.1.14
mhash-0.8.18-r1
hashalot-0.1.0
gd-2.0.23
freetype-2.1.5-r1
libpng-1.2.5-r4
libwmf-0.2.8.2
fontconfig-2.2.1
libungif-4.1.0.1b
audiofile-0.2.5
jpeg-6b-r3
giflib-4.1.0-r3
tiff-3.5.7-r1
imlib-1.9.14-r1
lcms-1.12
libmng-1.0.4
pdflib-5.0.2
freetype-1.3.1-r3
t1lib-5.0.0-r2
opengl-update-1.5
xfree-4.3.0-r5
ttmkfdir-3.0.9-r1
ncompress-4.2.4
unzip-5.50-r2
cabextract-0.6
bzip2-1.0.2-r3
cpio-2.5
tar-1.14
gzip-1.3.3-r4
sharutils-4.2.1-r9
vim-core-6.3
nano-1.3.2-r1
vim-6.3
ntp-4.2.0-r2
dhcpcd-1.3.22_p4-r4
rsync-2.6.0-r2
wget-1.9-r2
neon-0.24.5
netkit-telnetd-0.17-r3
stunnel-4.04-r1
iputils-021109-r3
openssh-3.8.1_p1-r1
devfsd-1.3.25-r6
e2fsprogs-1.35
lilo-22.5.8-r1
syslog-ng-1.6.4
sudo-1.6.7_p5
zprod-manager-0.1
zope-config-0.3
mailbase-0.00-r5
cyrus-imapd-2.2.3
cyrus-imspd-1.7b
iptables-1.2.9-r4
postgresql-7.3.6
mysql-4.0.20
unixODBC-2.2.6
Template-Toolkit-2.13
DBI-1.38
Storable-2.07-r1
Net-Daemon-0.37
DBD-mysql-2.1027
PlRPC-0.2016-r1
Chart-1.0.1-r1
GD-2.12
XML-Parser-2.34
TimeDate-1.16
CGI-3.04
URI-1.28
Text-Tabs+Wrap-2001.0929
Test-Harness-2.30
Test-Simple-0.47-r1
AppConfig-1.56-r1
MIME-Base64-3.00
GDTextUtil-0.86
GDGraph-1.43
libnet-1.17
MailTools-1.60
HTML-Tagset-3.03-r2
IO-stringy-2.108-r1
digest-base-1.05
Digest-MD5-2.33
HTML-Parser-3.34-r1
Crypt-SSLeay-0.49
libwww-perl-5.79
MIME-tools-5.411a-r2
File-Spec-0.84-r1
bind-tools-9.2.3-r1
bind-9.2.2-r3
hesiod-3.0.2
ncftp-3.1.7
proftpd-1.2.9-r2
liblockfile-1.03-r1
libwww-5.4.0-r2
c-client-2002e-r2
epm-0.8.8
gentoolkit-0.2.0_pre8
lynx-2.8.5
horde-2.2.5
horde-pear-1.3-r1
webapp-config-1.9-r2
horde-chora-1.2.1
horde-chora-1.2.2
squid-2.5.5-r2
apache-2.0.50
esound-0.2.33
gnome-libs-1.4.2
ORBit-0.5.17
gtk+-1.2.10-r10
qt-3.3.0-r1
cups-1.1.20
htmltidy-3.10.29
sablotron-0.97
aspell-0.50.3
rcs-5.7-r2
wv-1.0.0
pdftohtml-0.36
ghostscript-7.07.1-r2
xlhtml-0.5
unrtf-0.19.3
php-4.3.6
mod_php-4.3.4-r4
graphviz-1.10
mailx-support-20030215
pine-4.58
mailx-8.1.2.20021129-r3
sendmail-8.12.11-r3
procmail-3.22-r6
formulator-1.6.2
placelesstranslationservice-fork-1.0_rc3
zope-2.6.4-r1
epoz-0.8.0
groupuserfolder-2.0
cmf-1.4.2-r1
plone-2.0
ploneerrorreporting-0.1
cmfformcontroller-1.0.1
cmfquickinstallertool-1.4
plonetranslations-0.1
externaleditor-0.7-r1
btreefolder2-1.0
portaltransforms-1.0.3
archetypes-1.2.5_rc4
cmfactionicons-0.9
#---------------------------------------END---------------


What's going on???


Reproducible: Always
Steps to Reproduce:
1. type emerge at the command prompt
2.
3.

Actual Results:  
Same error as in Details above

Expected Results:  
emerged whatever was required 

See Details above
Comment 1 Nakul Hoelz 2004-07-22 11:26:54 UTC
Copying python 2.3 and all of the files that epm -ql lists for python 2.3 from an identical machine does not fix the problem. 

The error message remains.....
I was probably not right about python 2.3.3 not being the default for the setup on this machine....

Now what?!!
Comment 2 Nakul Hoelz 2004-07-22 11:48:39 UTC
Solved... the python 2.3 copy worked... still had to repoint the symbolic /usr/bin/python link to python version 2.3.....
Why does emerge not prohibit the removal of packages that it itself depends on?
Comment 3 Bryan Østergaard (RETIRED) gentoo-dev 2004-07-22 13:12:58 UTC
As you already discovered unmerging python isn't a good idea.. The forums has a faq entry describing stuff you should never unmerge and possible ways to fix it if you happen to unmerge them anyway.

See http://forums.gentoo.org/viewtopic.php?t=33609