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.
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)
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
Reboot the PC itself. Alternatively, start Powershell in administrator mode and execute the following command. Restart WSL.
PS XXXXXX> Get-Service LxssManager | Restart-Service
Windows Subsystem for Linux related. A service related to the ability to run ELF, a binary format commonly used in Linux, on Windows.
Recommended Posts