| View previous topic :: View next topic |
| Author |
Message |
scriptX n00b

Joined: 05 Jul 2005 Posts: 69
|
Posted: Fri Mar 10, 2006 3:36 am Post subject: java-config error [SOLVED] |
|
|
java-config:
| Code: | gentoo scriptx # java-config
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 |
What's the deal?
Last edited by scriptX on Fri Mar 10, 2006 3:47 am; edited 1 time in total |
|
| Back to top |
|
 |
sternklang Veteran


Joined: 10 Sep 2005 Posts: 1641 Location: Somewhere in time and space
|
Posted: Fri Mar 10, 2006 3:43 am Post subject: |
|
|
| The java-config script is written in Python. If you have updated Python recently from 2.3 to 2.4 (perhaps as part of a world update) then any Python programs that were working under 2.3 need to be updated to 2.4. As root, run python-updater which should take care of your problem. |
|
| Back to top |
|
 |
scriptX n00b

Joined: 05 Jul 2005 Posts: 69
|
Posted: Fri Mar 10, 2006 3:47 am Post subject: |
|
|
| That was it, thank you. |
|
| Back to top |
|
 |
Deathwing00 Moderator


Joined: 13 Jun 2003 Posts: 4050 Location: Barcelona, Spain
|
Posted: Fri Mar 10, 2006 10:47 pm Post subject: |
|
|
| Moved from Multimedia to Portage & Programming. |
|
| Back to top |
|
 |
xtaski Apprentice


Joined: 20 Dec 2004 Posts: 168 Location: New York, NY
|
Posted: Wed Mar 15, 2006 3:18 pm Post subject: |
|
|
| i love gentoo forums - answered my question in less time than it would take to make a support call... thanks everyone |
|
| Back to top |
|
 |
latch.r n00b


Joined: 04 Apr 2006 Posts: 31 Location: Canberra, ACT, Australia
|
Posted: Thu May 25, 2006 1:30 am Post subject: |
|
|
Running python-updater fixed this for me too.
Oh how I love the Gentoo forums! _________________ Computers are like submarines; when you open Windows they become ineffective. |
|
| Back to top |
|
 |
peakeyed n00b


Joined: 18 Nov 2004 Posts: 33
|
Posted: Tue Jun 27, 2006 1:39 pm Post subject: Re: |
|
|
fixed mine too  |
|
| Back to top |
|
 |
doobius n00b

Joined: 02 Aug 2006 Posts: 4
|
Posted: Mon Aug 07, 2006 8:42 pm Post subject: not me |
|
|
This didn't fix mine, when I run python updater I get | Code: | | * Can't determine any previous Python version(s). |
I tried emerging python again and followed the java update guide all the way through but still receive | Code: | Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config |
Also even though I install java-config-2 I receive the error at the end of the emerge | Code: | Can't list /usr/share/java-config-2/pym/java_config
Can't list /usr/share/java-config-2/pym/java_config | but the emerge completes successfully. |
|
| Back to top |
|
 |
shaumux l33t

Joined: 13 May 2005 Posts: 981 Location: Bangalore, India
|
Posted: Tue Aug 08, 2006 7:22 pm Post subject: |
|
|
Doesn't work for me
I am having a hard time because of this
Still getting
| Code: | familyPC ~ # java-config-1 -L
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config
|
and
| Code: | java-config-2 --list-available-vms
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in ?
from java_config.OutputFormatter import OutputFormatter
|
|
|
| Back to top |
|
 |
sternklang Veteran


Joined: 10 Sep 2005 Posts: 1641 Location: Somewhere in time and space
|
Posted: Tue Aug 08, 2006 7:35 pm Post subject: Re: not me |
|
|
| doobius wrote: | so even though I install java-config-2 I receive the error at the end of the emerge | Code: | Can't list /usr/share/java-config-2/pym/java_config
Can't list /usr/share/java-config-2/pym/java_config | but the emerge completes successfully. |
You should file a bug against java-config for that -- you should have that directory with various python modules in it after the emerge, so if you don't it's a bug. |
|
| Back to top |
|
 |
gbluma n00b

Joined: 06 Nov 2006 Posts: 1
|
Posted: Mon Nov 06, 2006 10:36 pm Post subject: |
|
|
@ shaumux
| shaumux wrote: | Doesn't work for me
I am having a hard time because of this
Still getting
| Code: | familyPC ~ # java-config-1 -L
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config
|
and
| Code: | java-config-2 --list-available-vms
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in ?
from java_config.OutputFormatter import OutputFormatter
|
|
I had the same problem. Seems like the system is looking at a different instance of python. This website http://dewarim.de/wms/error/java_config tipped me off to this. They suggest deleting /usr/local/bin/python*. I moved mine to a temp directory and re-emerged packages (because deleting stuff isn't particularly safe), and java-config works now.
Hope this helps. |
|
| Back to top |
|
 |
cdstealer Guru


Joined: 30 Oct 2005 Posts: 332 Location: Leeds
|
Posted: Fri Nov 24, 2006 6:50 pm Post subject: |
|
|
Cheers gbluma that has solved it for me... that is exactly what I did... thank you so much... I've been trying to solve this for a long time.
CD |
|
| Back to top |
|
 |
|