Do you have a file called repr.py in the current directory? That file is incomplete, and shadows the standard library repr
module. You can see from the traceback that the file has no full path, only a local path. Rename it or remove it.
Please, do not just delete .pyc files from your system folders, please reinstall python from packages (using your package manager).