python - SimpleCV: traceback errors when opening Display() -


so... date version of ubuntu 13.04 on laptop (lenovo thinkpad t530), downloaded simplecv 1.3 superpack .deb file , installed it. when open interactive interpreter, either regular python 2.7 or ipython, various errors shown below:

in [1]: simplecv import camera, display, image in [2]: cam = camera() vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument vidioc_querymenu: invalid argument  in [3]: display = display() --------------------------------------------------------------------------- ioerror                                   traceback (most recent call last) <ipython-input-3-026b8c705ca8> in <module>() ----> 1 display = display()  /usr/lib/pymodules/python2.7/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 , flags != pg.noframe:  /usr/lib/pymodules/python2.7/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/lib/python2.7/dist-packages/pil/image.pyc in open(fp, mode)    1986     if isstringtype(fp):    1987         filename = fp -> 1988         fp = builtins.open(fp, "rb")    1989     else:    1990         filename = ""  ioerror: [errno 2] no such file or directory: '/usr/lib/pymodules/python2.7/simplecv/sampleimages/simplecv.png'  in [4]: 

...as blank (black) pygame window. looks of goes 1 missing .png file?!?

i tried manually installing git (after manually installing dependencies listed) , ran other problems.

it doesn't seem should hard , running?!?

any ideas or suggestions welcome.

tia,

monte

i had same problem on ubuntu 12.04. simplecv break hello world example. bug known , seems resolved since 1.3 superpack made. open terminal , use code found on git page https://github.com/sightmachine/simplecv

#install latest simplecv source on ubuntu linux sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools git git clone https://github.com/sightmachine/simplecv.git cd simplecv/ sudo pip install -r requirements.txt sudo python setup.py install 


simplicity, suggest copying of bash script saved "installsimplecv.sh" home directory. run script line:
sudo sh installsimplecv.sh

, should not trust code find on web don't understand. if don't understand code, can verify pasted code link.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -