Page MenuHome

Sapling Addon now broken because of "SPDX-License-Identifier" header
Closed, ResolvedPublic


System Information
Operating system: Linux-5.16.9-arch1-1-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.54

Blender Version
Broken: version: 3.2.0 Alpha, branch: makepkg (modified), commit date: 2022-02-17 12:14, hash: rB433fad50d859
Worked: Probably before the commit

Addon Information
Name: Sapling Tree Gen (0, 3, 4)
Author: Andrew Hale (TrumanBlending), Aaron Buchler, CansecoGPC

Short description of error
Python: "SyntaxError: invalid syntax" on adding tree

Exact steps for others to reproduce the error
View3D -> Add -> Curve -> Sapling Tree Gen

This commit added a new first line into Diff

The addon code on line 185 ( now reads the comment: SPDX-License-Identifier: GPL-2.0-or-later from file blender/3.2/scripts/addons/add_curve_sapling/presets/ instead of the prior JSON string, which fails at the ast parser.


location: /usr/share/blender/3.2/scripts/modules/bpy/
Error: Python: Traceback (most recent call last):
  File "/usr/share/blender/3.2/scripts/addons/add_curve_sapling/", line 188, in execute
    settings = ast.literal_eval(settings)
  File "/usr/lib/python3.10/", line 62, in literal_eval
    node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
  File "/usr/lib/python3.10/", line 50, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 1
    # SPDX-License-Identifier: GPL-2.0-or-later
SyntaxError: invalid syntax

Related Objects