Bug with Honeybee plus "cannot import legendparameters from ladybug"

daylight
#1

Hello,

I started to use HoneybeePlus for daylight analysis and I’m facing a bug with the “annual daylight Metrics” component. It is saying that it cannot import legendparameters from Ladybug.

I did the latest update thx to “HoneybeePlus Installer” component

Does someone know why I receive that error message?

Thx in advance

#3

Hi @dvdbremt
This issue looks similar to this thread Error with HB+ GridBasedRecipe: cannot import legendparameters from ladybug

Try to delete the line no.45 to 52 from the HB+ annual metrics component.

#4

Thx,

I actually changed line 46
import ladybug.legendparameters as lp

to
import ladybug.legend as lp

since the class is called legend and not legendparameters in C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\ladybug

and line 52
legend_par = lp.LegendParameters((0, 100), colors=col)
by
legend_par = lp.LegendParameters(0, 100, colors=col)

without the () since the argument needed is not a tuple…

1 Like
Error with HB+ GridBasedRecipe: cannot import legendparameters from ladybug
#5

Cool, and that solved your issue?

#6

yep it s seems to be solved

#7

This was a bug from a recent update to ladybug-geometry library. I pushed a new fix to GitHub. If you use the update component again it should fix the problem. Here is a file with the update component to update your installation:

update_honeybee_plus.gh (5.4 KB)

After updating the installation use update_file component to update the file.

1 Like