I have a relatively large (~5000 line) Python file of class and function definitions that I am trying to import into a Python script. I’m running Rhino 7 on Windows. When I attempt to run this file using either _RunPythonScript
or _EditPythonScript
, I get the following error message(with the repeating bit truncated):
Instance property 'Item070' is not defined for type 'Microsoft.Scripting.MutableTuple `2[Microsoft.Scripting.MutableTuple`128[IronPython.Runtime.ClosureCell, . . ., IronPython.Runtime.ClosureCell]]'
This error traces back to the import statement for the large file. As this happens as soon as the import, I cannot run debugging. From what I have gathered in the forums, ClosureCell
s are Rhino’s way of tracking IronPython pointers in the .NET space. I haven’t been able to find anything else.
I noticed this error when attempting to merge two fully-tested Git branches. Each works independently, and the code changes should not affect one another. Interestingly, when I remove a few variable definitions, the script runs with no errors. When I add a few new definitions of the sort a = 1
and b = 2
, I get the same error again. Attempting to del a, b
does not solve the problem.
Has anyone seen this error? My hunch is that I am running out of namespace memory for the IronPython debug within Rhino. Is this correct? Any suggestions for how to deal with this?