#StructureHandlerNotFoundError: Unsupported type: <class '...'> Register a structure hook for it.

1 messages · Page 1 of 1 (latest)

quick elk
#

Hello

I'm using Dagger v0.18.10 and I'm updating to version v0.18.12.

My code was working, now, no more. I get this error: StructureHandlerNotFoundError: Unsupported type: <class 'src.core.step_result.StepResult'>. Register a structure hook for it

This class is part of my codebase and here are the first lines of my src/core/step_result.py file:

from dagger import Container

class StepResult:

So, back to v0.18.10, it works, I can run my codebase. Upgrading to v0.18.11 or v0.18.12, it's broken.

Can you give me some guidance please?

Thanks.

terse depot
tiny nebula
#

Hi @quick elk, can you share more of your code? Isn't StepResult decorated with anything, like @dagger.object_type?

#

Can you also check for me what version for cattrs was pinned when you were in v0.18.10 and now in v0.18.12, in uv.lock?

#

The only thing that comes to mind that might have changed between these versions is around enums, but I'd expect class StepResult(enum.Enum): at least, so the reason I ask for cattrs version is in case there was a change in that library. However, first instinct is that the class isn't properly decorated or extended, but then it doesn't make sense that it would have worked before. Waiting for more info.