HB End Use Intensity Component Error: OrderedDict is not defined

I was following along with Ladybug Tools Energy Fundamentals youtube tutorial when I ran into an error with the HB End Use Intensity that I could not find online:


Solution Exception: global name ‘OrderedDict’ is not defined.

I checked, and believe I am fully up to date with the compatibility matrix:


And I am running this on Rhino 6 for Mac.

I was able to get the error to go away by adding this to the python script for the HB EUI component:

import collections
try:    from collections import OrderedDict
except ImportError:    
OrderedDict = dict

However I am not sure if this is a real fix or just hiding the issue, and I would like to know if there is a better way. Thank You.

Grasshopper File:
honeybeetut.gh (73.2 KB)
Rhino File:

1 Like

Kia ora @samshadow

I have just sat with a student facing exactly the same issue.

He has the following setup on an M1 Chip Apple Computer:

We are sticking with v1.6.24 of LBT because that ensures the Windows student computers are compatible with the script students are using across their home and work computers.

We have made sure that the version of OpenStudio is compatible with the M1 chip (arm64 version) AND that it is version 3.5.1 NOT 3.5.0 as recommended by the Compatibility Matrix

We got exactly the same error message as you did.

Your fix works for us as well.

This looks like a developer question @chris ?

M

Hi @MichaelDonn ,

This was the version of LBT Grasshopper that had the OrderedDict fix:

So you would need to use that version or later instead of version 1.6.24 if you want your Mac students to have the fix.

Kia ora.

Thanks for this. I did not know where to look.

I have a dilemma, which this fix makes tricky.

We have found that standardisation of the script that our 360+ first year students and 25 third year students are using at version 1.6.24 reduces other issues (some first-year students running the Ladybug updater found their use of the energy simulation script would not work with the latest 1.6.67 and 1.6.75 etc versions). As today is the last day of the teaching trimester, I think I will risk no change.

After all, with last year’s design exercise placing a shipping container on an urban park we obtained some truly insightful passive measures and design thinking from the introductory ECS course first year students:

Nga mihi

M