Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/lib/python2.7/site-packages/IPython/html.py:14: ShimWarning: The `IPython.html` package has been deprecated. You should import from `notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.
- "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
- ---------------------------------------------------------------------------
- Exception Traceback (most recent call last)
- /usr/lib/python2.7/site-packages/SimpleCV/Shell/Shell.pyc in <module>()
- ----> 1 img.show(type="browser")
- /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in show(self, type)
- 5437 import webbrowser
- 5438 js = JpegStreamer(8080)
- -> 5439 self.save(js)
- 5440 webbrowser.open("http://localhost:8080", 2)
- 5441 return js
- /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in save(self, filehandle_or_filename, mode, verbose, temp, path, fname, **params)
- 1994 if (type(fh) == InstanceType and fh.__class__.__name__ == "JpegStreamer"):
- 1995 fh.jpgdata = StringIO()
- -> 1996 saveimg.getPIL().save(fh.jpgdata, "jpeg", **params) #save via PIL to a StringIO handle
- 1997 fh.refreshtime = time.time()
- 1998 self.filename = ""
- /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in getPIL(self)
- 1619 rgbbitmap = self.getEmpty()
- 1620 cv.CvtColor(self.getBitmap(), rgbbitmap, cv.CV_BGR2RGB)
- -> 1621 self._pil = pil.fromstring("RGB", self.size(), rgbbitmap.tostring())
- 1622 return self._pil
- 1623
- /usr/lib/python2.7/site-packages/PIL/Image.pyc in fromstring(*args, **kw)
- 2061 def fromstring(*args, **kw):
- 2062 raise Exception("fromstring() has been removed. " +
- -> 2063 "Please call frombytes() instead.")
- 2064
- 2065
- Exception: fromstring() has been removed. Please call frombytes() instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement