Python 3 Import error AttributeError: '_ModuleLock_' object has no attribute 'name'
问题 I'm updating a package from python 2 to 3 and I cannot get imports to work. Even the easy ones like import math or import os. Everything checks out ok when I run it with idle. If I try to run it through terminal I get a failed to load process message. In debugger it runs through a few file paths and always gives the same error. I've read a lot of documentation on imports and I'm fairly certain the imports are correct. import os ... import logging ... ... import argparse log = logging