[MacPorts] #71745: glib2 @2.78.4_1: build error: ModuleNotFoundError: No module named 'packaging'

MacPorts noreply at macports.org
Sat Jan 4 02:14:59 UTC 2025


#71745: glib2 @2.78.4_1: build error: ModuleNotFoundError: No module named
'packaging'
--------------------+--------------------
 Reporter:  kencu   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  glib2
--------------------+--------------------
 {{{
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build"
 && /opt/local/bin/ninja -j12 --verbose -v
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build"
 && /opt/local/bin/ninja -j12 --verbose -v
 :info:build [1/1332] /usr/bin/clang -Iglib/libcharset/libcharset.a.p
 -Iglib/libcharset -I../glib-2.78.4/glib/libcharset -I. -I../glib-2.78.4
 -I/opt/local/include -fvisibility=hidden -fdiagnostics-color=always
 -std=gnu99 -O2 -g -D_GNU_SOURCE -fno-strict-aliasing
 -DG_DISABLE_CAST_CHECKS -Wimplicit-fallthrough -Wmissing-field-
 initializers -Wnonnull -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-
 format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self
 -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result
 -Wstrict-prototypes -Wno-bad-function-cast -Wno-declaration-after-
 statement -Werror=implicit-function-declaration -Werror=missing-prototypes
 -Werror=pointer-sign -Wno-string-plus-int -pipe -Os -fstrict-aliasing
 -Wno-deprecated-declarations -arch x86_64
 '-DGLIB_CHARSETALIAS_DIR="/opt/local/lib"' -MD -MQ
 glib/libcharset/libcharset.a.p/localcharset.c.o -MF
 glib/libcharset/libcharset.a.p/localcharset.c.o.d -o
 glib/libcharset/libcharset.a.p/localcharset.c.o -c
 ../glib-2.78.4/glib/libcharset/localcharset.c
 :info:build [2/1332]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/glib-2.78.4/tools
 /gen-visibility-macros.py 2.78.4 visibility-macros GLIB glib/glib-
 visibility.h
 :info:build [3/1332]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/glib-2.78.4/tools
 /gen-visibility-macros.py 2.78.4 visibility-macros GOBJECT gobject
 /gobject-visibility.h
 :info:build [4/1332]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/glib-2.78.4/tools
 /gen-visibility-macros.py 2.78.4 versions-macros
 ../glib-2.78.4/glib/gversionmacros.h.in glib/gversionmacros.h
 :info:build [5/1332] /usr/bin/clang -Igio/xdgmime/libxdgmime.a.p
 -Igio/xdgmime -I../glib-2.78.4/gio/xdgmime -I. -I../glib-2.78.4
 -I/opt/local/include -fvisibility=hidden -fdiagnostics-color=always
 -std=gnu99 -O2 -g -D_GNU_SOURCE -fno-strict-aliasing
 -DG_DISABLE_CAST_CHECKS -Wimplicit-fallthrough -Wmissing-field-
 initializers -Wnonnull -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-
 format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self
 -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result
 -Wstrict-prototypes -Wno-bad-function-cast -Wno-declaration-after-
 statement -Werror=implicit-function-declaration -Werror=missing-prototypes
 -Werror=pointer-sign -Wno-string-plus-int -pipe -Os -fstrict-aliasing
 -Wno-deprecated-declarations -arch x86_64 -DHAVE_CONFIG_H
 -DXDG_PREFIX=_gio_xdg -MD -MQ gio/xdgmime/libxdgmime.a.p/xdgmimealias.c.o
 -MF gio/xdgmime/libxdgmime.a.p/xdgmimealias.c.o.d -o
 gio/xdgmime/libxdgmime.a.p/xdgmimealias.c.o -c
 ../glib-2.78.4/gio/xdgmime/xdgmimealias.c
 :info:build [6/1332]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/glib-2.78.4/tools
 /gen-visibility-macros.py 2.78.4 visibility-macros GIO gio/gio-
 visibility.h
 :info:build [7/1332]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/glib-2.78.4/tools
 /gen-visibility-macros.py 2.78.4 visibility-macros GMODULE gmodule
 /gmodule-visibility.h
 :info:build [8/1332]
 /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
 gio/gdbus-2.0/codegen/gdbus-codegen --interface-prefix org. --output-
 directory gio --generate-c-code gdbus-daemon-generated --c-namespace _G
 ../glib-2.78.4/gio/dbus-daemon.xml
 :info:build FAILED: gio/gdbus-daemon-generated.h gio/gdbus-daemon-
 generated.c
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
 gio/gdbus-2.0/codegen/gdbus-codegen --interface-prefix org. --output-
 directory gio --generate-c-code gdbus-daemon-generated --c-namespace _G
 ../glib-2.78.4/gio/dbus-daemon.xml
 :info:build Traceback (most recent call last):
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build/gio/gdbus-2.0/codegen
 /gdbus-codegen", line 53, in <module>
 :info:build     from codegen import codegen_main
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build/gio/gdbus-2.0/codegen/codegen_main.py",
 line 29, in <module>
 :info:build     from . import dbustypes
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build/gio/gdbus-2.0/codegen/dbustypes.py",
 line 22, in <module>
 :info:build     from . import utils
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build/gio/gdbus-2.0/codegen/utils.py",
 line 22, in <module>
 :info:build     import packaging.version
 :info:build ModuleNotFoundError: No module named 'packaging'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71745>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list