I cannot reproduce this error. When I try to upload the model from your message, the following happens:
If I try to upload it to a Rhino 7 server, it fails because the definition was created with Rhino 8.
If I try to upload it to a Rhino 8 server, it works as expected.
Could you double check that the definition you included triggers the error message above in your case? If so, to which ShapeDiver server are you trying to upload it?
I have uploaded the model to a Rhino 8 server. Additionally, I previously attempted to upload it to Rhino 7 server, just in case, but it didn’t work either.
Attached below is a screenshot of the error message I receive:
The file I am having issues with is the following one. It is almost identical to the one I initially attached - just duplicated the same definition multiple times.
You seem to have an old version of the GhPython plugin installed, maybe because this file was created with Rhino 6. Sometimes plugins leave invisible components or references in documents even if you don’t see them on the canvas.
You could try to copy and paste all visible components of your definition to a new one, or you can also try to use the script below, which finds all external libraries used in your definition and lets you delete the components of specific libraries.
Unfortunately, I have tried those methods as well with no success. The DeletePluginComponent does not seem to detect any GHPython components. I am using Rhino 8, however it is possible that an older version of GHPython is still installed, although I have not been able to confirm this.
In the meantime, I will try rewriting the code from scratch and upload it again.