Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'segments' referenced before assignment #3

Open
skyfully opened this issue Mar 24, 2018 · 1 comment

Comments

@skyfully
Copy link

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

@yyyerica
Copy link

yyyerica commented Apr 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants