Script Editor Dependencies

hi @eirannejad ,

How do I get dependencies like this? I had this script running correctly at some point but in a fresh install it doesnt fetch ifcopenshell. I recall that it fetched it automatically in the script editor back then?

#r:ifcopenshell
#!/usr/bin/env python3
"""
IFC All Reader

Author: Mathias Sønderskov Schaltz, (C) LINK Arkitektur 2025
Date: 2025-08-04
"""


import System
import time
from collections import defaultdict, OrderedDict
import math
import threading
from functools import lru_cache
import gc
import weakref
import Rhino
import sys
import Rhino.Geometry as rg
import Rhino.UI
import scriptcontext as sc
import rhinoscriptsyntax as rs
import ifcopenshell
import ifcopenshell.geom
import ifcopenshell.util.placement

But I am getting

Traceback (most recent call last):
  File "file:/xxxx_Snippets_Python/IFC_AllReader.py", line 25, in <module>
ModuleNotFoundError: No module named 'ifcopenshell'

I thought the #r:ifcopenshell would make the scripteditor install it with pip?

Hi Mathias,

in the past there was an issue with the ifcopenshell downloaded from pip (wrong versione).

Don’t know if the bug was solved but you can give a try to the workaround written here

Hi Mathias, just tried running this in Rhino 8.28.26019.17381:

I’m also still new to using the Rhino Python package manager, but maybe try resetting the runtime:

Also also, I keep reading it as ifcopenhell :sign_of_the_horns:

Yourenotalone :wink:

Thanks for trying.

Did it install for you Anders? Or did you have ifc-copenhell installed already?

It used to run fine for me but on a fresh PC not :wink:

Hope all is well :hugs:

It did indeed. I didn’t have it installed previously. Only some package to fiddle with PowerPoint, such power!