Opened 10 months ago

Closed 7 months ago

#69105 closed defect (fixed)

gobject-introspection: ModuleNotFoundError: No module named 'distutils'

Reported by: Bipodos Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: remkos (Remko Scharroo), Jimepea
Port: gobject-introspection

Description

The compile process breaks. Compile log reads:

:info:build   File "/opt/local/lib/gobject-introspection/giscanner/utils.py", line 385, in <module>
:info:build     import distutils.cygwinccompiler
:info:build ModuleNotFoundError: No module named 'distutils'
:info:build make[4]: *** [Gspell-1.gir] Error 1
:info:build make[4]: Leaving directory 

Several attempts, including reinstalling python, give the same message in the log.

Change History (8)

comment:1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: remkos added
Keywords: gspell distutils removed
Milestone: MacPorts 2.9.0
Owner: set to mascguy
Port: gobject-introspection added; gspell removed
Status: newassigned
Summary: gspell fails to compile on Sonoma 14.2.1gobject-introspection: ModuleNotFoundError: No module named 'distutils'

Ok, so after switching gobject-introspection to Python 3.12 it now needs a separate dependency on py312-setuputils (or some other solution) since distutils is no longer included. Similar to #69036.

comment:3 Changed 10 months ago by Bipodos

Installing py312-setuptools has resolved the problem for me.

comment:4 Changed 10 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In 2be3d4c59e9c898d9a5302d4f85bde853bfab4fb/macports-ports (master):

gobject-introspection: add setuptools dependency

Closes: #69105

comment:5 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: Jimepea added
Resolution: fixed
Status: closedreopened

It's needed at runtime too.

Has duplicate #69111.

comment:6 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

In 38f95ce8a9da2d1f66b1de997ac7795be1b5ec3f/macports-ports (master):

gobject-introspection: setuptools is needed at runtime

Closes: #69105

comment:7 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

The update to 1.80.1 unfixed this; we saw this problem again on a CI build today.

comment:8 Changed 7 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: reopenedclosed

In 27232840c3a17c40c3b3237b0b1113ddd2d8b250/macports-ports (master):

gobject-introspection{,-devel}: revert to 1.78.1

See: #69748
Fixes: #69105

Note: See TracTickets for help on using tickets.