"AttributeError: 'NoneType' object has no attribute 'thread'" Error while committing in Kaggle
"AttributeError: 'NoneType' object has no attribute 'thread'" Error while committing in 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'
有人知道怎么解决吗?
谢谢。
你写了类似 y = x.thread
或 x.thread()
的问题是,x
是 None
。 None
没有名为“thread
”的成员变量
我认为这是一个 ipykernel
相关的问题,其中有一个 upstream fix 尚未打包到一个版本中。所以你可能需要等待。
当我尝试在 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'
有人知道怎么解决吗?
谢谢。
你写了类似 y = x.thread
或 x.thread()
的问题是,x
是 None
。 None
没有名为“thread
”的成员变量
我认为这是一个 ipykernel
相关的问题,其中有一个 upstream fix 尚未打包到一个版本中。所以你可能需要等待。