s-leger / archipack

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

Can not enable the add-on on macos (shader compile error) #385

Closed dkalna closed 11 months ago

dkalna commented 11 months ago

Archipack version: 2.6.0

Blender version: 3.6.5 LTS

Os version: macOS Sonoma 14.0

Description of the issue: Can not enable the add-on:

Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/3.6/scripts/modules/addon_utils.py", line 333, in enable mod = import(module_name) File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack20/init.py", line 128, in glob["archipack{}".format(sub)] = imp.importmodule(".archipack{}".format(sub), package) File "/Applications/Blender.app/Contents/Resources/3.6/python/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_manipulator.py", line 4302, in class Manipulable: File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_manipulator.py", line 4340, in Manipulable manipulable_area = GlCursorArea() File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_gl.py", line 1549, in init self.border = GlPolyline(bordercolour, d=2, n_pts=4) File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_gl.py", line 928, in init GlBaseLine.init(self, d, n_pts=n_pts) File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_gl.py", line 536, in init Gl.init(self, d) File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_gl.py", line 237, in init g_poly = GPU_Poly() File "/Users/dalibor/Library/Application Support/Blender/3.6/scripts/addons/archipack_20/archipack_gl.py", line 136, in init self.shader = gpu.types.GPUShader(line_vertSrc, line_fragSrc) Exception: Shader Compile Error, see console for more details

m-georgieff commented 11 months ago

I have the same problem!

Archipack version: 2.6.0

Blender version: 3.6.5

Os version: macOS Ventura 13.5.2

Screenshot 2023-10-24 at 23 07 50
m-georgieff commented 11 months ago

The solution:

In blender's preferences->system, alter the backend from "Metal" to "OpenGl".

Drawxcom commented 11 months ago

The solution:

In blender's preferences->system, alter the backend from "Metal" to "OpenGl".

I have the same problem, and try to follow your steps, but after, "system" i can't find the "backend" ? and "metal or OpenGl"? can you please specify ? image

s-leger commented 11 months ago

This is a mac specific issue.

dkalna commented 11 months ago

Hi there, thank you, installation worked fine with backend set to "OpenGL". May I switch back after the installation or does your plugin requieres OpenGL to work properly?

s-leger commented 11 months ago

Upcoming release will provide support for Metal and blender 4.x, until then you must keep the backend to OpenGl.

dkalna commented 11 months ago

Upcoming release will provide support for Metal and blender 4.x, until then you must keep the backend to OpenGl.

Ok, thank you for your help.

m-georgieff commented 11 months ago

Hi there, thank you, installation worked fine with backend set to "OpenGL". May I switch back after the installation or does your plugin requieres OpenGL to work properly?

What is the difference between Metal and OpenGL?