Traceback (most recent call last):


 "/usr/local/lib/python3.5/site-packages/spyder/plugins/projects.py", line 226, in create_new_project

self.restart_consoles()


 "/usr/local/lib/python3.5/site-packages/spyder/plugins/projects.py", line 385, in restart_consoles

self.main.ipyconsole.restart()


 "/usr/local/lib/python3.5/site-packages/spyder/plugins/ipythonconsole.py", line 1165, in restart

client.shutdown()


 "/usr/local/lib/python3.5/site-packages/spyder/widgets/ipythonconsole/client.py", line 300, in shutdown

self.shellwidget.kernel_manager.shutdown_kernel()


 "/usr/local/lib/python3.5/site-packages/jupyter_client/manager.py", line 302, in shutdown_kernel

self.request_shutdown(restart=restart)


 "/usr/local/lib/python3.5/site-packages/jupyter_client/manager.py", line 252, in request_shutdown

self.session.send(self._control_socket, msg)


 "/usr/local/lib/python3.5/site-packages/jupyter_client/session.py", line 684, in send

stream.send_multipart(to_send, copy=copy)
AttributeError: 'NoneType' object has no attribute 'send_multipart'

Traceback (most recent call last):


 "venv/bin/pytest", line 10, in <module>

sys.exit(main())


 "venv/lib/python3.7/site-packages/_pytest/config/__init__.py", line 90, in main

return config.hook.pytest_cmdline_main(config=config)


 "venv/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__

return self._hookexec(self, self.get_hookimpls(), kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec

return self._inner_hookexec(hook, methods, kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>

firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall

return outcome.get_result()


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result

raise ex[1].with_traceback(ex[2])


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall

res = hook_impl.function(*args)


 "venv/lib/python3.7/site-packages/_pytest/main.py", line 228, in pytest_cmdline_main

return wrap_session(config, _main)


 "venv/lib/python3.7/site-packages/_pytest/main.py", line 221, in wrap_session

session=session, exitstatus=session.exitstatus


 "venv/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__

return self._hookexec(self, self.get_hookimpls(), kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec

return self._inner_hookexec(hook, methods, kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>

firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall

gen.send(outcome)


 "venv/lib/python3.7/site-packages/_pytest/terminal.py", line 650, in pytest_sessionfinish

outcome.get_result()


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result

raise ex[1].with_traceback(ex[2])


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall

res = hook_impl.function(*args)


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 75, in pytest_sessionfinish

session._setupstate.teardown_all()


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 326, in teardown_all

self._pop_and_teardown()


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 299, in _pop_and_teardown

self._teardown_with_finalization(colitem)


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 319, in _teardown_with_finalization

self._callfinalizers(colitem)


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 316, in _callfinalizers

raise val.with_traceback(tb)


 "venv/lib/python3.7/site-packages/_pytest/runner.py", line 307, in _callfinalizers

fin()


 "venv/lib/python3.7/site-packages/_pytest/fixtures.py", line 867, in finish

hook.pytest_fixture_post_finalizer(fixturedef=self, request=request)


 "venv/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__

return self._hookexec(self, self.get_hookimpls(), kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec

return self._inner_hookexec(hook, methods, kwargs)


 "venv/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>

firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall

return outcome.get_result()


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result

raise ex[1].with_traceback(ex[2])


 "venv/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall

res = hook_impl.function(*args)


 "venv/lib/python3.7/site-packages/_pytest/setuponly.py", line 44, in pytest_fixture_post_finalizer

_show_fixture_action(fixturedef, "TEARDOWN")


 "venv/lib/python3.7/site-packages/_pytest/setuponly.py", line 54, in _show_fixture_action

out, err = capman.read_global_capture()


 "venv/lib/python3.7/site-packages/_pytest/capture.py", line 141, in read_global_capture

return self._global_capturing.readouterr()
AttributeError: 'NoneType' object has no attribute 'readouterr'
