Forums

Skip to content

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

ModuleNotFoundError: No module 'setuptools.extern' (solved)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
hedmo
Veteran
Veteran
User avatar
Posts: 1338
Joined: Sat Aug 29, 2009 1:15 pm
Location: sweden

ModuleNotFoundError: No module 'setuptools.extern' (solved)

  • Quote

Post by hedmo » Thu Dec 29, 2022 4:47 pm

hi .

after the latest update i cannot compile u-boot and getting this error :

Code: Select all

raceback (most recent call last):
  File "/home/hedmo/t30/u-boot/scripts/dtc/pylibfdt/setup.py", line 25, in <module>
    from setuptools.extern.packaging import version
ModuleNotFoundError: No module named 'setuptools.extern'
make[2]: *** [scripts/dtc/pylibfdt/Makefile:33: rebuild] Error 1
make[1]: *** [scripts/Makefile.build:398: scripts/dtc/pylibfdt] Error 2
make: *** [Makefile:2031: scripts_dtc] Error 2
I dont know what package that provide setuptools.extern and need some help.

regards hedmo
Last edited by hedmo on Fri Dec 30, 2022 5:45 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 » Thu Dec 29, 2022 5:08 pm

What package is it?
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
hedmo
Veteran
Veteran
User avatar
Posts: 1338
Joined: Sat Aug 29, 2009 1:15 pm
Location: sweden

  • Quote

Post by hedmo » Thu Dec 29, 2022 5:20 pm

fedeliallalinea wrote:What package is it?
fedeliallalinea

u-boot is from git . and to be fair i think this needs to be moved to unsupported or stay depends on how one see it..... i have done some digging and find this in setuptools :

Code: Select all

# remove the ugly */extern hack that breaks on unvendored deps
	rm -r */extern || die
	find -name '*.py' -exec sed \
		-e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \
		-i {} + || die
if i understand this correct gentoo is removing that module?. as i am updating my systems quite often and my other stuff it is sometimes
to much to follow all commits but i found this to : https://source.denx.de/u-boot/custodian ... e268180a1f

Code: Select all

from setuptools.extern.packaging import version
regards
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 » Thu Dec 29, 2022 5:40 pm

You can change line with

Code: Select all

from packaging import version 
but make sure to have installed dev-python/packaging.
For more information look this comment by another project with same problem
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
hedmo
Veteran
Veteran
User avatar
Posts: 1338
Joined: Sat Aug 29, 2009 1:15 pm
Location: sweden

  • Quote

Post by hedmo » Thu Dec 29, 2022 6:13 pm

fedeliallalinea wrote:You can change line with

Code: Select all

from packaging import version 
but make sure to have installed dev-python/packaging.
For more information look this comment by another project with same problem

fedeliallalinea


thanks . that worked . revert the commit did it to but gives warning that is quite old. but i wont mark this as solved because i need more answers why
gentoo is removing the module . like if it is just gentoo specific or something else ...

regards
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 » Thu Dec 29, 2022 7:10 pm

hedmo wrote:thanks . that worked . revert the commit did it to but gives warning that is quite old. but i wont mark this as solved because i need more answers why
gentoo is removing the module . like if it is just gentoo specific or something else ...
Add packaging and other module as extern in setuptools seems a "ugly */extern hack that breaks on unvendored deps".
Also arch linux report that in PKGBUILD of python-setuptools
# Upstream devendoring logic is badly broken, see:
# https://bugs.archlinux.org/task/58670
# https://github.com/pypa/pip/issues/5429
# https://github.com/pypa/setuptools/issues/1383
# The simplest fix is to simply rewrite import paths to use the canonical
# location in the first place
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
Post Reply

6 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