Simplecv: ne peut pas exécuter simplecv -- AttributeError : l'objet 'InteractiveShellEmbed' n'a pas d'attribut 'define_magic'

Créé le 12 juil. 2016  ·  3Commentaires  ·  Source: sightmachine/SimpleCV

salut, j'essaie de configurer simplecv, j'ai tout installé comme indiqué dans les instructions, mais lorsque j'exécute la commande simplecv, j'obtiens cette erreur. Je suis nouveau sur python donc je ne sais pas comment résoudre ce problème.

je l'exécute sur python 2.7 sur OS X 10.11.5 (el capitan)

merci à tous ceux qui se penchent sur ce problème.


AttributeError Traceback (appel le plus récent en dernier)
/Bibliothèque/Frameworks/Python.framework/Versions/2.7/bin/simplecv dans()
7 si nom == ' principal ' :
8 sys.exit(
----> 9 load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')()
dix )

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc dans 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 dans run_shell(shell)
213 pour shell dans available_shells :
214 essayez:
-> 215 globals de retour () shell
216 sauf 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 dans 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("exemple", magic_examples)

AttributeError : l'objet 'InteractiveShellEmbed' n'a pas d'attribut 'define_magic'

Commentaire le plus utile

essayez d'installer une version différente d'IPython
par exemple : pip install 'IPython==4' --force-reinstall

Tous les 3 commentaires

essayez d'installer une version différente d'IPython
par exemple : pip install 'IPython==4' --force-reinstall

J'exécute Ubuntu 14.04 Python2.7, au début, tout va bien, lorsque je redémarre mon ordinateur, j'ai la même erreur. mais après avoir abaissé mon ipython à 4 selon la solution supérieure, cela a fonctionné à nouveau.

J'ai eu le même problème AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic' , et pip install 'IPython==4' --force-reinstall fonctionné pour moi.

Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

slanning6 picture slanning6  ·  8Commentaires

programmin1 picture programmin1  ·  11Commentaires

takluyver picture takluyver  ·  30Commentaires

ipython picture ipython  ·  3Commentaires

AndreaCrotti picture AndreaCrotti  ·  3Commentaires