Cannot import artists from compas_ghpython

Hi,
I am getting started with compas. I have installed it following the steps here: COMPAS - Installation and I also installed it for Rhino. The installation in conda was successful. When I open Grasshopper the components of compas are there but when I try to write a simple code:

import compas
from compas.datastructures import Mesh
from compas_ghpython.artists import MeshArtist

mesh = Mesh.from_obj(compas.get(‘faces.obj’))

a = MeshArtist(mesh).draw()

It throws me this error: cannot import artists from compas_ghpython
It is having problems only with artist because I have import utilities and that one is working.
Can anyone help me with this? I am using Rhino 7

hi,

judging from the documentation link you included it seems you are using version 1 of COMPAS, or at least its documentation. this version is being deprecated in favour of the newly released COMPAS 2.

i would highly recommend exploring the framework using the new release. its documentation is available here https://compas.dev/compas

hope this helps