Forums

Skip to content

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

SOLVED python 3.12 fontforge No module named 'distutils'

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
logrusx
Advocate
Advocate
User avatar
Posts: 3533
Joined: Thu Feb 22, 2018 2:29 pm

SOLVED python 3.12 fontforge No module named 'distutils'

  • Quote

Post by logrusx » Sun Jun 02, 2024 6:33 am

I'm running update to python 3.12, 59 packages aside from the 154 reported are already emerged.

https://bpa.st/ABXA

Is this something related to the python update or a separate issue?

p.s. pay attention to the title, shorten or remove it when you replay or you'll get an error posting.

Best Regards,
Georgi
Last edited by logrusx on Tue Jun 04, 2024 11:12 am, edited 1 time in total.
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sun Jun 02, 2024 6:58 am

Yeah, it's a bug in fontforge. Please file one on bugs.gentoo.org. We need to pull in https://github.com/fontforge/fontforge/pull/5423[b][/b].
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3533
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Sun Jun 02, 2024 7:10 am

Thanks Sam! I see you're already on it, but for the record: https://bugs.gentoo.org/933392

Best Regards,
Georgi
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sun Jun 02, 2024 7:29 am

Thank you! :)
Top
lefou
Apprentice
Apprentice
Posts: 207
Joined: Wed Feb 18, 2004 10:11 pm
Location: Germany, Lusatia
Contact:
Contact lefou
Website

  • Quote

Post by lefou » Thu Jun 13, 2024 9:56 pm

Looks like installation of media-libs/vigra-1.11.1-r9:0 with Python 3.12 suffers from the same issue.

Code: Select all

-- Checking VIGRANUMPY_DEPENDENCIES
-- Using Python 3.12.3 at /var/tmp/portage/media-libs/vigra-1.11.1-r9/temp/python3.12/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
-- Could NOT find Python includes
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
-- Could NOT find Python library
-- Found boost_python library: /usr/lib64/libboost_python312.so
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
CMake Error at config/FindVIGRANUMPY_DEPENDENCIES.cmake:146 (FILE):
  FILE FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
  exactly three arguments.
Call Stack (most recent call first):
  CMakeLists.txt:189 (FIND_PACKAGE)


CMake Error at config/FindVIGRANUMPY_DEPENDENCIES.cmake:152 (FILE):
  FILE RELATIVE_PATH called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:189 (FIND_PACKAGE)


Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy.distutils'
-- Could NOT find Python numpy ('import numpy.distutils.misc_util' failed)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'nose'
Top
lefou
Apprentice
Apprentice
Posts: 207
Joined: Wed Feb 18, 2004 10:11 pm
Location: Germany, Lusatia
Contact:
Contact lefou
Website

  • Quote

Post by lefou » Thu Jun 13, 2024 10:12 pm

Looks like I could "fix" it by forcing the installation of dev-python/setuptools with --nodeps.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3533
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jun 14, 2024 5:00 am

lefou wrote:Looks like I could "fix" it by forcing the installation of dev-python/setuptools with --nodeps.
It only looks that way: https://bugs.gentoo.org/929649

First, when you have such a problem you file a bug. You don't hijack a threads, especially if it's marked solved. It may not attract attention to your problem. Open a new thread.

Now about the issue. Portage dependency graph only reflects dependencies between packages. It'll only tell you if a package is going to compile. If you force it to disregard it's own dependency database, it won't magically satisfy a package's dependencies. It'll just tell you "OK, I give up, you're in charge whatever happens" and will start the compilation. If it succeeds with unsatisfied dependencies, that's a bug. Somewhere unnecessary dependency is declared. However this was not the case. You just synced shortly after astrum's commit.

Best Regards,
Georgi
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Jun 14, 2024 7:00 am

I think there might be a genuine issue left with vigra. I'll look now.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3533
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jun 14, 2024 7:29 am

sam_ wrote:I think there might be a genuine issue left with vigra. I'll look now.
Thanks for checking in. However I don't see how --nodeps would solve the original issue. If it did without the ebuild changing, it would have been a bug.

Best Regards,
Georgi
Top
lefou
Apprentice
Apprentice
Posts: 207
Joined: Wed Feb 18, 2004 10:11 pm
Location: Germany, Lusatia
Contact:
Contact lefou
Website

  • Quote

Post by lefou » Fri Jun 14, 2024 7:47 am

I used --nodeps to install setuptools since that is the package that provided the distutils application. I think vigra was about to be installed as part of a Python 3.11 -> 3.12 update, and the setuptools package wasn't already merged for the newer Python version. Could be an undeclared build time dependency?

Sorry for hijacking the solved topic. :oops:
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Jun 14, 2024 8:06 am

You're both right.

The issue at hand is that distutils was removed from Python 3.12 (it used to be in the stdlib), but setuptools can provide it as a compatibility hack for now. So, the ebuild either has to depend on setuptools (technically just for >=py3.12), or patch out the use of distutils. I went for the latter. Thank you!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3533
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jun 14, 2024 9:00 am

lefou wrote:I used --nodeps to install setuptools since that is the package that provided the distutils application. I think vigra was about to be installed as part of a Python 3.11 -> 3.12 update, and the setuptools package wasn't already merged for the newer Python version. Could be an undeclared build time dependency?
Sorry, I missed you mentioned setuptools. I have the tendency to miss tings :)

So both our concerns were addressed by Sam.

Thank you Sam!
lefou wrote:Sorry for hijacking the solved topic. :oops:
I don't mind and I might not have had to use the word hijacking. Since English is not my first language, I often don't think of how strong a word sounds and also its other meanings. To me it's just a term, while it bears certain negative charge in English, which is a bit too strong for the situation. My main concern was it's a better way to get help to open a new thread with the particular issue at hand.

Best Regards,
Georgi
Top
Post Reply

12 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