python ValueError: invalid literal for float()

I would all but guarantee that the issue is some sort of non-printing character that’s present in the value you pulled off your socket. It looks like you’re using Python 2.x, in which case you can check for them with this: You’ll likely see something in there that’s escaped in the form \x00. These non-printing characters … Read more

Error “‘type’ object has no attribute ‘__getitem__'” when iterating over list[“a”,”b”,”c”]

This line is your problem: Python interprets what’s in those square brackets as a key to get an item from what’s just before them—in this case, getting the item with key “ram”, “bak”, … from list. And, of course, the list class isn’t a container and doesn’t have any items! Remove the leading list, and … Read more