htm-community / nupic.studio

NuPIC Studio is a powerful all­-in-­one tool that allows users create a HTM neural network from scratch, train it, collect statistics, and share it among the members of the community.
GNU General Public License v2.0
94 stars 29 forks source link

Cannot delete node in hierarchy #4

Closed rhyolight closed 9 years ago

rhyolight commented 9 years ago

Here is a video of the bug.

Here is the stack trace.

› nustudio
2014-09-09 17:09:04.813 Python[93147:d07] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
2014-09-09 17:09:13.119 Python[93147:d07] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nustudio/ui/node_selector_form.py", line 336, in __menuNodeDelete_Click
    self.underMouseNode.delete()
  File "/usr/local/lib/python2.7/site-packages/nustudio/htm/node.py", line 106, in delete
    self.parentNode.children.remove(self)
AttributeError: 'builtin_function_or_method' object has no attribute 'remove'
david-ragazzi commented 9 years ago

This bug is eventual with no obvious cause. I'll do exaustive test to check its source.

david-ragazzi commented 9 years ago

Fixed: https://github.com/DavidRagazzi/nupic.studio/commit/441e58c80a32365704354489b4bd08b7893ae10e

Please, try again!

PS: Do you think that I should update PyPi at each critical error like this? Or should I wait more?

rhyolight commented 9 years ago

Works!