Grasshopper

algorithmic modeling for Rhino

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

Views: 24854

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Please feel free to forward these issues to me.

It might be something we did with initialization of variables in the ghpythonlib module, an outdated Rhino 5, or something else. I'd like to investigate this.

Thanks,

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

That worked for me too.

I coundn´t make it work with  ghpython  0.6.0.3.

That is likely due to an old Rhino SR. Please update, if you can.

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

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

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'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 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

I understand your concerns. Is it possible to add a userDictionary to the component? Then I can add information similar to this one to dictionary.

Hi,

Link on this website is to new Python 6.0.1 and Honeybee require old version 5.101.0. Where i can get old version from>?

Currently it does not work for me?

Michal 

PS. I found website http://www.food4rhino.com/project/ghpython

and downloaded 

0.5.101 New Coding location - For Grasshopper 0.9.0061
2013-Dec-09
I can now confirm that it works! :)

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service