patriciogonzalezvivo / comfyui_glslnodes

GLSL node for ComfyUI
GNU General Public License v3.0
183 stars 14 forks source link

ValueError: Cannot find supported backend: 'cgl' #8

Closed pookzzz closed 3 months ago

pookzzz commented 4 months ago

I had a fresh install of comfyUI using pinokio on a Mac M3 and I encountered this traceback:

Traceback (most recent call last): File "/Users/user/pinokio/api/comfyui.git/app/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/Users/user/pinokio/api/comfyui.git/app/execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/Users/user/pinokio/api/comfyui.git/app/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/Users/user/pinokio/api/comfyui.git/app/custom_nodes/comfyui_glslnodes/glsl_uniforms.py", line 32, in main context = Context() File "/Users/user/pinokio/api/comfyui.git/app/custom_nodes/comfyui_glslnodes/glsl_context.py", line 18, in init self.ctx = moderngl.create_context( File "/Users/user/pinokio/api/comfyui.git/app/env/lib/python3.10/site-packages/moderngl/init.py", line 1936, in create_context ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, settings) File "/Users/user/pinokio/api/comfyui.git/app/env/lib/python3.10/site-packages/glcontext/init.py", line 51, in get_backend_by_name raise ValueError("Cannot find supported backend: '{}'".format(name)) ValueError: Cannot find supported backend: 'cgl'

patriciogonzalezvivo commented 4 months ago

Hi @pookzzz! thanks for reporting this. I just push a change to see if it fixes (I'm using this in my linux machine, so not sure if it will work). Do you mind manually pulling the last changes? By in the terminal doing

cd ComfyUI/custom_nodes/comfyui_glslnodes
git pull

Thank you

pookzzz commented 4 months ago

Hi Patricio, I pulled and I can get it to work with version 100, but 120 and 130 gives me this error

Screenshot 2024-07-26 at 11 34 59 AM
patriciogonzalezvivo commented 4 months ago

what about 300 core and above? You may need to create the glslEditor nodes again because the old one were constructed with a previous version