Where the [User] Has No Name

I woke up to my computer this morning having a bunch of weird little problems. I try to get use my terminal (which was already open from last night) and when I tried to run a python script that organizes files for me, I get a peculiar error: "perl: no user 501."

I try closing the window and opening it back up and it says in place of my username, it says, "I have no name!"

I completely close the terminal and when I open it back up, I get the error:

Terminal Error

I tried repairing my disk permissions... no dice.

The solution? I restarted my computer and all was well.