Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 938614

Summary: app-emulation/libvirt-glib-5.0.0: ModuleNotFoundError: No module named 'distutils.msvccompiler'
Product: Gentoo Linux Reporter: Anders Larsson <anders.gentoo>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: alex, anders.gentoo, g.brandl, miso.privoznik, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build logs
emerge --info

Description Anders Larsson 2024-08-28 18:26:36 UTC
Created attachment 901511 [details]
Build logs

Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 103, in <module>
    from giscanner.scannermain import scanner_main
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
    from giscanner.ast import Include, Namespace
  File "/usr/lib64/gobject-introspection/giscanner/ast.py", line 29, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 25, in <module>
    from .ccompiler import CCompiler
  File "/usr/lib64/gobject-introspection/giscanner/ccompiler.py", line 29, in <module>
    from distutils.msvccompiler import MSVCCompiler
ModuleNotFoundError: No module named 'distutils.msvccompiler'

Ebuild dev-python/setuptools-74.0.0 updated as well. Works again after downgrading it back to dev-python/setuptools-73.0.1.

Changelog for setuptools:
Deprecations and Removals
    Removed the monkeypatching of distutils._msvccompiler. Now all compiler logic is consolidated in distutils. (#4600)
    Synced with pypa/distutils@58fe058e4, including consolidating Visual Studio 2017 support (#4600, pypa/distutils#289), removal of deprecated legacy MSVC compiler modules (pypa/distutils#287), suppressing of errors when the home directory is missing (pypa/distutils#278), removal of wininst binaries (pypa/distutils#282). (#4606)
Comment 1 Anders Larsson 2024-08-28 18:27:23 UTC
Created attachment 901512 [details]
emerge --info
Comment 2 Michal Privoznik 2024-12-01 00:07:23 UTC
This smells like a dev-libs/gobject-introspection bug to me. The smell is enforced after seeing the following commit:

https://github.com/gentoo/gentoo/commit/7ad11f4f5215243e9853d6de4d12cefbdce74f51
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-01 07:28:27 UTC
(In reply to Michal Privoznik from comment #2)
> This smells like a dev-libs/gobject-introspection bug to me. The smell is
> enforced after seeing the following commit:
> 
> https://github.com/gentoo/gentoo/commit/
> 7ad11f4f5215243e9853d6de4d12cefbdce74f51

Indeed and long fixed.