Ladybug Installation problems

1. You downloaded Ladybug, Installed it but as soon as you drag a component into the canvas you see something similar to this:

You probably don’t have GHPython installed on your system. Download GHPython and install it and it should work fine.

2. You still see the image above in case 1 however you have GHPython already installed. What about that?

In this case probably the GHA component is blocked. Find GHPython.GHA on your system (usually at: C:\Users%username%\AppData\Roaming\Grasshopper\Libraries) . Right click, go to properties and select unblock.

To make sure that GHPython is working fine on your system open the attachment file (testGHPython.gh). You should see something similar to the image below on your screen when you open the file:

If you see the something similar you should be fine to go! Try to open one of the example files.

3. You have Ladybug running but in some of the case the output is missing. You see something similar to this:

or this

This one is because you are using old version of GHPython. Close the file without saving. Download the new version and install it and re-open the file. It should work fine now.

Hope it helps,

Mostapha

testGHPython.gh (4.02 KB)

nice ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

right now it works perfectly

thank you so very much

Cool! Thank you for letting me know :slight_smile:

Thank you for your post

Sorry for bothering with an annoying issue.

I have installed latests grasshopper (0.9.0069), phyton and ladybug.

When I try to use any ladybug component there is a strange behaviour: I can drop any component on the canvas but only once; the second time I try i get the warning that “the user object could not be created as the base type is missing” (see attached screenshot). Same thing happens when I try to add components to an old definition that contains ladybug components.

What could be wrong?

Thanks a lot in advance.


Hi Giorgio,

Thank you for reporting this. What happens if you drop a standard Python component to the canvas? It looks like an issue with GHPython component.

  • Mostapha

Thank you Mostapha for replying.

I tried to use the a test component for Phyton and actually it happens the same thing: first time I use it works, second time it does not …

Shall I post this issue somewhere else?

Strange thing is that everything was working up to yesterday, today I installed the latest grasshopper and it stopped working.

Giorgio


I see. So it is an issue with the GHPython component in the new version of Grasshopper. It maybe because I’m using the older version of GHPython. I will send a message for Giulio to see if he has any inputs on this one.

It would be great if you also post it as a separate discussion. Other users may have some insight.

Thanks,

  • Mostapha

Hi Mostapha,

I’m having an issue while testing Ladybug 0.0.53. All the components are giving me the following issue:

“Runtime error (MissingMemberException): ‘ZuiPythonComponent’ object has no attribute ‘AdditionalHelpFromDocStrings’”

Having to do with this line: ghenv.Component.AdditionalHelpFromDocStrings = “2”

Any idea what the problem is?

I updated all my files to the 0.0.53 user objects, and have updated to the latest Grasshopper.

best,

Saeran

thank you, I’ll do that!

Hi Saeran,

I guess in the new version of GHPython they have removed AdditionalHelpFromDocStrings. I will try to update to the new version later today. Will post the results here.

-Mostapha

Hi guys,

no we haven’t. It’s there since 4 months (but not forever, and we are not planning to remove it any time soon). In general, it is automatically assigned if you set the Help (or Remarks) keyword in the docstring help in the component.

@Saeran: What version of GhPython are you using? I think it is an older version.

@Mostapha: Why are you assigning “2” to AdditionalHelpFromDocStrings? This property is just a way to easily show a small remark at the end of the help file. But it would be better to just use the docstring help key for it. It’s not a mistake to set it, though.

Thanks,

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Giulio,

Thank you for the reply. I use AdditionalHelpFromDocStrings to set the exposure of the component, so I can automate the process of creating/updating the userObjects and make sure they show up in the right place. I know it is not there for this purpose.

Good to know that it will stay.
Mostapha

I was having this problem too with ghpython 0.6.0.3.

Going back to ghpython 0.5.101 seems to be the sweet spot, works with the Ladybug 0.0.53 release and the latest Grasshopper.

Saeran

thank you Saeran, actually it works!

Giorgio

I’m surprised now that you mention this! I fear a bit now that you might be tackling a problem with the wrong tool here… Can I help?

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Giulio,

Thank you for the offer. Here is how I use it: https://github.com/mostaphaRoudsari/ladybug/blob/master/src/Ladybug…

I just needed a property from the component to set the exposure for the userObject. Let me know your thoughts.

Thanks,

Mostapha

I’d like to know more about this… I do not think this should happen. I’ve answered Mostapha’s question here.

Thanks,

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

I think a good option might be to have a comment at the beginning or at the end of the code, with that information. You can then search for it using ghenv.Component.Code. I would warn against using attributes that are not managed by you for purposes for which they were not intended. You might also just have a table with ‘Unique Component ID’ -> ‘Exposure’ conversions.

I hope this helps, thanks,

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Giulio, I don’t think older version of GHPython causes the problem. I received a number of emails that updating to 0.6.0.3 cause similar problem. In all the cases downgrading to 0.5.101 solves the problem. Do you have any idea why this is happening? -Mostapha