I managed to fix it by a mixture of clearing the apt cache, reinstalling python3 and python3-minimal, and deleting all .pyc files python complained about when doing the imports.
** Changed in: ubuntu Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1029683 Title: import causes EOFError: EOF read where not expected To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1029683/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs