Python runner crashes when trying to remove Crypto/Cryptodome package dependency

Problem description:
When we try to remove python “Crypto” or “Cryptodome” package (to replace it with pycrypto) by deleting the “Crypto”/“Cryptodome” folder in venv/lib, the repl runner crashes.

Expected behavior:
The replit runner should not have a dependency on any of the libraries from venv and deleting any directory should not cause runner to crash.

Actual behavior:
I would assume repl runner somewhere internally uses the Crypto/Cryptodome library and crashes when we delete the folder

Steps to reproduce:

  1. Create a new python repl
  2. Show the hidden files
  3. Delete the folder venv/lib/python3.10/site-packages/Crypto
    or
  4. Delete the folder venv/lib/python3.10/site-packages/Cryptodome

Bug appears at this link:
https://replit.com/@plsdontfindme/OlivedrabHotMultiprocessing
https://replit.com/@plsdontfindme/MortifiedStaidRegression ( This repl is blocked for probably spawning multiple repl runner due to crash)

Browser/OS/Device:

Firefox/ZorinOS/PC

The runner doesn’t need anything from the venv folder. I would think that the crash is to do with updating the huge changes to the filetree (many files deleted). You should’ve just removed pycryptodome in Tools > Packages.