Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235870 - java-config fails with "ImportError: No module named java_config_2"
Summary: java-config fails with "ImportError: No module named java_config_2"
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 08:10 UTC by roma1390
Modified: 2009-11-04 21: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 roma1390 2008-08-27 08:10:29 UTC
I started as user (not root)

 $ java-config -l

And got output:

 Traceback (most recent call last):
   File "/usr/bin/java-config-2", line 8, in <module>
     from java_config_2 import __version__
 ImportError: No module named java_config_2

I have isntalled these java related packages:

$ qlist -I | grep java
dev-java/ant
dev-java/ant-core
dev-java/jai-bin
dev-java/java-config
dev-java/java-config
dev-java/java-config-wrapper
dev-java/sun-jai-bin
dev-java/sun-jce-bin


Reproducible: Always

Steps to Reproduce:
Comment 1 C.Wente 2008-08-27 10:02:51 UTC
re-emerge java-config after your python upgrade to make it work again
See bug 230703
Comment 2 roma1390 2008-08-27 10:43:59 UTC
this work around works
Comment 3 PetaMem R&D 2009-04-27 06:31:42 UTC
I confirm this fix (reemerging java-config after python update) as working. Although it probably would have been more user friendly to include java-config in the dependencies to make it emerge before any java stuff in this case.
Comment 4 Chris Gianelloni 2009-05-15 21:21:32 UTC
There's a reason that Python tells you to run python-updater... ;]
Comment 5 Sergio 2009-08-03 11:16:06 UTC
The workaround works, but the python-updater command does not re-emerge java-config (form me).
emerge -1 java-config and it's ok.
Comment 6 Bart Van Loon 2009-09-14 10:19:41 UTC
(In reply to comment #5)
> The workaround works, but the python-updater command does not re-emerge
> java-config (form me).
> emerge -1 java-config and it's ok.

exactly. I just encountered the same problem (couldn't run freemind after a Python upgrade).

I ran python-updater, it re-emerged a lot of stuff, but apparently not java-config.

the proposed solution works fine, however.
Comment 7 Greg Trigg 2009-11-04 21:58:14 UTC
Same problem for me, python-updater didn't get it.  Had to re-emerge it myself.