Ask Your Question
1

ImportError: No module named SimpleCV

asked 2013-01-09 22:04:29 -0600

mikecruz79 gravatar image

updated 2013-01-11 19:46:52 -0600

I recently bought the book Practical Computer Vision with SimpleCV.

I installed SimpleCV on my mac running OS X version 10.8.2 using the instructions on github.com/ingenuitas/SimpleCV#installation

I tried the first Hello World example and it worked from the SimpleCV Shell.

I also tried the same example by creating a helloworld.py file and I got the following error:

from SimpleCV import Camera, Display, Image      ImportError: No module named SimpleCV

When I run which python I get

/usr/local/bin/python

When I run which simplecv I get

/usr/local/bin/simplecv

Any Ideas?

Update 01.11.13

I changed my PYTHONPATH="/Library/Python/2.7/site-packages:/usr/local/lib/python2.7/site-packages"

Now I get a different error:

Fatal Python error: (pygame parachute) Segmentation Fault Abort trap: 6

I tried import SimpleCV with python -vvv and got the following error:

trying /Library/Python/2.7/site-packages/cv2.so
dlopen("/Library/Python/2.7/site-packages/cv2.so", 2);
Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap: 6

Looks like it's not happy with cv2.so

Update #2

I ended up uninstalling everything and started over. All good now

edit retag flag offensive close merge delete

Comments

Thanks, it sounds like the opencv install may have failed. Thanks for the update.

xamox gravatar imagexamox ( 2013-01-21 07:56:42 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-10 07:41:46 -0600

marco619 gravatar image

I think that your environment variables are not configured for use python and simplecv with out the SimpleCV Shell, configure them .

Check this link if you forgot any step.

edit flag offensive delete link more
0

answered 2013-01-10 13:37:53 -0600

mikecruz79 gravatar image

When you say environment variables are you referring to PYTHONPATH and PATH or other variables?

I'm pretty sure my PATH is set correctly since "which python" and "which simplecv" both return the homebrew install location of "/usr/local/bin" but I could be missing whatever links simplecv as a python module.

On the github page, I see instructions for setting PATH and PYTHONPATH under windows but not Mac. On the installation document on the simplecv site I don't see any mention of PATH and PYTHONPATH.

In my PATH i have "use/local/bin" and "/usr/local/share/python"

in my .bash_profile I have

export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"

edit flag offensive delete link more

Comments

Yes, I m referring to PYTHONPATH and PATH variables. They nee to point where was installed SimpleCv Packages an Libraries.By In my PYTHONPATH = /SimpleCV1.3/files/opencv/build/python/2.7/; /OpenCV2.3/opencv/build/python/2.7/.Try to check if you have it in your PYTHONPATH and PATH variables.

marco619 gravatar imagemarco619 ( 2013-01-11 06:20:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-01-09 22:04:29 -0600

Seen: 7,636 times

Last updated: Jan 11 '13