compas-dev / compas_view2

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

v120_collection.py: TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given #129

Closed nizartaha closed 11 months ago

nizartaha commented 2 years ago

Describe the bug

i installed compas_view2 in a new environment: conda create -n compas_view2 python=3.7 compas compas_view2 then i run example: v120_collection.py from compas_view2/scripts/

Traceback (most recent call last):
  File "c:/Users/nizart/Documents/Projects/compas_view2/scripts/v120_collection.py", line 22, in <module>
    spherecollection = Collection(spheres, sphere_properties)
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

it happens in example v120_vector_dynamic.py and v120_vector_interative.py

Traceback (most recent call last):
  File "c:/Users/Documents/Projects/compas_view2/scripts/v120_vector_dynamic.py", line 25, in <module>
    collection = Collection(vectors, vector_properties)
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

To Reproduce

run examples v120_collection.py , v120_vector_dynamic.py and v120_vector_interative.py from compas_view2/scripts/