← Problems

thefuck crashes on Python 3.12+ from removed modules

thefuck crashes at startup on Python 3.12 and newer because it imports the removed imp and distutils modules.

Tier I · Proven The best-established problems.

10 public reports · first reported 5 July 2023 · last reported 20 June 2026

Idea report · $19 · No contacts · All sales final

See a sample idea report

What's going wrong

thefuck stops working as soon as it runs on recent Python releases such as 3.12, 3.13 and 3.14.

AI-assisted: written with the help of AI from the reports. The idea report has the full summary.

In the idea report

  • The full summary.
  • The products the 10 reports are about, and how many came each month.
  • Related problems.

No business has been found with this problem yet, so the report has no contacts. All sales are final — no refunds. Pricing.