List[object] object has no attribute index

Good day!
I am struggling with the folllowing problem:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 14, in
AttributeError: ‘List [object]’ object has no attribute ‘index’

How to eliminate it?

Hi !

In case anyone else reading this is having the same issue.

I had this just now - to correct this you need to make your originals object a python list rather than a dynamo List[object] type.

So in your 3rd line create a python list and just slap all the items in your originals list in.

Something like

original = [i for i in UnwrapElement(IN[1])]

That will make the object original a python list and therefore you can call index on it.

At least this works for me.

Good luck all!