spockpy
spockpy copied to clipboard
UnboundLocalError: local variable 'segments' referenced before assignment
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
i find the solution.Just open hoverpad.py and modify the parameter verbose = True in the mothed "init".