aws-samples / aws-samples/sagemaker-run-notebook

Getting a failure during execution using EMR example code (TypeError: 'coroutine' object is not subscriptable)

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
144
Forks
72
PR merge metrics
No merged PRs in 30d

Description

Here is the trace back from the last two blocks in CloudWatch:

Executing: 0%| | 0/11 [00:00
IPKernelApp.launch_instance(kernel_class=PySparkKernel)
File "/usr/local/lib/python3.7/site-packages/traitlets/config/application.py", line 844, in launch_instance
app.initialize(argv)
File "/usr/local/lib/python3.7/site-packages/traitlets/config/application.py", line 87, in inner
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/ipykernel/kernelapp.py", line 638, in initialize
self.init_kernel()
File "/usr/local/lib/python3.7/site-packages/ipykernel/kernelapp.py", line 501, in init_kernel
user_ns=self.user_ns,
File "/usr/local/lib/python3.7/site-packages/traitlets/config/configurable.py", line 537, in instance
inst = cls(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/sparkmagic/kernels/pysparkkernel/pysparkkernel.py", line 29, in __init__
**kwargs)
File "/usr/local/lib/python3.7/site-packages/sparkmagic/kernels/wrapperkernel/sparkkernelbase.py", line 47, in __init__
self._load_magics_extension()
File "/usr/local/lib/python3.7/site-packages/sparkmagic/kernels/wrapperkernel/sparkkernelbase.py", line 76, in _load_magics_extension
log_if_error="Failed to load the Spark kernels magics library.")
File "/usr/local/lib/python3.7/site-packages/sparkmagic/kernels/wrapperkernel/sparkkernelbase.py", line 107, in _execute_cell
if shutdown_if_error and reply_content[u"status"] == u"error":

TypeError: 'coroutine' object is not subscriptable

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.