New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu package: can't find SimpleCV logo #213
Comments
To confirm, when I removed the .deb package and used |
Hi, |
I will take a look and verify this, it may very well be the case. |
Copying image to said directory solved that problem for me |
Copying image solved for me too. |
Digging into this, the image is looked up relative to
The usual solution to such things is that, in building the Debian package, you install data files to a location like
For instance, here's a patch used in packaging IPython to achieve the same thing. |
Did this get resolved? |
I still see this issue when installing via pip on Ubuntu 12.04 |
@patricksnape : I think this was something specific to the .deb package, which pip doesn't know about. If you're seeing it with a pip installation, that would probably be a separate issue. |
I haven't been able to test this since I posted it, but I'll try again this On Mon, Aug 26, 2013 at 3:34 AM, Thomas Kluyver notifications@github.comwrote:
|
It could still very well be the case, the problem is that pip is a universal installer while ubuntu is specific. Good practice is to store files in things like /usr/local/ while pip will install a python directory and everything relative to it. I spent some time a while back trying to get it to play nice with setuptools although setuptools had a really hard time copying things recursively and required explicit file names to copy over. I still have not found a perfect solution to get deployment to work correctly as I have to do different things with each OS (tell the installer how to copy the image files over). I also at one point tried to store the image as a string in a seperate file and load it that way but was not very efficient at all. I'm open to suggestions on how to solve the issue though. |
The way this is often done is to define at a high level a variable like |
I am experiencing this issue in OS X when installing SimpleCV 1.3.0 using pip. |
this issue still exists in deb installer, need to copy the image there manually. |
This is still an issue with both the deb and the version installed by pip (Python 2.7.3). Creating the /usr/local/lib/python2.7/dist-packages/SimpleCV/sampleimages directory and copying in the image simplecv.png does seem to fix the problem for either deb or pip. |
Same here. Makes you wonder why its marked as 'closed'...? |
It has been resolved, and merged, the problem is a release hasn't been cut. The package is based on 1.3, there has been a lot added. Another release hasn't been cut because we are building SimpleCV 2.0 which has a lot of underlying changes and didn't want to double our work. The best bet is to just install from source (master or develop branch) and it should fix your issues. |
I followed the directions on the SimpleCV github page yesterday...
...and it still doesn't work right (also still having problems with pygame i.e. 'video system not initialized' - another ticket marked as 'closed'). Are you suggesting something else? |
Yes, pip might not work. git clone https://github.com/sightmachine/SimpleCV.git |
Did a It does take care of the SimpleCV logo issue (yay) but still doesn't address other 'closed' issues such as this one: |
I would verify that it did indeed uninstall: ipython Then cd to that directory and make sure images had copied correctly. You could also just manually download the image and instead of using: Image can be found here: |
a) been doing the manual file download for some time, as the changes in the SimpleCV 1.3 github repo haven't been promulgated to the distro packages (why? isn't that what minor release numbers i.e. 1.3.xx are for?) b) see above where I said it worked - when pulled directly from the repo. |
I have just installed ubuntu and simpleCV today. I am having the same problem. In fact, if I try to view any image it gives me this error, irrispective of the location of the image. Why it is looking in this directory I do not know. It doesn't even exist. It SEEMS to me that there is a big chunk of simpleCV that just doesn't work. |
Could you upload your code? |
Hi Ankit So, in simplecv, Ubuntu running in VirtualBox. I find it cannot find an image that is not in the current directory, so I change directory first. Also, it needs the file type to see an image (so, mark.png, not just mark). Not a problem, just explaining why I have done certain things. cd /home/peter/Downloads testimage = Image(“mark.png”) testimage.show() Then I get the error message, see attached screen capture (I also attach mark.png for you to see). Out of curiosity, if I navigate to the file referred to in the error, I find the containing directory is not there. Anyway, why is it trying to see the simplecv.png logo when I am looking at mark.png in the current directory. By the way, I can save testimage and view it with a normal picture viewer. Thanks Peter From: ANKIT KUMAR [mailto:notifications@github.com] Could you upload your code? — |
Hi Peter Just try to give full path of your mark.png(something like:- "G:/images/mark.png"). If this does not work than there must be something wrong with your Ubuntu or SimpleCV installation, i am not sure because i am running SimpleCV in my 64 bit windows 10 system and giving full path of any image works fine in my system. So, i would suggest you to first go for above mentioned full path of your image. |
I use Ubuntu15. And i just 'mkdir' the /usr/lib/pymodules/python2.7/SimpleCV/sampleimages/, and copy the 'simplecv.png' to it. It works! |
I use Manjaro (Arch fork). Oddly enough, I installed from AUR and this issue was present. Thanks! |
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] I use Manjaro (Arch fork). Oddly enough, I installed from AUR and this issue was present. Thanks! — No virus found in this message. |
Hi Petertoo, I had the same problem, try to do the same that vijaym123. Copy the sample picture to that directory with root parameters. I still wonder why looks for that photo even if you tell the program to load another picture. Cheers. |
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.
The text was updated successfully, but these errors were encountered: