compas-dev / compas-dev/compas_viewer
`invalid enumerant` error (1280) in glClearColor after calling `viewer.show()`
- Dominant language
- Python
- Stars
- 12
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Experiencing the following error with a fresh install of mamba/compas_occ/compas_viewer on macOS.
```
(occ313) chenkasirer@staff-net-hix-2055 compas_occ % python docs/examples/breps/brep_from_booleans.py
Traceback (most recent call last):
File "/Users/chenkasirer/repos/GKR/compas_viewer/src/compas_viewer/renderer/renderer.py", line 226, in initializeGL
GL.glClearColor(*self.viewer.config.renderer.backgroundcolor.rgba)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenkasirer/.local/share/mamba/envs/occ313/lib/python3.13/site-packages/OpenGL/platform/baseplatform.py", line 487, in __call__
return self(*args, **named)
File "/Users/chenkasirer/.local/share/mamba/envs/occ313/lib/python3.13/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
...<4 lines>...
)
OpenGL.error.GLError: GLError(
err = 1280,
description = b'invalid enumerant',
baseOperation = glClearColor,
cArguments = (1.0, 1.0, 1.0, 1.0)
)
```
**To Reproduce**
Steps to reproduce the behavior:
Here using one of the compas_occ brep examples, but any call to `Viewer().show()` would trigger this.
**Desktop (please complete the following information):**
- OS: macOS
- Python version 3.13
- Python package manager `mamba` from `miniforge`.
**Additional context**
```
(occ313) chenkasirer@staff-net-hix-2055 compas_occ % python -c "import compas_viewer; print(compas_viewer.__version__)"
2.0.1
```
Contributor guide
Assessment
This issue has not been assessed yet.