[New-bugs-announce] [issue29322] SimpleCV error on Raspberry Pi
Michael J
report at bugs.python.org
Thu Jan 19 09:39:52 EST 2017
New submission from Michael J:
Hello,
I'm using a Microsoft LifeCam with SimpleCV on the ipython interpreter(or shell) on a Raspberry Pi 3 model B(with Raspbian, tell me if you need the exact OS version as it's quite complicated).
I'm following the directions of a book: Raspberry Pi Cookbook by Simon Monk.
I get this error:
SimpleCV:1> c = Camera()
SimpleCV:2> i = c.getImage()
SimpleCV:3> i
SimpleCV:3: <SimpleCV.Image Object size:(640, 480), filename: (None), at memory location: (0x6efdfc88)>
SimpleCV:4>
SimpleCV:4> i.show()
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/usr/local/lib/python2.7/dist-packages/SimpleCV/Shell/Shell.pyc in <module>()
----> 1 i.show()
/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.pyc in show(self, type)
5445 d = Display(displaytype='notebook')
5446 else:
-> 5447 d = Display(self.size())
5448 self.save(d)
5449 return d
/usr/local/lib/python2.7/dist-packages/SimpleCV/Display.pyc in __init__(self, resolution, flags, title, displaytype, headless)
156 if not displaytype == 'notebook':
157 self.screen = pg.display.set_mode(resolution, flags)
--> 158 scvLogo = SimpleCV.Image("simplecv").scale(32,32)
159 pg.display.set_icon(scvLogo.getPGSurface())
160 if flags != pg.FULLSCREEN and flags != pg.NOFRAME:
/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.pyc in __init__(self, source, camera, colorSpace, verbose, sample, cv2image)
785 self._bitmap = cv.LoadImage(self.filename, iscolor=cv.CV_LOAD_IMAGE_COLOR)
786 except:
--> 787 self._pil = pil.open(self.filename).convert("RGB")
788 self._bitmap = cv.CreateImageHeader(self._pil.size, cv.IPL_DEPTH_8U, 3)
789 cv.SetData(self._bitmap, self._pil.tostring())
/usr/local/lib/python2.7/dist-packages/PIL/Image.pyc in open(fp, mode)
2280
2281 if filename:
-> 2282 fp = builtins.open(filename, "rb")
2283
2284 try:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/SimpleCV/sampleimages/simplecv.png'
I(Michael J or "MJ" as I'm commonly called) have searched for the directory myself, and I can tell you, it's not there.
Tell me if you need more information, as I will be glad to assist.
I'm sorry for any inconvenience caused by me using ipython if it's unfamiliar.
----------
components: IO
messages: 285791
nosy: MJ
priority: normal
severity: normal
status: open
title: SimpleCV error on Raspberry Pi
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29322>
_______________________________________
More information about the New-bugs-announce
mailing list