scoder / acora

Fast multi-keyword search engine for text strings
http://pypi.python.org/pypi/acora
BSD 3-Clause "New" or "Revised" License
247 stars 17 forks source link

Fixing AttributeError: '_MachineState' object has no attribute 'child… #11

Closed mathankumart closed 8 years ago

mathankumart commented 8 years ago

When executing test.py, got error AttributeError: '_MachineState' object has no attribute 'children'. The problem being in the function build_MachineState, the object hasn't been initialized. Fixing that error

scoder commented 8 years ago

Thanks for the report. It seems you've been using the non-compiled version. It doesn't show when compiled. I fixed it here: bce329e9b07aca36e563a8deff846a5acceb4b62