-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brain not defined? #15
Comments
Just back from a biz trip overseas, let me take a look and get back to you |
Check out the new release 0.5.0 which has a rewritten pattern matching parser which is much better at topic and that handling If you are still having problems, send me a copy of your config file and I'll debug it direct |
OK, I see your problem, it's because the code does not yet handle missing values as good as it could I'll schedule to work on this area of the code soon. I've had a item on the backlog to add default values to all settings, so if you miss one, it uses the default value and writes a warning to the log file K |
if you take the master head you will find that the whole section has been changed to support default values if appropriate or throw an exception and stop if not |
I'm not really sure if this is a bug or just happens to me. Im running it as a module having this structure:
So calling (first of all) to test/test_config.XMLConfigurationFile(), I'm getting an error comming from the class BotConfiguration (defined in the same file, line 253), method load_config_section, saying that [NameError: name "brain" is not defined]. That variable is used in that method on line 267, and it took me a while to realize that is not exactly "just a name section", but an ElementTree what was supposed to be passed on that call. So, here's what I had to do to get it working (at least I'm not getting that error anymore) in case someone else needs it:
I'm really new using python (first thing I've ever tried on this language), so we'll see if I can get it working, though some documentation would be very much appreciated. Anyways, thanks very much for building this AI
The text was updated successfully, but these errors were encountered: