C2W3_Assignment ML Metadata section


I get the following error in the last grader cell of the assignment. I tried troubleshooting for a long time, but looks like I’ll need some guidance on how to resolve this issue. Any help is greatly appreciated. Thanks

AttributeError Traceback (most recent call last)
9 # Display the results
—> 10 display_artifacts(store, parent_artifacts, base_dir)

~/work/util.py in display_artifacts(store, artifacts, base_dir)
45 table = {‘artifact id’: , ‘type’: , ‘uri’: }
46 for a in artifacts:
—> 47 table[‘artifact id’].append(a.id)
48 artifact_type = store.get_artifact_types_by_id([a.type_id])[0]
49 table[‘type’].append(artifact_type.name)

AttributeError: ‘set’ object has no attribute ‘id’

get_parent_artifacts should return a list of Artifact objects. For starters, you are returning an iterable containing a python set which is incorrect.

Please fix this.