Opened 2 years ago
Closed 2 years 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 2 years 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: | new → assigned |
| Summary: | gspell fails to compile on Sonoma 14.2.1 → gobject-introspection: ModuleNotFoundError: No module named 'distutils' |
comment:2 Changed 2 years ago by jmroot (Joshua Root)
comment:3 Changed 2 years ago by Bipodos
Installing py312-setuptools has resolved the problem for me.
comment:4 Changed 2 years ago by reneeotten (Renee Otten)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | Jimepea added |
|---|---|
| Resolution: | fixed |
| Status: | closed → reopened |
It's needed at runtime too.
Has duplicate #69111.
comment:6 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
comment:7 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
The update to 1.80.1 unfixed this; we saw this problem again on a CI build today.
comment:8 Changed 2 years ago by Christopher Nielsen <mascguy@…>
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.

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.