Advertisement
Guest User

Untitled

a guest
Jan 30th, 2016
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.95 KB | None | 0 0
  1. /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`.
  2.   "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
  3. ---------------------------------------------------------------------------
  4. Exception                                 Traceback (most recent call last)
  5. /usr/lib/python2.7/site-packages/SimpleCV/Shell/Shell.pyc in <module>()
  6. ----> 1 img.show(type="browser")
  7.  
  8. /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in show(self, type)
  9.    5437           import webbrowser
  10.    5438           js = JpegStreamer(8080)
  11. -> 5439           self.save(js)
  12.    5440           webbrowser.open("http://localhost:8080", 2)
  13.    5441           return js
  14.  
  15. /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in save(self, filehandle_or_filename, mode, verbose, temp, path, fname, **params)
  16.    1994             if (type(fh) == InstanceType and fh.__class__.__name__ == "JpegStreamer"):
  17.    1995                 fh.jpgdata = StringIO()
  18. -> 1996                 saveimg.getPIL().save(fh.jpgdata, "jpeg", **params) #save via PIL to a StringIO handle
  19.    1997                 fh.refreshtime = time.time()
  20.    1998                 self.filename = ""
  21.  
  22. /usr/lib/python2.7/site-packages/SimpleCV/ImageClass.pyc in getPIL(self)
  23.    1619             rgbbitmap = self.getEmpty()
  24.    1620             cv.CvtColor(self.getBitmap(), rgbbitmap, cv.CV_BGR2RGB)
  25. -> 1621             self._pil = pil.fromstring("RGB", self.size(), rgbbitmap.tostring())
  26.    1622         return self._pil
  27.    1623
  28.  
  29. /usr/lib/python2.7/site-packages/PIL/Image.pyc in fromstring(*args, **kw)
  30.    2061 def fromstring(*args, **kw):
  31.    2062     raise Exception("fromstring() has been removed. " +
  32. -> 2063                     "Please call frombytes() instead.")
  33.    2064
  34.    2065
  35.  
  36. Exception: fromstring() has been removed. Please call frombytes() instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement