sightmachine / SimpleCV

The Open Source Framework for Machine Vision
http://simplecv.org
BSD 3-Clause "New" or "Revised" License
2.7k stars 799 forks source link

can't run simplecv -- AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic' #690

Open stanchiang opened 8 years ago

stanchiang commented 8 years ago

hi i'm trying to set up simplecv i got everything installed like the instructions said, but when i run the simplecv command, i get this error. I am new to python so I'm not sure how to resolve this problem.

i'm running this on python 2.7 on OS X 10.11.5 (el capitan)

thanks to anyone checking out this problem.


AttributeError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/2.7/bin/simplecv in () 7 if name == 'main': 8 sys.exit( ----> 9 load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')() 10 )

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in main(*args) 255 init_logging(log_level) 256 shellclear() --> 257 scvShell = run_shell(interface)

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in run_shell(shell) 213 for shell in available_shells: 214 try: --> 215 return globals()[shell]() 216 except ImportError: 217 pass

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in setup_ipython() 125 scvShell = InteractiveShellEmbed(config=cfg, banner1=banner, 126 exit_msg=exit_msg) --> 127 scvShell.define_magic("tutorial", magic_tutorial) 128 scvShell.define_magic("clear", magic_clear) 129 scvShell.define_magic("example", magic_examples)

AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic'

corpat commented 8 years ago

try to install some different version of IPython for ex: pip install 'IPython==4' --force-reinstall

csrgxtu commented 8 years ago

i am runing Ubuntu 14.04 Python2.7, at first it is ok, when i restart my computer, got the same error. but after downside my ipython to 4 accoding to the upper solution, it worked again.

kissste commented 5 years ago

I have had the same issue AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic', and pip install 'IPython==4' --force-reinstall worked for me.