Error in "gui.sh" Script Execution on MacBook Pro M2 with macOS 14.2.1
Lav000 opened this issue · comments
Lav000 commented
There appears to be an error when running the "gui.sh" script with a specific argument on a MacBook Pro M2 with macOS 14.2.1 (23C71), leading to an issue in the execution of the "visualizer_drag.py" Python script.
The "gui.sh" script was executed :
sh scripts/gui.sh
The error occurred during the execution of the "visualizer_drag.py" :
File "/DragGAN/visualizer_drag.py", in <module>
main()
The error is caused by a GLError exception, indicating an invalid operation in the OpenGL library:
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGetUniformLocation,
cArguments = (1, b'Texture\x00'),
result = -1
)
File "/miniforge3/lib/python3.10/site-packages/imgui/integrations/opengl.py", line 108, in _create_device_objects
self._attrib_location_tex = gl.glGetUniformLocation(self._shader_handle, "Texture")
Tailor Sahil commented
try running
visualizer_drag_gradio.py
instead of
visualizer_drag.py