[MacPorts] #64318: Aseprite @1.2.30: SyntaxError: invalid syntax (was: Aseprite @1.2.30 configuration error after extraction of aseprite)
MacPorts
noreply at macports.org
Thu Dec 30 20:04:29 UTC 2021
#64318: Aseprite @1.2.30: SyntaxError: invalid syntax
--------------------------+------------------------
Reporter: RaidUpgrade | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: Aseprite |
--------------------------+------------------------
Changes (by ryandesign):
* keywords: bigsur =>
* status: assigned => accepted
Comment:
The error message from the log is:
{{{
ERROR at //gn/BUILD.gn:42:7: Script returned non-zero exit code.
exec_script("find_xcode_sysroot.py", [ "macosx" ], "trim string")
^----------
Current dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_Aseprite/Aseprite/work/skia/out/Release/
Command: python
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_Aseprite/Aseprite/work/skia/gn/find_xcode_sysroot.py
macosx
Returned 1.
stderr:
File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_Aseprite/Aseprite/work/skia/gn/find_xcode_sysroot.py",
line 13
print subprocess.check_output(['xcrun', '--sdk', sdk, '--show-sdk-
path'])
^
SyntaxError: invalid syntax
See //gn/BUILDCONFIG.gn:172:3: which caused the file to be included.
"//gn:default",
^-------------
}}}
This makes me think the find_xcode_sysroot.py script is expecting to be
run with python 2 (which is Apple's system python version) but you might
have used `port select` to select a version of python 3 as your python. I
am able to reproduce the problem if I do that.
Let me see if I can either fix the build to work with python 3 or else
convince the build to use python 2.
--
Ticket URL: <https://trac.macports.org/ticket/64318#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list