Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous TierkreisTypeErrors.from_proto exception #23

Open
obackhouse opened this issue Feb 3, 2025 · 0 comments
Open

Ambiguous TierkreisTypeErrors.from_proto exception #23

obackhouse opened this issue Feb 3, 2025 · 0 comments

Comments

@obackhouse
Copy link

I am getting an ambiguous exception that I can't debug as the error doesn't seem to be raised correctly:

  File "/home/ollie/.cache/uv/archive-v0/MbK5gYvNMjb9UnXJZVp_t/lib/python3.10/site-packages/tierkreis/client/server_client.py", line 130, in run_graph
    raise TierkreisTypeErrors.from_proto(status_value, graph)
tierkreis.core.type_errors.TierkreisTypeErrors: <exception str() failed>

I don't currently have a minimal example, but status_value in

raise TierkreisTypeErrors.from_proto(status_value, graph)

is of type tierkreis.core.protos.tierkreis.v1alpha1.signature.TypeErrors and has value

TypeErrors(errors=[TierkreisTypeError(variant=ErrorVariant(unify=UnifyError(expected=Type(graph=GraphType(inputs=RowType(content={'a': Type(flt=Empty()), 'b': Type(flt=Empty())}), outputs=RowType(content={'value': Type(flt=Empty())}))), found=Type(graph=GraphType(inputs=RowType(content={'b': Type(flt=Empty()), 'a': Type(flt=Empty())}), outputs=RowType(content={'value': Type(vec=Type(flt=Empty()))}, rest='var659'))))), location=[GraphLocation(node_idx=5), GraphLocation(node_idx=42)]), TierkreisTypeError(variant=ErrorVariant(unify=UnifyError(expected=Type(graph=GraphType(inputs=RowType(content={'value': Type(var='var202')}), outputs=RowType(content={'value_0': Type(var='var202'), 'value_1': Type(var='var202')}))), found=Type(graph=GraphType(inputs=RowType(content={'value': Type(vec=Type(flt=Empty()))}), outputs=RowType(content={'value_0': Type(vec=Type(flt=Empty())), 'value_1': Type(flt=Empty())}, rest='var199'))))), location=[GraphLocation(node_idx=5), GraphLocation(node_idx=7)]), TierkreisTypeError(variant=ErrorVariant(unify=UnifyError(expected=Type(graph=GraphType(inputs=RowType(content={'circ': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper')), 'params': Type(vec=Type(flt=Empty())), 'symbs': Type(vec=Type(str=Empty()))}), outputs=RowType(content={'value': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper'))}))), found=Type(graph=GraphType(inputs=RowType(content={'circ': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper')), 'symbs': Type(vec=Type(str=Empty())), 'params': Type(flt=Empty())}), outputs=RowType(content={'value': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper'))}, rest='var513'))))), location=[GraphLocation(node_idx=5), GraphLocation(node_idx=31)]), TierkreisTypeError(variant=ErrorVariant(unify=UnifyError(expected=Type(graph=GraphType(inputs=RowType(content={'circ': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper')), 'symbs': Type(vec=Type(str=Empty())), 'params': Type(vec=Type(flt=Empty()))}), outputs=RowType(content={'value': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper'))}))), found=Type(graph=GraphType(inputs=RowType(content={'symbs': Type(vec=Type(str=Empty())), 'circ': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper')), 'params': Type(flt=Empty())}), outputs=RowType(content={'value': Type(struct=StructType(shape=RowType(content={'__tk_opaque_circuit_wrapper': Type(str=Empty())}), name='CircuitWrapper'))}, rest='var367'))))), location=[GraphLocation(node_idx=5), GraphLocation(node_idx=20)])])

Let me know if this isn't enough to debug and I can see if I can reproduce it minimally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant