Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pdfmerge&java-config -> eselect python unrecognized value
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kenphi
n00b
n00b


Joined: 14 Jan 2004
Posts: 7
Location: Germany

PostPosted: Wed Jun 22, 2011 2:48 pm    Post subject: pdfmerge&java-config -> eselect python unrecognized v Reply with quote

Hi all,

When I issue
Code:
pdfmerger a.pdf b.pdf out.pdf
I get the an error and no output is produced:
Code:

$ pdfmerger a.pdf b.pdf out.pdf
'eselect python show' printed unrecognized value ''
Couldn't get needed information

This happens only when I try it as normal user. As root I can happily merge pdfs -- which is obviously not satisfying on the long run.
I thought maybe it has something todo with my java-vm or python settings. The python settings seem o.k. for both normal user and root:
Code:

$ eselect python list --python2
Available Python 2 interpreters:
  [1]   python2.7 *                                                                                     
$ eselect python list --python3
Available Python 3 interpreters:                                                                                                                                                                                                 
  [1]   python3.1 *

For the java-vm I get the following output as normal user:
Code:

$ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6-bin  system-vm user-vm

... and as root ...
Code:

$ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6-bin  system-vm

But strangely, if I query for a list of vms with java-config as normal user I get similar output as with pdfmerge:
Code:

$ java-config --list-available-vms
'eselect python show' printed unrecognized value ''

As root it just shows what it should:
Code:

$ java-config --list-available-vms
The following VMs are available for generation-2:
*)      IcedTea6-bin 1.10.2 [icedtea6-bin]

I've got no clue how to solve this and how to proceed.[/code]
I'd appreciate any help!
Thanks!

Philip
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Jun 22, 2011 5:25 pm    Post subject: Reply with quote

what about running eselect python show?
AFAIK it should return your main python version.

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
kenphi
n00b
n00b


Joined: 14 Jan 2004
Posts: 7
Location: Germany

PostPosted: Wed Jun 22, 2011 9:20 pm    Post subject: Reply with quote

Hi Veldrin,

it shows the current version for both root and user.

Code:

$ eselect python show --python2
python2.7                                     
$ eselect python show --python3
python3.1                                   


I noticed one thing but I don't know whether it is relevant. Under root the python2 version is marked with an asterisk with `eselect python list` but not as user:

Code:

$ eselect python list                 # normal user
Available Python interpreters:
  [1]   python2.7
  [2]   python3.1
$ sudo eselect python list         # root
Available Python interpreters:
  [1]   python2.7 *                   # <------
  [2]   python3.1


??

Philip
Back to top
View user's profile Send private message
kenphi
n00b
n00b


Joined: 14 Jan 2004
Posts: 7
Location: Germany

PostPosted: Thu Feb 02, 2012 8:24 am    Post subject: solution Reply with quote

It took a long time during which I could mostly ignore this problem but in the end the solution was easy.

The file /etc/env.d/python/config, which is read by the python eselect module, was inaccessible for users. Changing the permission fixed the problem with the pdfmerger.

Philip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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