You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Ansible Kernel 0.8.0 is running in Python 3, the following error occurred.
The same error does not occur in python2.
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jupyter/venv/lib64/python3.6/site-packages/ansible_kernel/__main__.py", line 6, in <module>
IPKernelApp.launch_instance(kernel_class=AnsibleKernel)
File "/home/jupyter/venv/lib64/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/home/jupyter/venv/lib64/python3.6/site-packages/ipykernel/kernelapp.py", line 483, in start
self.kernel.start()
File "/home/jupyter/venv/lib64/python3.6/site-packages/ipykernel/kernelbase.py", line 290, in start
self._publish_status('starting')
File "/home/jupyter/venv/lib64/python3.6/site-packages/ipykernel/kernelbase.py", line 327, in _publish_status
ident=self._topic('status'),
File "/home/jupyter/venv/lib64/python3.6/site-packages/jupyter_client/session.py", line 748, in send
stream.send_multipart(to_send, copy=copy)
File "/home/jupyter/venv/lib64/python3.6/site-packages/ansible_kernel/kernel.py", line 68, in send_multipart
result = channel.send_multipart(msg, *args, **kwargs)
File "/home/jupyter/venv/lib64/python3.6/site-packages/ansible_kernel/kernel.py", line 1173, in send_multipart
if msg0.startswith("comm"):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Describe the bug
When Ansible Kernel 0.8.0 is running in Python 3, the following error occurred.
The same error does not occur in python2.
To Reproduce
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I fixed the bug as follows.
thanks.
The text was updated successfully, but these errors were encountered: