Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in "gui.sh" Script Execution on MacBook Pro M2 with macOS 14.2.1 #418

Open
Lav000 opened this issue Jan 21, 2024 · 2 comments
Open

Comments

@Lav000
Copy link

Lav000 commented Jan 21, 2024

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")
@qinliuliuqin
Copy link

Hi @Lav000 Did you solve this issue? I had the same error when running on Ubuntu.

@Harry19s
Copy link

Harry19s commented May 7, 2024

try running
visualizer_drag_gradio.py
instead of
visualizer_drag.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants