Forcing python39 on M1

Peter West pbw at pbw.id.au
Fri Mar 12 11:16:13 UTC 2021


Attached please find the end of the log.
—
pbw at ehealth.id.au
“But if it is by the finger of God that I cast out demons, then the kingdom of God has come upon you.”

> On 12 Mar 2021, at 7:36 pm, Peter West <pbw at pbw.id.au> wrote:
> 
> Having heard that python39 is the only one (so far) to compile natively on M1, I’m trying to force the python ports I use to python39, by creating a local repo and modifying the Portfiles.
> 
> I ran intoa brick wall with gexiv2, which was because the g-ir-* python files were specifying python38. I tried building gobject-introspection with 39, but fails. I don’t know whether I can classify this as a bug and make a report. In any case, has anyone else been tinkering with python39 builds on M1?

:info:build g-ir-scanner: GLib: warning: 627 warnings suppressed (use --warn-all to see them)
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/var/macports/build/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2/./g-ir-scanner", line 99, in <module>
:info:build     sys.exit(scanner_main(sys.argv))
:info:build   File "./giscanner/scannermain.py", line 615, in scanner_main
:info:build     write_output(data, options)
:info:build   File "./giscanner/scannermain.py", line 469, in write_output
:info:build     passthrough_gir(main_f_name, temp_f)
:info:build   File "./giscanner/scannermain.py", line 260, in passthrough_gir
:info:build     parser.parse(path)
:info:build   File "./giscanner/girparser.py", line 60, in parse
:info:build     self.parse_tree(tree)
:info:build   File "./giscanner/girparser.py", line 69, in parse_tree
:info:build     self._parse_api(tree.getroot())
:info:build   File "./giscanner/girparser.py", line 106, in _parse_api
:info:build     for node in root.getchildren():
:info:build AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
:info:build make[2]: *** [GLib-2.0.gir] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch arm64" V=1
:info:build Exit code: 2
:error:build Failed to build gobject-introspection: command execution failed
:debug:build Error code: CHILDSTATUS 35231 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_Users_pbw_Software_ports_gnome_gobject-introspection/gobject-introspection/main.log for details.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20210312/bb662951/attachment.htm>


More information about the macports-users mailing list