Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java-config error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Fri Mar 10, 2006 3:36 am    Post subject: java-config error [SOLVED] Reply with quote

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
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Fri Mar 10, 2006 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Fri Mar 10, 2006 3:47 am    Post subject: Reply with quote

That was it, thank you.
Back to top
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4050
Location: Barcelona, Spain

PostPosted: Fri Mar 10, 2006 10:47 pm    Post subject: Reply with quote

Moved from Multimedia to Portage & Programming.
Back to top
View user's profile Send private message
xtaski
Apprentice
Apprentice


Joined: 20 Dec 2004
Posts: 168
Location: New York, NY

PostPosted: Wed Mar 15, 2006 3:18 pm    Post subject: Reply with quote

i love gentoo forums - answered my question in less time than it would take to make a support call... thanks everyone
Back to top
View user's profile Send private message
latch.r
n00b
n00b


Joined: 04 Apr 2006
Posts: 31
Location: Canberra, ACT, Australia

PostPosted: Thu May 25, 2006 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
peakeyed
n00b
n00b


Joined: 18 Nov 2004
Posts: 33

PostPosted: Tue Jun 27, 2006 1:39 pm    Post subject: Re: Reply with quote

fixed mine too :D
Back to top
View user's profile Send private message
doobius
n00b
n00b


Joined: 02 Aug 2006
Posts: 4

PostPosted: Mon Aug 07, 2006 8:42 pm    Post subject: not me Reply with quote

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
View user's profile Send private message
shaumux
l33t
l33t


Joined: 13 May 2005
Posts: 981
Location: Bangalore, India

PostPosted: Tue Aug 08, 2006 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Tue Aug 08, 2006 7:35 pm    Post subject: Re: not me Reply with quote

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
View user's profile Send private message
gbluma
n00b
n00b


Joined: 06 Nov 2006
Posts: 1

PostPosted: Mon Nov 06, 2006 10:36 pm    Post subject: Reply with quote

@ 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
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 332
Location: Leeds

PostPosted: Fri Nov 24, 2006 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum