Cannot use webbrowser.open in python / SimpleCV on Arch

I am working on a simple CV project using SimpleCV on Arch Linux . Displaying images and channels through repl in separate windows works fine, but using a browser to display does not work.

img.show() 

Works.

 img.show(type="browser") 

Does not work. The replica displays the following message:

/usr/lib/python2.7/site-packages/IPython/html.py:14: ShimWarning: The IPython.html package has been deprecated. You must import from notebook . IPython.html.widgets moved to ipywidgets . " IPython.html.widgets moved to ipywidgets .", ShimWarning)

Stacktrace on pastebin.

Oddly enough, the same thing works on Debian , so I guess there might be a version issue.

Any hints would be much appreciated.

+6
source share
1 answer

I think you have no ShimWarning problem (though, at least). The stack stack shows an exception in the python image library (PIL): Exception: fromstring() has been removed. Please call frombytes() instead. Exception: fromstring() has been removed. Please call frombytes() instead.

Therefore, I suspect that you are correct regarding version mismatch. It looks like Arch Linux is on python-pil 3.1 , while stable Debian is still on python-pil 2.6 , which still has a fromstring method.

You may be able to force the PIL version by running pip install pillow==2.6.2 from the command line before starting IPython.

+2
source

All Articles