Installing compas packages for Rhino 7

hello ! :slight_smile:

Iā€™m interested to know if its possible to install compas packages for Rhino 7.
On attempting to do this (like below)

(base) C:\WINDOWS\system32>conda activate csdii

(csdii) C:\WINDOWS\system32>python -m compas_rhino.install -v 7.0

I get an error

Traceback (most recent call last):
  File "C:\Users\ukeer\Anaconda3\envs\csdii\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\ukeer\Anaconda3\envs\csdii\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\ukeer\Anaconda3\envs\csdii\lib\site-packages\compas_rhino\install.py", line 198, in <module>
    install(version=args.version, packages=args.packages)
  File "C:\Users\ukeer\Anaconda3\envs\csdii\lib\site-packages\compas_rhino\install.py", line 48, in install
    ipylib_path = compas_rhino._get_ironpython_lib_path(version)
  File "C:\Users\ukeer\Anaconda3\envs\csdii\lib\site-packages\compas_rhino\__init__.py", line 68, in _get_ironpython_lib_path
    raise Exception("The lib folder for IronPython does not exist in this location: {}".format(ironpython_lib_path))
Exception: The lib folder for IronPython does not exist in this location: C:\Users\ukeer\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib

I am using COMPAS version 1.0 running on a Windows 10 PC

You need to run python within Rhino once before install COMPAS for Rhino to create that IronPython directory.

1 Like

great! thanks a ton :smiley:
I ran editpython script in rhino 7 before installing the compas_rhino package and now the installation works