HB and LB on Rhino 6 GH-1

Hi There,

I’m testing Rhino 6 which comes with Gh version 1 (Build 1.0.004) and for soem reason HB and LB does not run properly. Most of all other plug-ins for GH runs smoothly on GH 1. This is the error that I get :

Runtime error (MissingMethodException): Method not found: ‘Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.Exception, System.Object)’.

Traceback:
line 67, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\types.py”
line 8, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\warnings.py”
line 12, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\ntpath.py”
line 63, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\os.py”
line 7, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\shutil.py”
line 68, in script

Cheers

Hi Claudio,

Thank you for reporting this. Which component gives you this error? If it is Ladybug_ladybug, can you comment line 68 rc.Runtime.HostUtils.DisplayOleAlerts(False). I assume there have been changes to RhinoCommon API.

Mostapha

Hi Mostapha and sorry for the delay, super busy.

Actually the problems are caused by Honeybee_HoneyBee and LadyBug_LadyBug as the image bellow

To answer your question there is no more data coming from the components other than the ones you see in the image.

HoneyBee:

Runtime error (MissingMethodException): Method not found: ‘Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.Exception, System.Object)’.

Traceback:
line 67, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\types.py
line 8, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\warnings.py
line 12, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\ntpath.py
line 63, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\os.py
line 7, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\shutil.py
line 68, in script

LadyBug:

Runtime error (MissingMethodException): Method not found: ‘Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.Exception, System.Object)’.

Traceback:
line 67, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\types.py
line 8, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\warnings.py
line 12, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\ntpath.py
line 63, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\os.py
line 7, in <module>, “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\shutil.py
line 61, in script

Hope it helps

cheers

Hi,

Just wanted to report that in my machine it runs fine. So this is a local issue i believe.

-A.

Hmm that sounds bad. I did an update on Rhino WIP and LB and HB. And I get the same result.

Any ideas…

cheers

What is the version of IronPython in your Rhino WIP installation? The issue is happening in shutil.py and doesn’t have to do anything specific with Ladybug or Honeybee.

Well it looks that Rhino 6 WIP its running an earlier version of Phyton at lest in my machine. I dont know how Abraham manages to make it work. Is there a way to update manually IronPhyton? I guess thats a question for an other forum.

Thanks for the follow up

cheers

After running the version check on my Rhino 6 WIP I get this

2.7.5 (IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.42000 (64-bit))

BTW I do have the latest version of rhino 6 wip

Rhino 5 latest SR gives me this version:

2.7.3 ()

Ok good News and bad news.

I updated to the lastest IronPhyton from this site

http://ironpython.net/

And now HB and LB works on RH-6 but makes RH-5 to crash…Anyhow I’ll stick to RH-6 from now on

Thank you all

Don’t know what’s going on but i can run both 5 and 6 together.

I have IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.42000 (64-bit))

So i believe something else is in conflict with Rhino.

-A.

Hi Abraham and Mostapha.

I just change my work sattion for a newr one. And I get the same error as before. I did update Python to the latest version. And still have the same problem.

I also have this issue but I didn’t try to fix it. Still using version 5.

To find the version open a GHPython component and type:

import sys

print sys.version

If you have Dynamo installed then you have another version of IronPython installed under Program Files folder. You can find the version like this:

As far as I read in other discussions the version of IronPython should be the same as the version of IronPython on Rhino 6. I will test this at some point myself and report back here. If you don’t use IronPython in Dynamo just uninstall the IronPython which is installed in Program Files folder and everything should work fine.

Hope it helps.

Mostapha

Giulio has posted the detailed solution here:

https://discourse.mcneel.com/t/ironpython-installation-rhino-5-rhin…

Hi all,

I’m trying to run Ladybug on the Rhino 6 WIP (Windows) and am having some issues.

Everything runs fine when I use Rhino 5, but when I try to plug the location component into **sunpath, **I get “1. Solution exception:The method or operation is not implemented.”

I’ve already tried to update to IronPython 2.7.7, but don’t think I’m doing it correctly (when I check the version using the GhPython script, it returns that I’m using version 2.7.5). I’ve been working with a collection of different solutions, each of which I think I’ve implemented about halfway to completion. Is this a consistent problem with running Ladybug in the newest Rhino 6 WIP? I’ve never worked with Python and haven’t gotten deep into the guts of anything besides installation of grasshopper plugins, so there’s a high chance I’m missing something obvious. If it’s just fixing the IronPython installation, does anyone have a link to more specific instructions on how to ensure that Rhino 6 is using the 2.7.7 version?