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

Error after pad.show() #4

Open
lucabello opened this issue Jun 12, 2018 · 0 comments
Open

Error after pad.show() #4

lucabello opened this issue Jun 12, 2018 · 0 comments

Comments

@lucabello
Copy link

lucabello commented Jun 12, 2018

Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import spockpy
>>> pad=spockpy.HoverPad()
>>> pad.show()
>>> Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/opencv-test/spockpy/spockpy/io/hoverpad.py", line 94, in _showloop
    image = self.capture.read()
  File "/home/pi/opencv-test/spockpy/spockpy/io/capture.py", line 34, in read
    image    = Image.fromarray(frame)
  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/PIL/Image.py", line 2421, in fromarray
    arr = obj.__array_interface__
AttributeError: 'NoneType' object has no attribute '__array_interface__'

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

1 participant