Hello. Just trying out the COMPAS v2 by following the docs and hit an error on the very first steps.
I don’t see where it went wrong (according to the documentation):
$ conda create -n compas-2 -c conda-forge python=3.10 compas
$ conda activate compas-2
$ python a_simple_box.py
Error:
Traceback (most recent call last):
File "~/a_simple_box.py", line 8, in <module>
scene.draw()
File "~/Applications/miniconda3/envs/compas-2/lib/python3.10/site-packages/compas/scene/scene.py", line 131, in draw
raise ValueError("No context detected.")
ValueError: No context detected.
a_simple_box.py
from compas.geometry import Box
from compas.scene import Scene
box = Box(1, 1, 1)
scene = Scene()
scene.add(box)
scene.draw()
I share this because I don’t want anybody to turn away from compas while following the docs to get started; as I think it’s a fantastic project on which I built my research !