compas-dev / compas-dev/compas_viewer
Error on calling Viewer() (Windows)
- Dominant language
- Python
- Stars
- 12
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.