Describe the bug
Cannot call Viewer or run any of the examples.
The error pops up on calling the Viewer constructor (on Anaconda terminal, Windows).
Latest Viewer installed via pip.
Minimal example below.
To Reproduce
from compas_viewer import Viewer
viewer = Viewer()
Traceback (most recent call last):
File "", line 1, in
viewer = Viewer()
File "C:\Users\xxx\miniconda3\envs\compas-dev\Lib\site-packages\compas_viewer\singleton.py", line 20, in call
instance.init(*args, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\miniconda3\envs\compas-dev\Lib\site-packages\compas_viewer\viewer.py", line 27, in init
self.config = config or Config()
~~~~~~^^
File "", line 5, in init
File "", line 3, in init
File "", line 5, in init
File "C:\Users\xxx\miniconda3\envs\compas-dev\Lib\site-packages\compas_viewer\config.py", line 59, in post_init
field_type = self.annotations[field_name]
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MenubarConfig' object has no attribute 'annotations'. Did you mean: 'annotate_func'?
Setup
- OS: Windows 11
- Python 3.14.3
- Package manager: pip
- Viewer version: 2.0.2
Describe the bug
Cannot call Viewer or run any of the examples.
The error pops up on calling the Viewer constructor (on Anaconda terminal, Windows).
Latest Viewer installed via pip.
Minimal example below.
To Reproduce
Setup