Installation to grasshopper

Hello,

I am a researcher working on shotcrete extrusion. I am having a minor hiccup in installing compas in grasshopper/rhino 8: The modules have the labeling “old” and the error “1. Solution exception:No module named compas”.

I have checked once more the dependencies, this is what I have:

Anaconda Environment:

I have set up an environment using Anaconda, and all installations, along with verification steps (except for the one witin Rhino 8 script editor), have been conducted within this environment.

Python:

Running python --version returns:
Python 3.13.2

COMPAS:

To verify the installation in Rhino 8, I ran the following in the script editor in Rhino:

import compas print(compas.version)

Output: 2.10.0

Additionally, executing python -m compas returns:

Yay! COMPAS is installed correctly! COMPAS: 2.10.0 Python: 3.13.2 (CPython) Extensions: [‘compas-fab’, ‘compas’, ‘compas-rrc’, ‘compas-robots’]

COMPAS FAB:

Running python -m compas_fab confirms the installation:

Yay! COMPAS FAB is installed correctly! COMPAS FAB: 1.0.2 COMPAS: 2.10.0 Python: 3.13.2 (CPython)

COMPAS RRC:

I installed COMPAS RRC using:

conda install -c conda-forge compas_rrc

Running python -c “import compas_rrc; print(compas_rrc.version)” returns:
2.0.0

My guess is I made a mistake when “letting Rhino 8/Grasshopper know, that compas is installed”. I am aware of this guide Working in Rhino 8 (with CPython) — COMPAS. Doing the verification step in it yields the required result.

Thank you,

Kind regards

hi,

conda environments and Rhino are independent from each other. installing COMPAS packages in a conda environment has no effect on Rhino, and vice versa.

to work with COMPAS in Rhino either follow the instructions in the main COMPAS docs: Working in Rhino 8 (with CPython) — COMPAS, or follow the instructions provided by the individual packages you want to use…

hope this helps,
tom

hey,gus!
when I first time to get start,I got the same trouble with you.There are two ways to solve it
first one is by install the compas lib for python which in rhino8.This is a little complex that you must find the correct directory which python location.
second one is declaration on the top of your file,like this :"#! python3 compas” with this declaration,the rhino will download the dependency,you lacked.!!!Noticed ,if you have not uniform license this method will not useful,because it needs connect to internet,if you do that ,you fake license will be destroyed immediately.