Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68482 - ImportError No module optparse with .51-r2 and python 2.2.3
Summary: ImportError No module optparse with .51-r2 and python 2.2.3
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-10-21 19:14 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2005-07-14 06:58 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 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-10-21 19:14:19 UTC
while installing webapp-config... notice the traceback.

>>> md5 src_uri ;-) webapp-config-1.10-r11.tar.bz2
>>> Unpacking source...
>>> Unpacking webapp-config-1.10-r11.tar.bz2 to /var/tmp/portage/webapp-config-1.10-r11/work
>>> Source unpacked.
>>> Test phase [not enabled]: net-www/webapp-config-1.10-r11

>>> Install webapp-config-1.10-r11 into /var/tmp/portage/webapp-config-1.10-r11/image/ category net-www
Traceback (most recent call last):
  File "/usr/lib/portage/bin/dohtml", line 36, in ?
    import optparse
ImportError: No module named optparse
man:
prepallstrip:
strip: 
strip: 
>>> Completed installing into /var/tmp/portage/webapp-config-1.10-r11/image/



Gentoo Base System version 1.4.16
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.27 i686)
=================================================================
System uname: 2.4.27 i686 AMD Athlon(tm) XP 2500+
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://www.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.seren.com/gentoo http://128.213.5.34/gentoo/ http://gentoo.binarycompass.org/ http://gentoo.oregonstate.edu http://gentoo.ccccom.com/ http://www.ibiblio.org/pub/Linux/distributions/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm avi berkdb bitmap-fonts cdr crypt cups curl dvd emacs encode esd ethereal f77 foomaticdb gd gdbm gif gtk gtk2 imap imlib innodb java jikes jpeg libg++ libwww mad maildir mbox mmx motif mozilla mpeg mysql ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang slp spell sse ssl svga tcltk tiff truetype vhosts vim-with-x virus-scan x86 xml xml2 xmms xprint xv xvid zlib"


this is with python 2.2.3.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-10-22 07:22:06 UTC
Will you take this one karl? Bounce it back if you're too busy.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-10-31 08:33:22 UTC
optparse was added in 2.3.

I see three courses of action:
1) We update the python dep in the portage ebuild
2) We include optparse as an extra module
3) We revert the parser back to the old, slighly buggy one.

What's your take Jason?
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-10-31 16:24:06 UTC
I actually fixed this in CVS already and forgot to update the bug. What I did was scan the tree and found that dohtml is only called with each parameter separate - "dohtml -A .java -r" instead of "dohtml -rA .java". Also, the long options are never used. Thus, to keep it simple, I reimplemented so that only the first is supported.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-12-17 11:21:58 UTC
Fixed and in circulation.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:13 UTC
Fixed on or before 2.0.51.22-r1 
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:51 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.