“ AttributeError:'NoneType'对象没有属性'thread'”在Kaggle中提交时出错

时间:2019-10-13 07:14:01

标签: python machine-learning deep-learning kernel kaggle

尝试在Kaggle上提交时出现以下错误。

Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/opt/conda/lib/python3.6/logging/__init__.py", line 1944, in shutdown h.flush() File "/opt/conda/lib/python3.6/site-packages/absl/logging/__init__.py", line 882, in flush self._current_handler.flush() File "/opt/conda/lib/python3.6/site-packages/absl/logging/__init__.py", line 776, in flush self.stream.flush() File "/opt/conda/lib/python3.6/site-packages/ipykernel/iostream.py", line 341, in flush if self.pub_thread.thread.is_alive(): AttributeError: 'NoneType' object has no attribute 'thread'

有人知道如何解决吗?

谢谢。

2 个答案:

答案 0 :(得分:0)

您写了类似y = x.threadx.thread()的字,问题是xNoneNone没有名为“ thread”的成员变量

答案 1 :(得分:0)

我认为这是一个与ipykernel相关的问题,其中有一个upstream fix尚未打包到发行版中。因此,您可能需要等待。