SimpleCV: Ubuntu package: can't find SimpleCV logo
I don’t know if this is the correct place to report this - please point me in the right direction if not.
I’ve just installed the .deb package for SimpleCV on Ubuntu 12.04. When I try to show any image, I get the traceback pasted below. I assume this is just trouble with the packaging, as it’s not finding the logo in the directory where it expects it.
SimpleCV:10> img.show()
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/usr/lib/pymodules/python2.7/SimpleCV/Shell/Shell.pyc in <module>()
----> 1 img.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.set_mode(resolution, flags)
--> 158 scvLogo = SimpleCV.Image("simplecv").scale(32,32)
159 pg.display.set_icon(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.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)
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/lib/pymodules/python2.7/SimpleCV/sampleimages/simplecv.png'
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 30 (11 by maintainers)
I Gave up. I used numpy and did a least mean square error. Takes longer, but gives a more reliable result so I am told. Obviously doesn’t work in real world photos (perspective…).
From: Sergio Urbina [mailto:notifications@github.com] Sent: 16 March 2016 21:12 To: sightmachine/SimpleCV SimpleCV@noreply.github.com Cc: Petertoo peter.sladen@btconnect.com Subject: Re: [SimpleCV] Ubuntu package: can’t find SimpleCV logo (#213)
I use Manjaro (Arch fork). Oddly enough, I installed from AUR and this issue was present. Copying the image also solves the problem.
Thanks!
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/sightmachine/SimpleCV/issues/213#issuecomment-197551188
No virus found in this message. Checked by AVG - www.avg.com http://www.avg.com Version: 2016.0.7442 / Virus Database: 4542/11819 - Release Date: 03/15/16
Hi, I think you can resolve this by manually copying the simplecv image (https://docs.google.com/open?id=0Bwb_Zi7_nUirRXQ5OXlVZmlQU1k) to your folder “/usr/lib/pymodules/python2.7/SimpleCV/sampleimages/” with sudo permissions. 😃 Thank you