String indices must be integers => http://chiovimisbe.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MzE6IlN0cmluZyBpbmRpY2VzIG11c3QgYmUgaW50ZWdlcnMiO30= Q: Why is my Linux giving me x y z error? Is it because I have to encode my variables for the sake of hashing in Python 3. You're mixing the code from the first with the code from the second. I don't have plans to do anything with this though, let alone push it to some sort of production environment. Q: Do I have a virus?! In the first article, the data attribute is a string, not a dict. Once encoded once decoded, it just works. Python is dynamically typed, which means that you can't guarantee types before runtime: so, let's look at your code to see where this might be going wrong. You're mixing the code from the first with the code from the second. For me it's working after two updates which I've described. TypeError: string indices must be integers Possibly Related Threads. Perhaps part of the confusion comes from not having declared a clear reason for having 'data'. There's only one custom library other than the boto3 package but those aren't the issue. Please remember to update to the latest version of Navigator to include the latest fixes. When I created the sha256 hash I had to encode them as it would take them unencoded. indices must be with JSON object : learnpython - Please remember to update to the latest version of Navigator to include the latest fixes. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. And then you load it from file as you did, decoding it once. Once encoded once decoded, it just works. Just to be sure, and for other people to help, what language is this. I'm pretty sure it's python, but I can't be too sure. Q: Do I have a virus. A: By learning how to de-anonymize everyone else; if you can do that, then you know what to do for yourself. Q: What Linux distro is best for x y z. Q: Why is my Linux giving me x y z error. A: Have you googled it. Are you sure StackOverflow doesn't have an answer. Does the error tell you what's wrong. If the answer is no to all of those, message me. You encode your dictionary to json, and then you encode that json string to json again resulting in saving single string encoded in json to your file, when reading, you decode it once, so you ending up with a json string indices must be integers, not a dictionary. Btw, python relies on indentation, and your code embedded in your post without code tags looks like garbage. I had to cut out irrelevant code, the script is pretty long. Btw, python relies on indentation, and your code embedded in your post without code tags looks like garbage. Look, I never said that i was any good at this, nor as good as anyone else in this forum. That's why I'm asking for help I actually hardly know much about this at all, I just need someone to point out the flaws and help me fix them!.