Re: Forcing python39 on M1

petr.2006 at centrum.cz petr.2006 at centrum.cz
Sat Mar 13 17:40:13 UTC 2021


I missing gimp-app more.

It asks even for python27!

pmm:~ pet$ sudo port install gimp-app
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for gimp-app
The following dependencies will be installed: 
 gimp2
 libmypaint
 libwmf
 mypaint-brushes1
 py27-cython
 py27-gobject
 py27-nose
 py27-numpy
 py27-pygtk
 py27-setuptools
 python37
 xdg-utils
Continue? [Y/n]: 
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Fetching archive for python37
--->  Attempting to fetch python37-3.7.10_0.darwin_20.arm64.tbz2 from https://packages.macports.org/python37
--->  Attempting to fetch python37-3.7.10_0.darwin_20.arm64.tbz2 from https://cph.dk.packages.macports.org/python37
--->  Attempting to fetch python37-3.7.10_0.darwin_20.arm64.tbz2 from https://lil.fr.packages.macports.org/python37
--->  Fetching distfiles for python37
Error: Failed to fetch python37: python37 cannot yet be built for Apple Silicon
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python37/python37/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gimp-app failed

Petr
______________________________________________________________
> Od: "Rainer Müller" <raimue at macports.org>
> Komu: "Peter West" <pbw at pbw.id.au>, "MacPorts Users" <macports-users at lists.macports.org>
> Datum: 13.03.2021 14:33
> Předmět: Re: Forcing python39 on M1
>
>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/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'
>
>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
>
>https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/325
>
>Your best option would be to also bump the port version to get a version
>compatible with Python 3.9.
>
>Rainer
>
>


More information about the macports-users mailing list