What’d cause this error? I’m using an eagerly load...
# prefect-community
d
What’d cause this error? I’m using an eagerly loaded template now (that’s in the project tree) as opposed to an S3 file path for the
job_template_path
now. Same template loaded via S3 during flow init didn’t throw this error, but registration blows up with this error now.
Copy code
CIRCLE_SHA1=${CIRCLE_SHA1} pdm run prefect register --project parcel-planet-ingest -p flows/asn_ingest.py
Collecting flows...
Processing 'flows/asn_ingest.py':
  Building `Local` storage...
  Registering 'asn-ingest'... Error
    Traceback (most recent call last):
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/prefect/cli/build_register.py", line 473, in build_and_register
    serialized_flow = flow.serialize(build=False)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/prefect/core/flow.py", line 1483, in serialize
    serialized = schema(exclude=["storage"]).dump(flow_copy)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/schema.py", line 552, in dump
    result = self._serialize(processed_obj, many=many)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/schema.py", line 520, in _serialize
    value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/fields.py", line 338, in serialize
    return self._serialize(value, attr, obj, **kwargs)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/fields.py", line 634, in _serialize
    return schema.dump(nested_obj, many=many)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow_oneofschema/one_of_schema.py", line 81, in dump
    result = result_data = self._dump(obj, **kwargs)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow_oneofschema/one_of_schema.py", line 116, in _dump
    result = schema.dump(obj, many=False, **kwargs)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/schema.py", line 552, in dump
    result = self._serialize(processed_obj, many=many)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/schema.py", line 520, in _serialize
    value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/fields.py", line 338, in serialize
    return self._serialize(value, attr, obj, **kwargs)
      File "/Users/dylanraithel/dev/parcel-planet-ingest/__pypackages__/3.10/lib/marshmallow/fields.py", line 1573, in _serialize
    for k in value.keys()
    AttributeError: 'set' object has no attribute 'keys'

================== 0 registered, 1 errored ==================
k
I still owe you your pdm issue I haven’t forgotten. Will write that today. This one is pretty weird. Would you be able to share the RunConfig?
d
was def a syntax error on my part
kinda surprised it didn’t emit an error from my code though and instead just blew up library code