How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted

Overview

How to deal with the phenomenon that an error occurs when Python (Jupyter notebook) is executed on WSL and it cannot be executed normally. It tends to occur not immediately after startup, but after a considerable amount of time has passed since startup.

environment

error contents

Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time
OverflowError: timestamp too large to convert to C _PyTime_t

Current thread 0x00007f0232c21080 (most recent call first):
Aborted (core dumped)

Cause

Uptime has overflowed and is in the negative range. issue

$ uptime
 11:23:19 up -24855 days, -3:-14,  0 users,  load average: 0.52, 0.58, 0.59

Workaround

Reboot the PC itself. Alternatively, start Powershell in administrator mode and execute the following command. Restart WSL.

PS XXXXXX> Get-Service LxssManager | Restart-Service

What is LxssManager

Windows Subsystem for Linux related. A service related to the ability to run ELF, a binary format commonly used in Linux, on Windows.

Reference

Recommended Posts

How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted
How to deal with the problem that the current directory moves when Python is executed from Atom
How to deal with the problem that pandas 1.1.0 or later build fails on Alpine Linux
How to deal with the error that Docker's MySQL container fails to start on Docker Toolbox
How to batch start a python program created with Jupyter notebook
How to use jupyter notebook with ABCI
[Python] How to deal with module errors
How to deal with the problem that build fails when CI / CD of Python Function with AWS Amplify
How to debug with Jupyter or iPython Notebook
Strategy on how to monetize with Python Java
Introduction to Python with Atom (on the way)
How to get started with the 2020 Python project (windows wsl and mac standardization)
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
[Python] How to save images on the Web at once with Beautiful Soup
How to deal with "^ [[A ^ [[B ^ [[C ^ [[D"] when you press the arrow keys when executing python on mac
Think about how to program Python on the iPad
[Introduction to Python] How to iterate with the range function?
Monitor the training model with TensorBord on Jupyter Notebook
[Python] How to specify the download location with youtube-dl
How to instantly launch Jupyter Notebook from the terminal
[Python] How to deal with pandas read_html read error
[Python] How to rewrite the table style with python-pptx [python-pptx]
How to enjoy Python on Android !! Programming on the go !!
How to view progress bar on Jupyter Notebook to see progress
[systemd] How to deal with the problem that fancontrol does not work after suspending
I tried to simulate how the infection spreads with Python
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
Memo to get the value on the html-javascript side with jupyter
[Hyperledger Iroha] Notes on how to use the Python SDK
[Ev3dev] How to display bmp image on LCD with python
How to deploy the easiest python textbook pybot on Heroku
How to know the number of GPUs from python ~ Notes on using multiprocessing with pytorch ~
How to see the contents of the Jupyter notebook ipynb file
A story about how to deal with the CORS problem
The usual way to add a Kernel with Jupyter Notebook
Connect the Jupyter Notebook kernel to Spyder with Jupytext enabled
How to get into the python development environment with Vagrant
Save images on the web to Drive with Python (Colab)
How to use Jupyter Notebook
[Introduction to Python] How to get data with the listdir function
[VLC] How to deal with the problem that it is not in the foreground during playback
How to easily create an environment where python code runs on Jupyter without polluting the local environment
How to touch Jupyter Notebook without polluting the environment other than Pythonista, or how to touch Ruby with Jupyter Notebook without polluting the environment other than Rubyist
I made something with python that NOW LOADING moves from left to right on the terminal
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
How to quickly create a machine learning environment using Jupyter Notebook on macOS Sierra with anaconda
How to deal with python installation error in pyenv (BUILD FAILED)
How is the progress? Let's get on with the boom ?? in Python
[Introduction to Python] How to split a character string with the split function
How to judge that the cross key is input in Python3
How to run Jupyter and Spark on Mac with minimal settings
How to use python put in pyenv on macOS with PyCall
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
How to use jupyter notebook without polluting your environment with Docker
[Python] Explains how to use the format function with an example
How to deal with errors when installing Python and pip with choco
How to use Jupyter on the front end of supercomputer ITO
How to update the python version of Cloud Shell on GCP
How to send a request to the DMM (FANZA) API with python
How to build Python and Jupyter execution environment with VS Code
Formatting with autopep8 on Jupyter notebook