Forcing python39 on M1

Peter West pbw at
Sat Mar 13 14:30:41 UTC 2021

Thanks Rainer.

Pardon my ignorance, but could you elaborate on “bump the port version” please? I assume that will have ramifications for all the dependents as well.

pbw at
“Two men went up into the temple to pray, one a Pharisee and the other a tax collector.”

> On 13 Mar 2021, at 11:32 pm, Rainer Müller <raimue at> wrote:
> On 12/03/2021 12.16, Peter West wrote:
>>> 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/", line 615, in scanner_main
>> :info:build     write_output(data, options)
>> :info:build   File "./giscanner/", line 469, in write_output
>> :info:build     passthrough_gir(main_f_name, temp_f)
>> :info:build   File "./giscanner/", line 260, in passthrough_gir
>> :info:build     parser.parse(path)
>> :info:build   File "./giscanner/", line 60, in parse
>> :info:build     self.parse_tree(tree)
>> :info:build   File "./giscanner/", line 69, in parse_tree
>> :info:build     self._parse_api(tree.getroot())
>> :info:build   File "./giscanner/", line 106, in _parse_api
>> :info:build     for node in root.getchildren():
>> :info:build AttributeError: 'xml.etree.ElementTree.Element' object has no
>> attribute 'getchildren'
> This specific method had been deprecated for a while and was eventually removed
> in Python 3.9. It is a known problem at upstream that has already been fixed.
> The fix would be included in gobject-introspection >= 1.65.0
> Your best option would be to also bump the port version to get a version
> compatible with Python 3.9.
> Rainer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list