Willow Tree Not Generating In Sapling Tree Gen #100219

Closed
opened 2022-08-05 10:14:15 +02:00 by Lev Shifrin · 9 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.91

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: blender/blender@bcfdb14560
Worked: (newest version of Blender that worked as expected)

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

Short description of error
[When trying to load willow tree in Sapling Tree Gen, it gives a "Report: Error" that has something to do with Python]

Exact steps for others to reproduce the error
[Have the Sapling Tree Gen enabled in your add-ons tab. Then open up the Sapling tree gen by creating a curve and then clicking on it. Then open up the tab for Sapling Tree gen, click on "load preset", and click on willow. Then the error should pop up as it did for me.]
[Based on the default startup or an attached .blend file (as simple as possible)]
Blender Willow Error Screenshot.png

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.91 **Blender Version** Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: `blender/blender@bcfdb14560` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Sapling Tree Gen (0, 3, 4) Author: Andrew Hale (TrumanBlending), Aaron Buchler, CansecoGPC **Short description of error** [When trying to load willow tree in Sapling Tree Gen, it gives a "Report: Error" that has something to do with Python] **Exact steps for others to reproduce the error** [Have the Sapling Tree Gen enabled in your add-ons tab. Then open up the Sapling tree gen by creating a curve and then clicking on it. Then open up the tab for Sapling Tree gen, click on "load preset", and click on willow. Then the error should pop up as it did for me.] [Based on the default startup or an attached .blend file (as simple as possible)] ![Blender Willow Error Screenshot.png](https://archive.blender.org/developer/F13337326/Blender_Willow_Error_Screenshot.png)
Author

Added subscriber: @Lev-Shifrin

Added subscriber: @Lev-Shifrin
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member
Traceback (most recent call last):
  File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute
    setattr(self, a, b)
  File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float
Error: Python: Traceback (most recent call last):
  File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute
    setattr(self, a, b)
  File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float
``` Traceback (most recent call last): File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute setattr(self, a, b) File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__ return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float Error: Python: Traceback (most recent call last): File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute setattr(self, a, b) File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__ return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float ```
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Seems python 3.10 upgrade has affected this. Simple int cast will fix this. Omar could you commit it directly if you've time?

Seems python 3.10 upgrade has affected this. Simple int cast will fix this. Omar could you commit it directly if you've time?
Member

@PratikPB2123 I could, but I am not sure about the policy regarding committing simple fixes directly without review. Many of the bugs in add-on might be considered simple, so I am not sure.

@PratikPB2123 I could, but I am not sure about the policy regarding committing simple fixes directly without review. Many of the bugs in add-on might be considered simple, so I am not sure.
Member

ok

ok
Member

Closed as duplicate of #101985

Closed as duplicate of #101985
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#100219
No description provided.