IO Error : [Error 13] Permission Denied

asked 2012-10-14 01:48:10 -0500

karry89 gravatar image

I am new to SimpleCV, earlier when i was trying a sample code the ipython terminal gave me IO error which said it did not have simplecv.png in simplecv/sampleimages folder which i tried to copy using the following command after entering the root

root@ubuntu:/home/kartik# cp /home/kartik/Desktop/Major/SimpleCV.png /usr/lib/pymodules/python2.7/SimpleCV/sampleimages

the image is visible in the sample images folder but seems corrupt to me bcoz when u double click on it, it does not open error occurs and when i run the code in ipython i get the error below:

VIDIOCQUERYMENU: Invalid argument VIDIOCQUERYMENU: Invalid argument VIDIOC_QUERYMENU: Invalid argument select timeout

there is no soundcard

IOError Traceback (most recent call last) /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where) 173 else: 174 filename = fname --> 175 builtin.execfile(filename, *where)

/home/kartik/Desktop/Major/sample.py in <module>() 5 while (1): 6 i = cam.getImage() ----> 7 i.show()

/usr/lib/pymodules/python2.7/SimpleCV/ImageClass.pyc in show(self, type) 5445 d = Display(displaytype='notebook') 5446 else: -> 5447 d = Display(self.size()) 5448 self.save(d) 5449 return d

/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.setmode(resolution, flags) --> 158 scvLogo = SimpleCV.Image("simplecv").scale(32,32) 159 pg.display.seticon(scvLogo.getPGSurface()) 160 if flags != pg.FULLSCREEN and 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.CVLOADIMAGECOLOR) 786 except: --> 787 self.pil = pil.open(self.filename).convert("RGB") 788 self.bitmap = cv.CreateImageHeader(self.pil.size, cv.IPLDEPTH8U, 3) 789 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 13] Permission denied: '/usr/lib/pymodules/python2.7/SimpleCV/sampleimages/simplecv.png'

please help asap thnxx :D

edit retag flag offensive close merge delete

Comments

Helli vijayrm, i have already done it...but wat i did is un-installed the deb package and installed it from github, it is working but i can see that the folder of simplecv has less features like HAARlike folder is missing as it was when i installed the deb package

karry89 gravatar imagekarry89 ( 2012-10-14 12:00:06 -0500 )edit