Forums

Skip to content

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

[SOLVED] no python-exec wrapped executable found ...

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

[SOLVED] no python-exec wrapped executable found ...

  • Quote

Post by charles17 » Wed Mar 11, 2020 11:09 am

Playing around with python 3.6 => 3.7
Something went wrong and nothing works

Code: Select all

$ emerge --info
emerge: no python-exec wrapped executable found in /usr/lib/python-exec.
How could this be solved??
Last edited by charles17 on Wed Mar 11, 2020 11:55 am, edited 1 time in total.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Mar 11, 2020 11:30 am

python-exec is just a wrapper, you can use emerge with absolute path

Code: Select all

$ /usr/lib/python-exec/python<version>/emerge --info
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Wed Mar 11, 2020 11:55 am

Works!
Thanks for the hint
Top
mutsu
n00b
n00b
Posts: 9
Joined: Wed Sep 10, 2008 11:10 pm

  • Quote

Post by mutsu » Thu Jun 24, 2021 10:13 pm

If this is breaking a portage build, because it's being called by the build.
Emerging portage using the absolute path made it so I could run emerge -uavDN world again.
Top
r.osmanov
n00b
n00b
Posts: 29
Joined: Fri Oct 21, 2011 4:40 pm
Contact:
Contact r.osmanov
Website

  • Quote

Post by r.osmanov » Sun Jun 27, 2021 10:19 pm

Hello.

I ran into the same problem when I tried to update @world and found a workaround that I would like to share.

The usual update command:

Code: Select all

emerge -DNuUva --with-bdeps-y @world
failed compiling `gobject-introspection` with the error message similar to this:
no python-exec wrapped executable found in /usr/lib/python-exec
I used to keep the python USE flags fixed as follows:

Code: Select all

*/* -python PYTHON_SINGLE_TARGET: -* PYTHON_TARGETS: -*

dev-python/* PYTHON_TARGETS: python3_7
app-portage/* PYTHON_TARGETS: python3_7
virtual/python-* PYTHON_TARGETS: python3_7
sys-apps/portage PYTHON_TARGETS: python3_7
...
So I guess when everything moved to python 3.9, the update process screwed things up because of the fixed python3_7 targets. Then I was unable to run `emerge` directly. Thanks to this forum thread I found that I still had an `emerge` executable at /usr/lib/python-exec/python3.7/emerge. But `/usr/lib/python-exec/python3.7/emerge portage` failed because of slot conflicts on dev-python/setuptools and dev-python/setuptools_scm.

After playing with the use flags and trying to reinstall different packages including python-exec and python-exec-config I got it. After unmerging dev-python/setuptools and dev-python/setuptools_scm and then re-emerging them I was able to emerge portage!

Code: Select all

USE='python_targets_python3_9 -python_targets_python3_6 -python_targets_python3_7 -python_targets_python2_7' sudo /usr/lib/python-exec/python3.7/emerge --unmerge -a dev-python/setuptools dev-python/setuptools_scm
USE='python_targets_python3_9 -python_targets_python3_6 -python_targets_python3_7 -python_targets_python2_7' sudo /usr/lib/python-exec/python3.7/emerge -a dev-python/setuptools dev-python/setuptools_scm
sudo /usr/lib/python-exec/python3.7/emerge -a portage
------

P.S.

Damn, I almost deleted Gentoo. A 10-year Gentoo user, I'm thinking of migrating to a binary distribution like Fedora :-(
Top
Post Reply

5 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