RhinoCode Inspector package override issue

I found an issue with RhinoCode when using an implementation of Rhino.Runtime.Code.Inspection.Inspector that overrides package versions.

In my inspector implementation I use InspectPackage(PackageSpec spec, out PackageSpec overrideSpec) to override certain package specs. Example: In case NPOI==2.6.2 is requested, I set overrideSpec to NPOI==2.7.2 and return true. Version 2.7.2 gets installed as expected. However, the script editor and the scripting component show the error messages as shown below and refuse to work :wink:

@eirannejad this one is probably for you :wink:

It is. Let me test and I will get this fixed. This is a C# script in your screenshots right?

RH-88430 Code wants to compile against specified package versus inspected

@snabela I pushed a fix for this into next 8.x and will send you a test build soon.

I am also making cleanups and improvements in the package management system in 9.x. I am careful not to break any previous APIs but I would appreciate if you can test your code against 9.x just in case. More info here:

1 Like

Yep correct it’s a C# script in the screenshot.

I will test 8.x and 9.x, many thanks!

Will RH-88430 make it into SR 23?

Hi Alexander -

That fix went into 8.x, which currently (and until the second Tuesday of next month) is 8.23, yes.
-wim

1 Like

Related question: I Rhino 8, is there a possibility to specify the version of a pypi package that should be installed? I couldn’t find out the correct syntax for this, if it’s supported at all. The documentation explains how to do this for nuget packages, but not for pypi packages.

You can following the pip format like numpy==1.2.3 or numpy>=1.2.3

Do you want a build to test the fixes?

Ah, many thanks, got it!

Yes that would be great, many thanks!

Confirming that fix RH-88430 in SR 23 solves the issue!

RH-88430 is fixed in Rhino 8 Service Release 23