compas-dev / compas_view2

Standalone viewer for COMPAS
https://compas.dev/compas_view2/
MIT License
6 stars 8 forks source link

Error from `numpy` when instantiating `App` #162

Closed chenkasirer closed 1 year ago

chenkasirer commented 1 year ago

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

  1. Install a new conda environment with compas_view2 from conda-forge
  2. Import and create an instance of App
    from compas_view2.app import App
    _ = App()

Desktop (please complete the following information):

Licini commented 1 year ago

hi @chenkasirer , we are now releasing 0.9.1 to fix this bug, it will be published to conda-forge shortly