SimpleCV installation problem

384 views
Skip to first unread message

Siva Prasad Varma

unread,
May 11, 2012, 4:59:36 AM5/11/12
to simp...@googlegroups.com
I have installed SimpleCV 1.2 on Ubuntu 12.04. I think the installation did not go well even though I didnot get any warnings or errors.
But when I tried to do something I am getting the following errors

SimpleCV:1> im = Image("simplecv")
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
/usr/local/lib/python2.7/dist-packages/SimpleCV-1.2-py2.7.egg/SimpleCV/Shell/Shell.pyc in <module>()
----> 1 im = Image("simplecv")

/usr/local/lib/python2.7/dist-packages/SimpleCV-1.2-py2.7.egg/SimpleCV/ImageClass.pyc in __init__(self, source, camera, colorSpace, verbose)
    644                     self._bitmap = cv.LoadImage(self.filename, iscolor=cv.CV_LOAD_IMAGE_COLOR)
    645                 except:
--> 646                     self._pil = pil.open(self.filename).convert("RGB")
    647                     self._bitmap = cv.CreateImageHeader(self._pil.size, cv.IPL_DEPTH_8U, 3)
    648                     cv.SetData(self._bitmap, self._pil.tostring())

/usr/lib/python2.7/dist-packages/PIL/Image.pyc in open(fp, mode)
   1950         import __builtin__
   1951         filename = fp
-> 1952         fp = __builtin__.open(fp, "rb")
   1953     else:
   1954         filename = ""

IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/SimpleCV-1.2-py2.7.egg/SimpleCV/sampleimages/simplecv.png'

Please tell me how to resolve this error.

SPV

Krishna Mohan

unread,
May 11, 2012, 6:49:48 AM5/11/12
to simp...@googlegroups.com
Did you use the source from github?

Siva Prasad Varma

unread,
May 11, 2012, 6:52:00 AM5/11/12
to simp...@googlegroups.com
yeah i used the source.

SPV

Krishna Mohan

unread,
May 11, 2012, 7:01:23 AM5/11/12
to simp...@googlegroups.com
Strange, If you installed from the source that should not have occured, anyway as a fix, you can just copy the SimpleCV/sampleimages folder in the source to /usr/local/lib/python2.7/
dist-packages/SimpleCV-1.2-py2.7.egg/SimpleCV/sampleimages/

Jay Rambhia

unread,
May 11, 2012, 7:35:03 AM5/11/12
to simp...@googlegroups.com
Hey,
Yeah I have faced the same problem. Only sample images are not included in it. Everything else is working. I have reported the bug. https://github.com/ingenuitas/SimpleCV/issues/88#issuecomment-5648358
Vijay has suggested the solution. Try that.
--
Jay Rambhia,
Undergraduate Student,
Mechanical Engineering,
BITS,Pilani Goa Campus
Contact : 09967119686
@jayrambhia
Blog - Paranoid Android


Siva Prasad Varma

unread,
May 11, 2012, 7:56:00 AM5/11/12
to simp...@googlegroups.com
@Vijay that worked :)

I find everything buggy.

One issue is

When I open an image, I am unable to close that pygame window. To close it I had to close simplecv interpreter altogether. Does any one have any fix for this.

SPV

Jay Rambhia

unread,
May 11, 2012, 8:03:14 AM5/11/12
to simp...@googlegroups.com
It's the problem of gtk.main()
What you can do is add a callback command to quit pygame.
I had done that before. and used to work fine. Now I use pygtk instead of pygame to show images.

Jay Rambhia

unread,
May 13, 2012, 12:50:26 AM5/13/12
to simp...@googlegroups.com
If you have the latest version from GitHub, you can do this.
$ SimpleCV

>>> i =Image("lenna")
>>> d = i.show()
>>> d.quit()

This will quit the pygame instance.
Reply all
Reply to author
Forward
0 new messages