Simplecv: não é possível executar simplecv - AttributeError: o objeto 'InteractiveShellEmbed' não tem atributo 'define_magic'

Criado em 12 jul. 2016  ·  3Comentários  ·  Fonte: sightmachine/SimpleCV

oi estou tentando configurar o simplecv tenho tudo instalado como as instruções disseram, mas quando eu executo o comando simplecv, recebo este erro. Eu sou novo no python, então não tenho certeza de como resolver esse problema.

estou executando isso no python 2.7 no OS X 10.11.5 (el capitan)

obrigado a alguém verificando este problema.


AttributeError Traceback (chamada mais recente, última)
/Library/Frameworks/Python.framework/Versions/2.7/bin/simplecv em()
7 se nome == ' principal ':
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 em run_shell (shell)
213 para shell em available_shells:
214 tentativa:
-> 215 return globals () shell
216 exceto ImportError:
217 passe

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc em 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 ("exemplo", magic_examples)

AttributeError: o objeto 'InteractiveShellEmbed' não tem atributo 'define_magic'

Comentários muito úteis

tente instalar alguma versão diferente de IPython
por ex: pip install 'IPython==4' --force-reinstall

Todos 3 comentários

tente instalar alguma versão diferente de IPython
por ex: pip install 'IPython==4' --force-reinstall

Estou executando o Ubuntu 14.04 Python2.7, a princípio está ok, quando eu reinicio meu computador, obtive o mesmo erro. mas depois da desvantagem do meu ipython para 4 de acordo com a solução superior, funcionou novamente.

Eu tive o mesmo problema AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic' e pip install 'IPython==4' --force-reinstall funcionou para mim.

Esta página foi útil?
0 / 5 - 0 avaliações

Questões relacionadas

programmin1 picture programmin1  ·  11Comentários

slanning6 picture slanning6  ·  8Comentários

takluyver picture takluyver  ·  30Comentários

cool-RR picture cool-RR  ·  8Comentários

mitsuhiko picture mitsuhiko  ·  3Comentários