MemoryError: Stack Overflow

Using autodock tools and vina for flexible docking. This error appears whenever a residue is chosen to be made flexible.

File “C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\PyBabel\bo.py”, line 365, in connect_the_dots
self.connect_the_dots(self.atoms.index(new_atm), choice_bnd )
File “C:\Program Files (x86)\MGLTools-1.5.7\lib\UserList.py”, line 81, in index
def index(self, item, *args): return self.data.index(item, *args)
MemoryError: Stack overflow

Does anyone know how to troubleshoot this? Thank you.

Looking at the GitHub repository (which is at v1.5.4) I can see that this package is 12 years old and seems to be unmaintained. This post is suggesting that downgrading to an older version may fix the issue.

Thank you very much!