Error from `numpy` when instantiating `App`
chenkasirer opened this issue · 1 comments
chenkasirer commented
Describe the bug
Getting the following error when trying to instantiate compas_view2.app.App
.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\occ\lib\site-packages\compas_view2\app\app.py", line 203, in __init__
self.selector = Selector(self)
File "C:\Users\username\.conda\envs\occ\lib\site-packages\compas_view2\app\selector.py", line 67, in __init__
self.box_select_coords = np.zeros((4,), np.int)
File "C:\Users\username\.conda\envs\occ\lib\site-packages\numpy\__init__.py", line 284, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'int'
This started happening on a new environment with the latest version of numpy
installed, so this could be the issue:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
To reproduce
- Install a new conda environment with
compas_view2
fromconda-forge
- Import and create an instance of
App
from compas_view2.app import App
_ = App()
Desktop (please complete the following information):
- OS: Windows 10
- Python 3.9
numpy
version 1.24
Licini commented
hi @chenkasirer , we are now releasing 0.9.1 to fix this bug, it will be published to conda-forge shortly