spockpy icon indicating copy to clipboard operation
spockpy copied to clipboard

UnboundLocalError: local variable 'segments' referenced before assignment

Open skyfully opened this issue 6 years ago • 1 comments

when i want to run my code ,i get this problem This is code:

import spockpy pad=spockpy.HoverPad() pad.show()

Exception in thread Thread-8: Traceback (most recent call last): File "C:\Users\mynumber\Anaconda3\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Users\mynumber\Anaconda3\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "C:\Users\mynumber\Anaconda3\lib\site-packages\spockpy-0.1.0-py3.6.egg\spockpy\io\hoverpad.py", line 92, in _showloop self.image = Image.fromarray(segments) UnboundLocalError: local variable 'segments' referenced before assignment

skyfully avatar Mar 24 '18 11:03 skyfully

i find the solution.Just open hoverpad.py and modify the parameter verbose = True in the mothed "init".

yyyerica avatar Apr 22 '18 12:04 yyyerica