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
@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:
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.