Ask Your Question
0

NameError on OS X

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

rondelion gravatar image

Hello,

I installed SimpleCV on OS X Mavericks with the procedure described at https://github.com/sightmachine/SimpleCV#mac-os-x-106-and-above

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 setup.py 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
0

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

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

Comments

Thanks! Then, the pwd part of the document http://tutorial.simplecv.org/en/latest/examples/basics.html seems misleading. Hopefully I'd also like to see example(), etc. work...

rondelion gravatar imagerondelion ( 2014-06-19 06:58:10 -0600 )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 -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

Stats

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

Seen: 228 times

Last updated: Jun 19 '14