'Suddenly cannot run *any* Python processes on Ubuntu 18.04

I can suddenly not run any python process on Ubuntu 18.04. This morning I was running tests and jumping in REPL just fine. Now any operation hangs forever, and I can't even exit with CTRL+C/D. Just trying to run the REPL, for example, looks like this:

(base) [meadow] python
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:53) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
^C

I've tried:

  • Restarting
  • Switching conda environments
  • Cleaning conda
  • Creating fresh conda environment
  • Updating conda
  • Updating conda packages

Pretty it's the root python that's goofed, but I've tried running a few different ways

  • Running in terminal
  • Running from bpython
  • Running from pytest
  • Running from VSCode


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source