Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem: unmerged python-exec [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
max_1975
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2002
Posts: 93

PostPosted: Tue Nov 11, 2014 11:41 am    Post subject: Problem: unmerged python-exec [SOLVED] Reply with quote

Hello,

I have made a big mistake because I have unmerged python-exec and now emerge is not working anymore...
I have tried to find some docs for solving this issue but with no luck.

Anyone had the same issue before? Any suggestion in order to solve it?

Thank you very much,
Max
_________________
Max


Last edited by max_1975 on Tue Nov 11, 2014 5:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Tue Nov 11, 2014 12:15 pm    Post subject: Re: Problem: unmerged python-exec Reply with quote

max_1975 wrote:
I have made a big mistake because I have unmerged python-exec and now emerge is not working anymore...
Any suggestion in order to solve it?

Follow the steps in the second half of this post replacing python with python-exec; for instance there's a 2.0.1-r1 currently in Patrick's tinderbox. (You shouldn't need to symlink anything.)

And use FEATURES=buildpkg in future. ;)

This post covers similar situations; you'll see the common denominator is binpkgs; having them built as you go, enables rollback at any point.
Back to top
View user's profile Send private message
max_1975
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2002
Posts: 93

PostPosted: Tue Nov 11, 2014 2:57 pm    Post subject: Re: Problem: unmerged python-exec Reply with quote

steveL wrote:
max_1975 wrote:
I have made a big mistake because I have unmerged python-exec and now emerge is not working anymore...
Any suggestion in order to solve it?

Follow the steps in the second half of this post replacing python with python-exec; for instance there's a 2.0.1-r1 currently in Patrick's tinderbox. (You shouldn't need to symlink anything.)

And use FEATURES=buildpkg in future. ;)

This post covers similar situations; you'll see the common denominator is binpkgs; having them built as you go, enables rollback at any point.


Thank you for the suggesition.

I have downoaded python-exec from Patrick's tinderbox and now I can run emerge,
but when I try to run
Code:
sudo emerge -K dev-lang/python-exec

I obtain the following error

Code:
>>> Emerging binary (1 of 1) dev-lang/python-exec-2.0.1-r1::gentoo
 * python-exec-2.0.1-r1.tbz2 size ;-) ...                                [ ok ]
[dev-lang/python-exec-2.0.1-r1] bash: /usr/lib/portage/python2.7/ebuild.sh: No such file or directory
/bin/bash: /usr/lib/portage/python2.7/misc-functions.sh: No such file or directory
 * The ebuild phase 'die_hooks' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.

>>> Failed to emerge dev-lang/python-exec-2.0.1-r1, Log file:

>>>  '/var/tmp/portage/dev-lang/python-exec-2.0.1-r1/temp/build.log'

 * Messages for package dev-lang/python-exec-2.0.1-r1:



:cry:
_________________
Max
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Nov 11, 2014 3:48 pm    Post subject: Reply with quote

It sounds like you are using portage-2.2.14 which now uses python-exec. Older versions of portage did not.

You should be able to run emerge still, you just have to modify your emerge call to call a specific python version of it.

eg:
Code:
/usr/lib/python-exec/python2.7/emerge
Just modify the python2.7 to a known version you have it installed to.

With that you should be able to emerge python-exec normally.
Another advantage of this new install methood is if one version of portage gets trashed. If you have it installed to other versions, you will have an (hopefully) untouched working version still.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
max_1975
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2002
Posts: 93

PostPosted: Tue Nov 11, 2014 5:12 pm    Post subject: Reply with quote

dol-sen wrote:
It sounds like you are using portage-2.2.14 which now uses python-exec. Older versions of portage did not.

You should be able to run emerge still, you just have to modify your emerge call to call a specific python version of it.

eg:
Code:
/usr/lib/python-exec/python2.7/emerge
Just modify the python2.7 to a known version you have it installed to.

With that you should be able to emerge python-exec normally.
Another advantage of this new install methood is if one version of portage gets trashed. If you have it installed to other versions, you will have an (hopefully) untouched working version still.


I solved the issue, but I had to manually install the portage-2.2.8-r2 and then re-emerge python-exec.

Thank you very much!
_________________
Max
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Sat Aug 22, 2015 5:59 am    Post subject: Reply with quote

dol-sen wrote:
...
Code:
/usr/lib/python-exec/python2.7/emerge
Just modify the python2.7 to a known version you have it installed to.


Thanks, that helped.
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
nickel
Apprentice
Apprentice


Joined: 21 Oct 2005
Posts: 192
Location: Germany

PostPosted: Sun Sep 06, 2015 5:04 pm    Post subject: Reply with quote

dol-sen wrote:
It sounds like you are using portage-2.2.14 which now uses python-exec. Older versions of portage did not.

You should be able to run emerge still, you just have to modify your emerge call to call a specific python version of it.

eg:
Code:
/usr/lib/python-exec/python2.7/emerge
Just modify the python2.7 to a known version you have it installed to.

With that you should be able to emerge python-exec normally.
Another advantage of this new install methood is if one version of portage gets trashed. If you have it installed to other versions, you will have an (hopefully) untouched working version still.


i know, it's been 4 years. But i raan in the same problem.
how do you do that?
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3637

PostPosted: Sun Sep 06, 2015 7:31 pm    Post subject: Reply with quote

Never ran into it myself, but I'd start with eselect:
`eselect python list` to check what you have available
`eselect python set <N>` to use one
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