I run frequently in this issue when using Python modules that they return this error message: “Error: Python(gameObject), python controller found the module but could not access the function”. It happens very unevenly, so it’s hard to pinpoint what might cause it, but I’ve noticed it happened often when creating a script before saving the blend file a first time, then gets screwed up right after the save.
Another occurrence though was when I edited a script to turn it into a module in an already saved blend project. I converted a bunch of scripts just fine, but this one turned up the error message although everything was good. The only difference with the other scripts is that I changed the original name slightly (on top of adding “.py”) Strange thing is: changing a single character in the name of the text block solves the issue.
Does someone have an idea or explanation as to what is causing this? It would be greatly appreciated.