Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem: unmerged python-exec [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
max_1975
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Fri Oct 25, 2002 7:42 am

Problem: unmerged python-exec [SOLVED]

  • Quote

Post by max_1975 » Tue Nov 11, 2014 11:41 am

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
Last edited by max_1975 on Tue Nov 11, 2014 5:12 pm, edited 1 time in total.
Max
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

Re: Problem: unmerged python-exec

  • Quote

Post by steveL » Tue Nov 11, 2014 12:15 pm

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 [post=4671467]this post[/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 [post=7165614]use FEATURES=buildpkg[/post] in future. ;)

[post=7358388]This post[/post] covers similar situations; you'll see the common denominator is binpkgs; having them built as you go, enables rollback at any point.
Top
max_1975
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Fri Oct 25, 2002 7:42 am

Re: Problem: unmerged python-exec

  • Quote

Post by max_1975 » Tue Nov 11, 2014 2:57 pm

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 [post=4671467]this post[/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 [post=7165614]use FEATURES=buildpkg[/post] in future. ;)

[post=7358388]This post[/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: Select all

sudo emerge -K dev-lang/python-exec
I obtain the following error

Code: Select all

>>> 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
Top
dol-sen
Retired Dev
Retired Dev
User avatar
Posts: 2805
Joined: Sun Jun 30, 2002 2:44 pm
Location: Richmond, BC, Canada

  • Quote

Post by dol-sen » Tue Nov 11, 2014 3:48 pm

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: Select all

/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...
Top
max_1975
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Fri Oct 25, 2002 7:42 am

  • Quote

Post by max_1975 » Tue Nov 11, 2014 5:12 pm

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: Select all

/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
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Sat Aug 22, 2015 5:59 am

dol-sen wrote:...

Code: Select all

/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
Top
nickel
Apprentice
Apprentice
User avatar
Posts: 192
Joined: Fri Oct 21, 2005 5:27 pm
Location: Germany

  • Quote

Post by nickel » Sun Sep 06, 2015 5:04 pm

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: Select all

/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?
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sun Sep 06, 2015 7:31 pm

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
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic