Traceback (most recent call last):


 "/home/linuxbrew/.linuxbrew/bin/sam", line 11, in <module>

load_entry_point('aws-sam-cli==0.40.0', 'console_scripts', 'sam')()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 764, in __call__

return self.main(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 717, in main

rv = self.invoke(ctx)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 1137, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 956, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 555, in invoke

return callback(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func

return ctx.invoke(f, obj, *args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/click/core.py", line 555, in invoke

return callback(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 96, in wrapped

raise exception
# pylint: disable=raising-bad-type


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 62, in wrapped

return_value = func(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/commands/package/command.py", line 100, in cli

ctx.profile,


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/commands/package/command.py", line 130, in do_cli

package_context.run()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/commands/package/package_context.py", line 92, in run

exported_str = self._export(self.template_file, self.use_json)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/commands/package/package_context.py", line 107, in _export

exported_template = template.export()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.40.0/libexec/lib/python3.7/site-packages/samcli/lib/package/artifact_exporter.py", line 622, in export

resource_type = resource.get("Type", None)
AttributeError: 'NoneType' object has no attribute 'get'


Traceback (most recent call last):


 "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 335, in keyPressEvent

FigureCanvasBase.key_press_event(self, key, guiEvent=event)


 "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 1861, in key_press_event

self.callbacks.process(s, event)


 "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/matplotlib/cbook.py", line 554, in process

proxy(*args, **kwargs)


 "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/matplotlib/cbook.py", line 416, in __call__

return mtd(*args, **kwargs)


 "draw_box.py", line 35, in onkeypress

write_xml(image_folder, img, object_list, tl_list, br_list, savedir)


 "/home/assetone04/Music/Darkflow-object-detection-master/gen_xml.py", line 11, in write_xml

image = cv2.imread(img.path)

AttributeError: 'NoneType' object has no attribute 'path'

Aborted (core dumped)

