Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42475

Summary: cannot emerge openoffice: ImportError: No module named java_config
Product: Gentoo Linux Reporter: Kevin <gentoo>
Component: New packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kevin 2004-02-22 06:19:42 UTC
I've tried to emerge openoffice several times now.  I see the FAQ on this and blackdown:
============
I went to emerge blackdown-jdk and blackdown-jre, and afterwards java-config --list-available-vms would only list blackdown-jre. Openoffice would then refuse to emerge. What do I do?  

Solution: 

Code listing 4.3: Solution

# emerge unmerge blackdown-jre blackdown-jdk   
# CONFIG_PROTECT="" emerge blackdown-jdk 
============

I performed the solution (had to manually get the j2sdk docs from sun), and tried again to no avail.

The error I'm getting from the emerge process is:
============
bash-2.05b# emerge openoffice
Calculating dependencies ...done!
>>> emerge (1 of 1) app-office/openoffice-1.1.0-r2 to /
>>> md5 src_uri ;-) OOo_1.1.0_source.tar.bz2
>>> md5 src_uri ;-) gpc231.tar.Z
>>> md5 src_uri ;-) freetype-2.1.4.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/java-config", line 14, in ?
    from java_config import jc_options
ImportError: No module named java_config
 *
 * This ebuild has only been tested with the blackdown port of
 * java.  If you use another java implementation, it could fail
 * horribly, so please merge the blackdown-jdk and set it as
 * system VM before proceeding:
 *
 *  # emerge blackdown-jdk
 *  # java-config --set-system-vm=blackdown-jdk-<VERSION>
 *  # env-update
 *  # source /etc/profile
 *
 * Please adjust <VERSION> according to the version installed in
 * /opt.
 *
 * If you however want to test another JDK (not officially supported),
 * you could do the following:
 *
 *  # export FORCE_JAVA=yes
 *

!!! ERROR: app-office/openoffice-1.1.0-r2 failed.
!!! Function pkg_setup, Line 132, Exitcode 0
!!! (no error message)
============

I tried the solution indicated in the error message, but java-config breaks with:
============
bash-2.05b# java-config --set-system-vm=blackdown-jdk-1.4.1
Traceback (most recent call last):
  File "/usr/bin/java-config", line 14, in ?
    from java_config import jc_options
ImportError: No module named java_config
============


Reproducible: Always
Steps to Reproduce:
1. emerge openoffice
2.
3.

Actual Results:  
============ 
bash-2.05b# emerge openoffice 
Calculating dependencies ...done! 
>>> emerge (1 of 1) app-office/openoffice-1.1.0-r2 to / 
>>> md5 src_uri ;-) OOo_1.1.0_source.tar.bz2 
>>> md5 src_uri ;-) gpc231.tar.Z 
>>> md5 src_uri ;-) freetype-2.1.4.tar.bz2 
Traceback (most recent call last): 
  File "/usr/bin/java-config", line 14, in ? 
    from java_config import jc_options 
ImportError: No module named java_config 
 * 
 * This ebuild has only been tested with the blackdown port of 
 * java.  If you use another java implementation, it could fail 
 * horribly, so please merge the blackdown-jdk and set it as 
 * system VM before proceeding: 
 * 
 *  # emerge blackdown-jdk 
 *  # java-config --set-system-vm=blackdown-jdk-<VERSION> 
 *  # env-update 
 *  # source /etc/profile 
 * 
 * Please adjust <VERSION> according to the version installed in 
 * /opt. 
 * 
 * If you however want to test another JDK (not officially supported), 
 * you could do the following: 
 * 
 *  # export FORCE_JAVA=yes 
 * 
 
!!! ERROR: app-office/openoffice-1.1.0-r2 failed. 
!!! Function pkg_setup, Line 132, Exitcode 0 
!!! (no error message) 
============ 
 

Expected Results:  
successful emerge 

bash-2.05b# emerge info 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 
2.4.22-gentoo-r7) 
================================================================= 
System uname: 2.4.22-gentoo-r7 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58 
Automake: sys-devel/automake-1.7.7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=athlon-xp -O3 -pipe" 
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/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups doc encode esd 
foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde krb4 
libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl 
oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga 
tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-22 06:43:43 UTC
Please reemerge java-config, you should have executed 

/usr/sbin/python-updater

after upgrading python from 2.2 to 2.3