Skip to content
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

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

Open
stanchiang opened this issue Jul 12, 2016 · 3 comments

Comments

@stanchiang
Copy link

stanchiang commented Jul 12, 2016

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
Copy link

corpat commented Jul 25, 2016

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

@csrgxtu
Copy link

csrgxtu commented Jul 30, 2016

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
Copy link

kissste commented Feb 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants