Ask Your Question

NameError on OS X

asked 2014-06-17 08:27:31 -0500

rondelion gravatar image


I installed SimpleCV on OS X Mavericks with the procedure described at

While simplecv shell works for help() and functions such as Camera.getImage(), it does not work with pwd or example() commands with NameError such as "NameError: name 'pwd' is not defined".

I tried both installation methods with and pip install. I changed the permission for /usr/local beforehand. I noticed no particular errors during the installation.

I'd appreciate your kind help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-19 01:47:08 -0500

kendallv gravatar image

I think you'll find that pwd is supposed to be entered into the OSX terminal, not the Python shell. Use Ctrl-d to get out of the Python shell.

edit flag offensive delete link more


Thanks! Then, the pwd part of the document seems misleading. Hopefully I'd also like to see example(), etc. work...

rondelion gravatar imagerondelion ( 2014-06-19 06:58:10 -0500 )edit

I agree. The distinction should be made between the bash prompt (#) and Python shell (>>>). As far as I can tell the tutorial is not on github, though, so we can't submit changes. @xamox can confirm this?

kendallv gravatar imagekendallv ( 2014-06-19 11:15:22 -0500 )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


Asked: 2014-06-17 08:27:31 -0500

Seen: 242 times

Last updated: Jun 19 '14