s-leger / archipack

Archipack for blender 2.79
https://blender-archipack.org
GNU General Public License v3.0
357 stars 49 forks source link

Blender 3.0 breaks Archipack 2.3.6 addon presets #281

Open geofizzydrink opened 2 years ago

geofizzydrink commented 2 years ago

Archipack version: 2.3.6

Blender version: 3.0

Os version: Ubuntu 20.04

Description of the issue:

Blender just autoupdated last night from 2.9.3 to 3.0. I am now getting an error everytime I try to create an Archipack object that opens a preset popup window to select the object style.

I've tested this with every archipack object that this is a requirement for (e.g. wall, window, door,roof,etc...) and they all throw the same error message:

Python: Traceback (most recent call last): File "/home/matthew/.config/blender/3.0/scripts/addons/archipack_20/archipack_preset.py", line 477, in invoke self.menu = PresetMenu(context, self.preset_subdir) File "/home/matthew/.config/blender/3.0/scripts/addons/archipack_20/archipack_preset.py", line 299, in init _icons = icons.menuitems(category, format) File "/home/matthew/.config/blender/3.0/scripts/addons/archipack_20/archipack_iconmanager.py", line 369, in menuitems self.load_presets(category, format) File "/home/matthew/.config/blender/3.0/scripts/addons/archipack_20/archipack_iconmanager.py", line 260, in load_presets folders = bpy.utils.script_paths("presets") TypeError: script_paths() takes 0 positional arguments but 1 was given

location: : - 1

Everything was working in Blender 2.9.3 and all I have done was to copy my 2.9.3 configs across to 3.0.

Also, in the addon config (under Preferences) I have set the "Material Library" to "/home/matthew/.config/blender/3.0/scripts/addons/archipack_20/presets/" archipack-2 3 6-error-Blender3 0

s-leger commented 2 years ago

Archipack 2.3.6 is not compatible with blender 3.0 Fortunately there is a beta 2.3.95 (to be released soon) providing new features and blender 3.0 compatibility. Request your download link using https://blender-archipack.org/archipack/beta

geofizzydrink commented 2 years ago

Great Thanks! I figured, based on the error message, that there had been a "breaking" change with Blender 3.0 that would require some refactoring.

I'll check out the 2.3.95 beta version and see how I go.

MohamedMamdouh98 commented 2 years ago

Oh thank god that beta version is working so far, I was so freaking out because I use it archipak on daily basis. thank you Stephen

miarchimi commented 2 years ago

I have the same problem with my Apple M1. Sadly the bata 2.3.95 is also not working in my Mac :-(

Image1 Image2
s-leger commented 2 years ago

Setup, restart blender, then enable the addon.

miarchimi commented 2 years ago

OK, thank's restart of blender did help. Now it's running.