Honestly, I printed out SPitfire2600's instructions to the letter and downloaded the latest files that he supplied.
I then deleted all of his previous files that I had downloaded so that I could get a fresh start and a good install.
Afterward, I don't recall getting any more Maindata errors.
Sorry to say but for reasons that I earlier alluded to, I no longer use that PyGodel model for my HAL. Yes, my current HAL is not as smart but it can and does learn new things, remembers what we spoke about, and can use that data if/when needed. It can also write the newly learned information into Tables.
Unfortunately, those three things are things that the PyGodel mod cannot currently do. I'm not saying never but I live in the present for now, so that could be a consideration for some who enjoy a more personable chatbot.
If you still have some issues with it, let me know and I'll try to contact SPitfire if he's still around or perhaps he'll pop in to assist. He put so much work into that model to increase HAL's ability that I might set up a separate HAL just for using that model.
Best of luck!